Aud_Intf APIs

[English]

重要

The Aud_Intf API v1.0 is the lastest and stable Audio interface APIs. All new applications should use Audio interface API v1.0. And all Aud_Intf API cannot be called in mic and speaker callback registed in bk_aud_intf_drv_init .

Audio Interface

The BK Audio interface supports two work mode:
  • General mode

  • Voice mode

The general work mode supports general functions, and the Voice mode supports voice transfer functions. However, the audio only work in one mode at a time.

The General mode supports following functions:
  • record function

  • play function

The record and play function can be operated independently.

The Voice mode supports following features:
  • voice transfer by G711A data

  • voice transfer by PCM data

  • 8k and 16k sample rate

  • software AEC

  • set mic gain

  • set speaker gain

  • onboard mic and speaker

  • UAC mic and speaker

Audio Interface API Categories

Most of Audio APIs can be categoried as:

  • Common APIs

    The common APIs are prefixed with bk_aud_intf, the APIs may be common for General mode and Voice mode, e.g. bk_aud_intf_drv_init() etc.

  • Mic function APIs.

    The APIs provide support for record function. e.g. bk_aud_intf_mic_init() etc.

  • Spk function APIs.

    The APIs provide support for play function. e.g. bk_aud_intf_spk_init() etc.

  • Voc function APIs.

    The APIs provide support for voice transfer function. e.g. bk_aud_intf_voc_init() etc.

Common APIs:
Mic APIs:
Spk APIs:
Voc APIs:

API Reference

Header File

Functions

bk_err_t bk_aud_intf_drv_init(aud_intf_drv_setup_t *setup)

Init the AUD INTF driver.

This API init the resoure common:

  • Creat AUD INTF task

  • Configure default work mode

  • Register read mic data and write speaker data callback

This API should be called before any other AUD INTF APIs. This API cannot be called in mic and speaker callback.

参数

setup – audio interface driver init configuration

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_drv_deinit(void)

Deinit the AUD INTF driver.

This API deinit the resoure common:

  • Delete AUD INTF task

  • Reset default work mode

  • Unregister read mic data and write speaker data callback

This API should be called when audio is not needed. This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_mode(aud_intf_work_mode_t work_mode)

Set the AUD INTF work mode.

This API cannot be called in mic and speaker callback.

参数

work_mode – audio interface work mode

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_mic_gain(uint8_t value)

Set the mic gain.

This API should be called when onboard mic has been initialized. And this API should not be called when UAC mic has been used. This API cannot be called in mic and speaker callback.

参数

value – the gain value range:0x00 ~ 0x3f

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_spk_gain(uint32_t value)

Set the spk gain(volume)

This API should be called when speaker has been initialized. And this API set board speaker gain and uac speaker volume. This API cannot be called in mic and speaker callback.

参数

value – the gain value -board speaker: range:0x00 ~ 0x3f -uac speaker: range:0x0000 ~ 0xffff

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_aec_para(aud_intf_voc_aec_para_t aec_para, uint32_t value)

Set the aec parameter.

This API should be called when voice has been initialized and AEC is enable. This API cannot be called in mic and speaker callback.

参数
  • aec_para – the parameter

  • value – the parameter value

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_get_aec_para(void)

Get the aec parameter.

This API should be called when voice has been initialized and AEC is enable. This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_mic_init(aud_intf_mic_setup_t *mic_setup)

Init the AUD INTF mic.

This API init the resoure common:

  • Init AUD adc driver

  • Configure AUD adc paramter

  • Configure DMA to carry adc data

  • Configure UAC mic

This API should be called after bk_aud_intf_drv_init. This API cannot be called in mic and speaker callback.

Usage example:

audio_tras_setup_t aud_tras_setup = DEFAULT_AUD_INTF_DRV_SETUP_CONFIG();
aud_intf_mic_setup_t aud_mic_setup = DEFAULT_AUD_INTF_MIC_SETUP_CONFIG();

aud_intf_drv_setup.work_mode = AUD_INTF_WORK_MODE_NULL;
aud_intf_drv_setup.aud_intf_tx_mic_data = demo_udp_voice_send_packet;
bk_aud_intf_drv_init(&aud_intf_drv_setup);

aud_work_mode = AUD_INTF_WORK_MODE_GENERAL;
bk_aud_intf_set_mode(aud_work_mode);

bk_aud_intf_mic_init(&aud_intf_mic_setup);

参数

mic_setup – audio adc setup configuration

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_mic_deinit(void)

