1.1.2.1.1 DRV_AK4954_AUDIO_DATA_FORMAT_MACRO Macro

Specifies the audio data format for the codec.

Description

AK4954 Audio Data Format

Sets up the length of each sample plus the format (I2S or left-justified) for the audio.

Valid choices are: "DRV_AK4954_AUDIO_DATA_FORMAT_24BIT_MSB_SDTO_24BIT_LSB_SDTI"

"DRV_AK4954_AUDIO_DATA_FORMAT_24BIT_MSB_SDTO_16BIT_LSB_SDTI"

"DRV_AK4954_AUDIO_DATA_FORMAT_24BIT_MSB_SDTO_24BIT_MSB_SDTI"

"DRV_AK4954_AUDIO_DATA_FORMAT_I2S_16BIT_24BIT"

"DRV_AK4954_AUDIO_DATA_FORMAT_32BIT_MSB_SDTO_32BIT_MSB_SDTI"

"DRV_AK4954_AUDIO_DATA_FORMAT_I2S_32BIT"

where SDTO is input line (ADC) and STDI is output line (DAC)

Remarks

If 24-bit audio is needed, it should be sent, left-justified, in a 32-bit format.

C

#define DRV_AK4954_AUDIO_DATA_FORMAT_MACRO