FM外放时耳机无声
0赞[DESCRIPTION]
客户需求:50/50D平台,FM外放时耳机无声
[SOLUTION]
1.请将HP_EN_UNDERSPK的值设为0;
2.请在afe_6250.c文件中AFE_Switch_VoiceDAC_AudAMP()函数最后加上如下代码
static void AFE_Switch_VoiceDAC_AudAMP(kal_int16 v_lowest, kal_int16 a_lowest)
{
if(!afe.audio_dl_ena)
{ ...
*ABBA_AUDIO_CON6 &= (~RG_DEPOP_VCM_EN);
*ABBA_AUDIO_CON2 = 0x8011;
afe.audio_dl_ena = KAL_TRUE;
afe.voice_dl_ena = KAL_FALSE;
}
// add begin
#if !HP_EN_UNDERSPK
if( ( (a_lowest >= 0) && (afe.aud[a_lowest].out_dev & L1SP_BUFFER_EXT) ) ||
( (v_lowest >= 0) && (afe.aud[v_lowest].out_dev & L1SP_BUFFER_EXT) ) ||
( (v_lowest >= 0) && (afe.aud[v_lowest].out_dev & L1SP_BUFFER_0) && (Spk2In1) ) )
{
*ABBA_AUDIO_CON4 = 0x141C;
*ABBA_AUDIO_CON4 = 0x101C;
}
else
{
*ABBA_AUDIO_CON4 = 0x141F;
*ABBA_AUDIO_CON4 = 0x101F;
}
#endif
// add end
}
或申请patch MAUI_03239070