Deinit the AUD INTF mic.

This API deinit the resoure common:

  • Deinit AUD adc driver

  • Reset AUD adc paramter

  • Close DMA

  • Close UAC mic

This API should be called after bk_aud_intf_mic_stop. This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_mic_start(void)

Start the AUD INTF mic work.

This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_mic_pause(void)

Pause the AUD INTF mic work.

This API should be called after bk_aud_intf_mic_init. This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_mic_stop(void)

Stop the AUD INTF mic work.

This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_mic_chl(aud_intf_mic_chl_t mic_chl)

Set the AUD INTF mic channel.

This API should be called after bk_aud_intf_mic_init. This API only support onboard mic, and not support UAC mic. This API cannot be called in mic and speaker callback.

参数

mic_chl – audio interface mic channel

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_get_mic_chl(aud_intf_mic_chl_t *mic_chl)

Get the AUD INTF mic channel.

This API should be called after bk_aud_intf_mic_init. This API only support onboard mic, and not support UAC mic. This API cannot be called in mic and speaker callback.

参数

mic_chl – save audio interface mic channel

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_mic_samp_rate(aud_adc_samp_rate_t samp_rate)

Set the AUD INTF mic sample rate.

This API should be called after bk_aud_intf_mic_init. This API only support onboard mic, and not support UAC mic. This API cannot be called in mic and speaker callback.

参数

samp_rate – audio interface mic sample rate

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_get_mic_samp_rate(aud_adc_samp_rate_t *samp_rate)

Get the AUD INTF mic sample rate.

This API should be called after bk_aud_intf_mic_init. This API only support onboard mic, and not support UAC mic. This API cannot be called in mic and speaker callback.

参数

samp_rate – save audio interface mic sample rate

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_spk_init(aud_intf_spk_setup_t *spk_setup)

Init the AUD INTF speaker.

This API init the resoure common:

  • Init AUD dac driver

  • Configure AUD dac paramter

  • Configure DMA to carry dac data

  • Configure UAC speaker

This API should be called after bk_aud_intf_drv_init. This API cannot be called in mic and speaker callback.

Usage example:

audio_tras_setup_t aud_tras_setup = DEFAULT_AUD_INTF_DRV_SETUP_CONFIG();
aud_intf_spk_setup_t aud_spk_setup = DEFAULT_AUD_INTF_SPK_SETUP_CONFIG();

aud_intf_drv_setup.aud_intf_rx_spk_data = aud_read_pcm_data_from_sd;
bk_aud_intf_drv_init(&aud_intf_drv_setup);

aud_work_mode = AUD_INTF_WORK_MODE_GENERAL;
bk_aud_intf_set_mode(aud_work_mode);

aud_intf_spk_setup.frame_size = 640;
bk_aud_intf_spk_init(&aud_intf_spk_setup);

参数

spk_setup – audio speaker setup configuration

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_spk_deinit(void)

Deinit the AUD INTF speaker.

This API deinit the resoure common:

  • Deinit AUD dac driver

  • Reset AUD dac paramter

  • Close DMA

  • Close UAC speaker

This API should be called after bk_aud_intf_spk_stop. This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_spk_start(void)

Start the AUD INTF speaker work.

This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_spk_pause(void)

Pause the AUD INTF speaker work.

This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_spk_stop(void)

Stop the AUD INTF speaker work.

This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_spk_chl(aud_intf_spk_chl_t spk_chl)

Set the AUD INTF speaker channel.

This API should be called after bk_aud_intf_spk_init. This API only support onboard speaker, and not support UAC speaker. This API cannot be called in mic and speaker callback.

参数

spk_chl – audio interface speaker channel

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_get_spk_chl(aud_intf_mic_chl_t *spk_chl)

Get the AUD INTF speaker channel.

This API should be called after bk_aud_intf_spk_init. This API only support onboard speaker, and not support UAC speaker. This API cannot be called in mic and speaker callback.

参数

spk_chl – save audio interface speaker channel

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_set_spk_samp_rate(aud_dac_samp_rate_t samp_rate)

Set the AUD INTF speaker sample rate.

This API should be called after bk_aud_intf_spk_init. This API only support onboard speaker, and not support UAC speaker. This API cannot be called in mic and speaker callback.

参数

samp_rate – audio interface speaker sample rate

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_get_spk_samp_rate(aud_dac_samp_rate_t *samp_rate)

Get the AUD INTF speaker sample rate.

This API should be called after bk_aud_intf_spk_init. This API only support onboard speaker, and not support UAC speaker. This API cannot be called in mic and speaker callback.

