[DESCRIPTION]
[SOLUTION]
请作如下修改
void Media_SetOutputDevice( uint8 device )
{
//增加以下
// add begin
#if defined(AUDIO_COMPENSATION_ENABLE)
kal_uint8 bACEnable = KAL_TRUE;
if(AFE_GetOutputDevice(L1SP_AUDIO)==device)
bACEnable = KAL_FALSE;
#endif
// add end
AFE_SetOutputDevice( L1SP_VOICE, device );
AFE_SetOutputDevice( L1SP_AUDIO, device );
…
// if (AM_IsAudioPlaybackOn() != -1)修改为
if (AM_IsAudioPlaybackOn() != -1 && bACEnable)
Audio_Compensation_Activate( true );
#endif
}
做此修改是因为
AM_AudioPlaybackOn里面会执行Audio_Compensation_Activate( true );,避免Media_SetOutputDevice中当device没
有改变时也重复执行Audio_Compensation_Activate( true );
1048及之前patch MAUI_2899594,1048之后默认包含。
来自半导体社群
网友评论