工厂模式下测试耳机时按End键退出,手机重启
0赞[DESCRIPTION]
工厂模式下测试耳机时按End键退出,手机重启
[SOLUTION]
10A.1132MP, 11A1132MP及之前需要Patch: MAUI_02354214.
具体修改如下:
U8 mmi_fm_main_delete_history_hdlr(void *param)
{
…
gCurrentMode = NORMAL_MODE;
mdi_switch_device_ownership(MOD_MMI, MDI_DEVICE_AUDIO | MDI_DEVICE_CAMER | MDI_DEVICE_VIDEO);
mdi_audio_start_background_timer();
mdi_audio_resume_background_play();
StartLEDPatternBackGround();
mmi_profiles_restore_activated_profile();
#ifdef __ACOUSTIC_LOOPBACK_SUPPORT__
mmi_fm_stop_acoustic_loopback_test();
#endif
return FALSE;
}
改为:
U8 mmi_fm_main_delete_history_hdlr(void *param)
{
…
#ifdef __ACOUSTIC_LOOPBACK_SUPPORT__
if (HeadsetTestOn)
{
HeadsetTestOn = FALSE;
/* set audio mode to Normal */
FM_SendSetAudioModeReq(AUD_MODE_NORMAL);
kal_sleep_task(kal_milli_secs_to_ticks(200));
custom_em_set_loopback(KAL_FALSE);
}
#endif
return FALSE;
}