参数

samp_rate – save audio interface speaker sample rate

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_register_uac_connect_state_cb(void *cb)

Register callback of uac abnormal disconnection and connection recovery.

This API should be called after bk_aud_intf_spk_init. This API only support uac mic and uac speaker. This API cannot be called in mic and speaker callback.

参数

cb – callback api

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_uac_auto_connect_ctrl(bool enable)

Control uac automatical connect.

If enable the feature, uac will automatic connect after uac abnormal disconnect. This API only support uac mic and uac speaker. This feature is enabled by default. This API cannot be called in mic and speaker callback.

参数

enable

  • TRUE: enable uac automatic connnet

  • FALSE: disable uac automatic connent

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_init(aud_intf_voc_setup_t setup)

Init the AUD INTF voice.

This API init the resoure common:

  • Init AUD voice transfer driver

  • Configure AUD dac and adc paramter

  • Configure DMA to carry adc and dac data

  • Configure UAC mic and speaker

This API should be called after bk_aud_intf_drv_init. This API cannot be called in mic and speaker callback.

Usage example:

audio_tras_setup_t aud_tras_setup = DEFAULT_AUD_INTF_DRV_SETUP_CONFIG();
aud_intf_voc_setup_t aud_voc_setup = DEFAULT_AUD_INTF_VOC_SETUP_CONFIG();

aud_intf_drv_setup.aud_intf_tx_mic_data = demo_udp_voice_send_packet;
bk_aud_intf_drv_init(&aud_intf_drv_setup);

aud_work_mode = AUD_INTF_WORK_MODE_VOICE;
bk_aud_intf_set_mode(aud_work_mode);

bk_aud_intf_voc_init(aud_voc_setup);

参数

voc_setup – audio voice setup configuration

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_deinit(void)

Deinit the AUD INTF voice.

This API deinit the resoure common:

  • Deinit AUD voice transfer driver

  • Reset AUD adc and dac paramter

  • Close DMA

This API should be called after bk_aud_intf_voice_stop. This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_start(void)

Start the AUD INTF voice work.

This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_stop(void)

Stop the AUD INTF voice work.

This API cannot be called in mic and speaker callback.

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_mic_ctrl(aud_intf_voc_mic_ctrl_t mic_en)

Control mic.

This API should be called in voice work mode. This API cannot be called in mic and speaker callback.

参数

mic_en

  • AUD_INTF_VOC_MIC_OPEN: enable mic

  • AUD_INTF_VOC_MIC_CLOSE: disable mic

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_spk_ctrl(aud_intf_voc_spk_ctrl_t spk_en)

Control speaker.

This API should be called in voice work mode. This API cannot be called in mic and speaker callback.

参数

spk_en

  • AUD_INTF_VOC_SPK_OPEN: enable speaker

  • AUD_INTF_VOC_SPK_CLOSE: disable speaker

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_aec_ctrl(bool aec_en)

Control aec enable or disable.

This API should be called in voice work mode. This API cannot be called in mic and speaker callback.

参数

aec_en

  • true: enable aec

  • false: disable aec

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_write_spk_data(uint8_t *dac_buff, uint32_t size)

Write the speaker data to audio dac.

This API should be called in general and voice work mode. This API cannot be called in mic and speaker callback.

参数
  • dac_buff – the address of speaker data written

  • size – the data size (byte)

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_tx_debug(aud_intf_dump_data_callback dump_callback)

register callback to dump tx data in voice work mode

This API should be called in voice work mode. And audio transfer driver will call the callback to save data. This API cannot be called in mic and speaker callback.

参数

dump_callback – callback

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_rx_debug(aud_intf_dump_data_callback dump_callback)

register callback to dump rx data in voice work mode

This API should be called in voice work mode. And audio transfer driver will call the callback to save data. This API cannot be called in mic and speaker callback.

参数

dump_callback – callback

返回

  • BK_OK: succeed

  • others: other errors.

bk_err_t bk_aud_intf_voc_aec_debug(aud_intf_dump_data_callback dump_callback)

register callback to dump aec data(include mic data, ref data, and out data) in voice work mode

This API should be called in voice work mode. And audio transfer driver will call the callback to save data. This API cannot be called in mic and speaker callback.

参数

dump_callback – callback

返回

  • BK_OK: succeed

  • others: other errors.

API Typedefs

Header File

Structures

struct aud_intf_task_config_t

Public Members

uint8_t priority

the priority of audio interface task

