hi_mpi_ai_set_pub_attr
The
The
Description
Sets the attributes of an AI device.
Restrictions
- Only the I2S master mode is supported.
- In stereo or audio-right channel mode, chn_cnt must be set to 2. In audio-left channel mode, chn_cnt must be set to 1.
Prototype
hi_s32 hi_mpi_ai_set_pub_attr(hi_audio_dev ai_dev, hi_aio_attr *attr);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ai_dev |
Input |
Audio device ID. The value range is [0, 2]. |
attr |
Input |
Attributes of the AI device. |
Returns
- 0: success
- Other values: failure. For details, see Audio Return Codes.
Parent topic: AI/AO