工厂模式测试mic回路,对着mic吹气,听筒处要对着耳边听才能听到,怎么把声音调大
在这文件ftm_audio_Common.cpp看看
void Aud_Loopback(char b_phone_mic_sel,
char b_headset_mic_in,
char b_spk_out,
char b_receiver_out,
char b_headset_out)
此函数下调节听筒的增益!
if(b_receiver_out == true) //set HS Buffer
{
mAnaReg->SetAnaReg(AUDIO_CON1,0x0700,0x3f00);//set HPL Gain
mAnaReg->SetAnaReg(AUDIO_CON1,0x000c,0x003f);//set HS Gain
//调节此寄存器,mAnaReg->SetAnaReg(AUDIO_CON1,0x040c,0x003f);//set HS Gain,此时是最大,增
//益为8db,可以根据具体情况调小调大
mAnaReg->SetAnaReg(AUDIO_CON3,0x1e0,0x1e0);//turn on DAC, HS Buffer
}
在这个函数里加了这句,mAnaReg->SetAnaReg(AUDIO_CON1,0x040c,0x003f),感觉没什么效果哦,还是要耳朵靠近才能听到