hi_mpi_ai_set_pub_attr

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Sets the attributes of an AI device.

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

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.

See Also

For the API call sequence, see Audio Obtaining and Playing.