hi_mpi_ai_disable_chn

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Disables an AI channel.

Restrictions

  • When the audio-left channel or stereo channel is used for recording, ai_chn must be fixed at 0. When the audio-right channel is used for recording, ai_chn is 1.
  • If the attributes are set but the AI channel is disabled, a code indicating success is returned. If the attributes are not set, an error code indicating that the attributes are not configured is returned when this API is called.

Prototype

hi_s32 hi_mpi_ai_disable_chn(hi_audio_dev ai_dev, hi_ai_chn ai_chn);

Parameters

Parameter

Input/Output

Description

ai_dev

Input

Audio device ID. The value range is [0, 2].

ai_chn

Input

Recording channel ID.

Returns