音频回放主要采用的是MCBSP和AIC23,配置是line in进行输入时,音频回放毫无问题。于是修改aic23的配置,但是还是无法回放MIC口输入的声音。aic23配置如下:
/*数字音频接口格式设置
AIC23为主模式,数据为DSP模式,数据长度16位*/
Uint16 digital_audio_inteface_format[2]={0x0e,0x53};
/*AIC23的波特率设置,采样率为8K*/
Uint16 sample_rate_control[2] = {0x10,0x2F};
/*AIC23寄存器复位*/
Uint16 reset[2] ={0x1e,0x00};
/*AIC23节电方式设置,所有部分均所与工作状态*/
Uint16 power_down_control[2] ={0x0c,0x00};
/*AIC23模拟音频的控制
DAC使能,ADC输入选择为Line*/
//Uint16 analog_aduio_path_control[2] ={0x08,0x10};
/*AIC23模拟音频的控制
DAC使能,ADC输入选择为MIC*/
Uint16 analog_aduio_path_control[2] ={0x08,0x17};
/*AIC23数字音频通路的控制*/
Uint16 digital_audio_path_control[2] ={0x0a,0x05};
/*AIC23数字接口的使能*/
Uint16 digital_interface_activation[2] ={0x12,0x01};
/*AIC23左通路音频调节*/
//Uint16 left_line_input_volume_control[2] ={0x00,0x17};
/*AIC23右通路音频调节*/
//Uint16 right_line_input_volume_control[2] ={0x02,0x17};
//*AIC23左通路音频调节*/
Uint16 left_mic_input_volume_control[2] ={0x04,0x79};
//*AIC23右通路音频调节*/
Uint16 right_mic_input_volume_control[2] ={0x06,0x79};
/*AIC23耳机左通路音频调节*/
Uint16 left_headphone_volume_control[2] ={0x05,0x79};
/*AIC23耳机右通路音频调节*/
Uint16 right_headphone_volume_control[2] = {0x07,0x79};
目前还没有找到问题所在。如果有大神可以指教一下,小弟万分感谢
|