12.2. Audio Input

【Debug Information】

/ # cat /proc/audio_debug/cviteka_adc

------------- CVI AI ATTRIBUTE -------------
AiDev    Workmode    SampleRate    BitWidth
  0       slave        128000        16

-------------  CVI AI STATUS   -------------
I2S0 is off

SDMA clk is off

ADC is off (0)

L-Mute   R-Mute
  no       no

L-Vol           R-Vol
  0              0

【Analysis】

Record the current audio input device Parameters and status information.

【Parameter Description】

Parameter

Decription

AiDev

Audio Input device ID

Workmode

Audio Input working mode master: I2S master mode slave: I2S slave mode

SampleRate

Sample rate. Range: [8k ~ 48K]

BitWidth

Sampling accuracy. Range: [16bit]

I2S0

I2S status of the ADC codec interface. on: open off: closed

SDMA clk

sysDMA clock status on: open off: closed

ADC

ADC codec status 0x0: closed 0x3: open

L-Mute

Left channel mute mode yes: mute mode open no: mute mode closed

R-Mute

Right channel mute mode yes: mute mode open no: mute mode closed

L-Vol

Left channel volume Value range [0~24]

R-Vol

Right channel volume Value range [0~24]