struct aud_intf_drv_setup_t

Public Members

int (*aud_intf_tx_mic_data)(unsigned char *data, unsigned int size)

the api is called when collecting a frame mic packet data is complete

bk_err_t (*aud_intf_rx_spk_data)(unsigned int size)

the api is called when playing a frame speaker packet data is complete

struct aud_intf_mic_setup_t

Public Members

aud_adc_samp_rate_t samp_rate

mic sample rate

uint16_t frame_size

size: a frame packet mic data size(byte)

uint8_t mic_gain

audio adc gain: value range:0x0 ~ 0x3f, suggest:0x2d

aud_intf_mic_type_t mic_type

audio mic type: uac or microphone

struct aud_intf_spk_setup_t

Public Members

aud_dac_samp_rate_t samp_rate

speaker sample rate

uint16_t frame_size

size: a frame packet speaker data size(byte)

uint8_t spk_gain

audio dac gain: value range:0x0 ~ 0x3f, suggest:0x2d

aud_dac_work_mode_t work_mode

audio dac mode: signal_ended/differen

aud_intf_spk_type_t spk_type

audio speaker type: uac or speaker

struct aud_intf_voc_aec_cfg_t

Public Members

uint32_t ec_depth

recommended value range: 1~50, the greater the echo, the greater the value setting

uint32_t TxRxThr

the max amplitude of rx audio data

uint32_t TxRxFlr

the min amplitude of rx audio data

uint8_t ref_scale

value range:0,1,2, the greater the signal amplitude, the greater the setting

uint8_t ns_level

recommended value range: 1~8, the lower the noise, the lower the level

uint8_t ns_para

value range:0,1,2, the lower the noise, the lower the level, the default valude is recommended

struct aud_intf_voc_setup_t

Public Members

bool aec_enable

true: enable aec, false: disable aec

aud_intf_voc_samp_rate_t samp_rate

voice transfer sample rate

aud_intf_voc_data_type_t data_type

voice data type

uint8_t mic_gain

mic gain: value range:0x0 ~ 0x3f, suggest:0x2d

uint16_t spk_gain

spk gain: value range:0x0 ~ 0x3f, suggest:0x2d

aud_dac_work_mode_t spk_mode

audio spk mode: signal_ended/differen

aud_intf_voc_mic_ctrl_t mic_en

mic default status

aud_intf_voc_spk_ctrl_t spk_en

spk default status

aud_intf_mic_type_t mic_type

audio mic type: uac or microphone

aud_intf_spk_type_t spk_type

audio speaker type: uac or speaker

uint8_t frame_num

the max number of frames in rx buffer to save rx data, the time of one frame is 20ms

uint8_t fifo_frame_num

the number of frames in rx buffer before start voice transfer, the time of one frame is 20ms

Macros

BK_ERR_AUD_INTF_BASE
BK_ERR_AUD_INTF_OK

ok

BK_ERR_AUD_INTF_FAIL

fail

BK_ERR_AUD_INTF_STA

audio interface module status is error

BK_ERR_AUD_INTF_PARAM

parameter is error

BK_ERR_AUD_INTF_MEMY

malloc memory fail

BK_ERR_AUD_INTF_ADC

config audio adc fail

BK_ERR_AUD_INTF_DAC

config audio dac fail

BK_ERR_AUD_INTF_DMA

config dma fail

BK_ERR_AUD_INTF_AEC

config aec fail

BK_ERR_AUD_INTF_RING_BUFF

config ring buffer fail

BK_ERR_AUD_INTF_TIMEOUT

aud_intf api excute timeout

BK_ERR_AUD_INTF_TX_MSG

aud_intf api send message fail

BK_ERR_AUD_INTF_BUSY

aud_intf is busying

BK_ERR_AUD_INTF_FILE

aud_intf file operate fail

BK_ERR_AUD_INTF_UAC_DRV

aud_intf uac driver fail

BK_ERR_AUD_INTF_UAC_MIC

aud_intf uac mic fail

BK_ERR_AUD_INTF_UAC_SPK

aud_intf uac spk operate fail

DEFAULT_AUD_INTF_DRV_SETUP_CONFIG()
DEFAULT_AUD_INTF_MIC_SETUP_CONFIG()
DEFAULT_AUD_INTF_SPK_SETUP_CONFIG()
DEFAULT_AUD_INTF_VOC_SETUP_CONFIG()

Type Definitions

typedef bk_err_t (*aud_intf_dump_data_callback)(unsigned char *data, unsigned int size)

