HI_ACODEC_GET_ADCR _VOLUME

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

The Atlas Training Series Product does not support this API.

Description

Obtains the input volume of the audio-right channel.

Restrictions

  • Input volume range of the audio-right channel: [0, 127]. A larger value indicates lower volume. The value 0 indicates the maximum volume (30 dB), and the value 127 indicates the minimum volume (–97 dB).
  • For example, if the volume_ctrl variable in the hi_acodec_volume_ctrl structure is set to y, the volume is adjusted to (30 – y) dB.

Prototype

int ioctl(int fd, HI_ACODEC_GET_ADCR _VOLUME, hi_acodec_volume_ctrl *arg);

Parameters

Parameter

Input/Output

Description

fd

Input

File descriptor of the audio codec.

HI_ACODEC_GET_ADCR _VOLUME

Input

ioctl number.

arg

Output

Volume control parameter of the embedded audio codec.

Returns

  • 0: success
  • Other values: failure