Enumerations

enum aud_intf_uac_sta_t

Values:

enumerator AUD_INTF_UAC_CONNECTED

Connected: uac automatically restore connection after abnormal disconnection

enumerator AUD_INTF_UAC_NORMAL_DISCONNECTED

Normal disconnected: uac normal disconnection

enumerator AUD_INTF_UAC_ABNORMAL_DISCONNECTED

Abnormal disconnected: uac abnormal disconnection

enumerator AUD_INTF_UAC_CANNOT_RECOVER_CONNECT

Cannot automatically connect: uac automatically connect fail

enum aud_intf_work_mode_t

Values:

enumerator AUD_INTF_WORK_MODE_NULL
enumerator AUD_INTF_WORK_MODE_GENERAL

General mode: support record mic data and play speaker

enumerator AUD_INTF_WORK_MODE_VOICE

Voice mode: support voice transfer

enumerator AUD_INTF_WORK_MODE_MAX
enum aud_intf_mic_chl_t

Values:

enumerator AUD_INTF_MIC_CHL_MIC1

MIC1: only enable mic1 channel

enumerator AUD_INTF_MIC_CHL_DUAL

DUAL: enable mic1 channel both and MIC2 channel

enumerator AUD_INTF_MIC_CHL_MAX
enum aud_intf_mic_type_t

Values:

enumerator AUD_INTF_MIC_TYPE_BOARD
enumerator AUD_INTF_MIC_TYPE_UAC
enumerator AUD_INTF_MIC_TYPE_MAX
enum aud_intf_spk_chl_t

Values:

enumerator AUD_INTF_SPK_CHL_LEFT

LEFT: only enable SPK left channel

enumerator AUD_INTF_SPK_CHL_DUAL

DUAL: enable SPK left and right channel

enumerator AUD_INTF_SPK_CHL_MAX
enum aud_intf_spk_type_t

Values:

enumerator AUD_INTF_SPK_TYPE_BOARD
enumerator AUD_INTF_SPK_TYPE_UAC
enumerator AUD_INTF_SPK_TYPE_MAX
enum aud_intf_voc_samp_rate_t

Values:

enumerator AUD_INTF_VOC_SAMP_RATE_8K
enumerator AUD_INTF_VOC_SAMP_RATE_16K
enumerator AUD_INTF_VOC_SAMP_RATE_MAX
enum aud_intf_voc_data_type_t

Values:

enumerator AUD_INTF_VOC_DATA_TYPE_G711A

the data of voice transfer encoded by G711A

enumerator AUD_INTF_VOC_DATA_TYPE_PCM

the data of voice transfer is PCM

enumerator AUD_INTF_VOC_DATA_TYPE_G711U

the data of voice transfer encoded by G711U

enumerator AUD_INTF_VOC_DATA_TYPE_MAX
enum aud_intf_voc_aec_para_t

Values:

enumerator AUD_INTF_VOC_AEC_NULL
enumerator AUD_INTF_VOC_AEC_INIT_FLAG

init flag, aec module feature enable

enumerator AUD_INTF_VOC_AEC_MIC_DELAY

mic_delay

enumerator AUD_INTF_VOC_AEC_EC_DEPTH

ec_depth

enumerator AUD_INTF_VOC_AEC_REF_SCALE

ref_scale: 0/1/2

enumerator AUD_INTF_VOC_AEC_VOICE_VOL

voice volume level

enumerator AUD_INTF_VOC_AEC_TXRX_THR

max amplitude of rx audio data

enumerator AUD_INTF_VOC_AEC_TXRX_FLR

min amplitude of rx audio data

enumerator AUD_INTF_VOC_AEC_NS_LEVEL

noise level: 0/1/2

enumerator AUD_INTF_VOC_AEC_NS_PARA

noise value, range:1~8

enumerator AUD_INTF_VOC_AEC_DRC

voice volume value, range:0x10~0x1f

enumerator AUD_INTF_VOC_AEC_MAX
enum aud_intf_voc_mic_ctrl_t

Values:

enumerator AUD_INTF_VOC_MIC_OPEN

open mic

enumerator AUD_INTF_VOC_MIC_CLOSE

close spk

enumerator AUD_INTF_VOC_MIC_MAX
enum aud_intf_voc_spk_ctrl_t

Values:

enumerator AUD_INTF_VOC_SPK_OPEN

open spk

enumerator AUD_INTF_VOC_SPK_CLOSE

close spk

enumerator AUD_INTF_VOC_SPK_MAX