芯方式

MT6252D连接蓝牙耳机,拨通电话,调节BT耳机音量键,音量混乱

0
阅读(29) 评论(0)

[DESCRIPTION]
MT6252D,10A1116版本上,手机连接蓝牙耳机,拨通电话,调节BT耳机音量键,音量混乱
[SOLUTION]来自半导体社区
请做如下修改:
1)
void SpeechVolumeExitFunction(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
//SaveSpeechVolume((U8) volume_level_UI); //修改这一行
}
2)
void mmi_set_hardware_volume(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
switch (g_volume_cntxt.type)
{
case VOLUMEHANDLER_RING_TONE:
SetRingerVolume(volume_level_UI);
break;
case VOLUMEHANDLER_SPEECH_TONE:
SaveSpeechVolume((U8) volume_level_UI);//修改这一行
break;
#if defined(__MMI_FM_RADIO__) && !defined(__MMI_SLIM_FM_RADIO__)
case VOLUMEHANDLER_FM_RADIO:
mdi_audio_set_volume(AUD_VOLUME_FMR, (U8) volume_level_UI);
break;
#endif /* defined(__MMI_FM_RADIO__) && !defined(__MMI_SLIM_FM_RADIO__) */
default:
SetKeyPadVolume(volume_level_UI);
break;
}
}
3)
void mmi_volume_handler_for_bt(U8 volume, MMI_BOOL is_mute) {
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
U16 LSKCaption = 0;
U16 RSKCaption = 0;
FuncPtr RSKCallback = NULL;
BOOL updownFlag = 0;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
(*g_volume_cntxt.initialVolume) = volume;
SaveSpeechVolume((U8) volume_level_UI); //添加这一行
volume++;
if(is_mute)
{
return;
}
if (g_volume_cntxt.screen_type == VOLUMEHANDLER_SCREEN_CALL)
{
g_volume_cntxt.Timer = 1000;
}
else
{
LSKCaption = STR_GLOBAL_OK;
RSKCaption = STR_GLOBAL_BACK;
RSKCallback = GoBackHistory;
g_volume_cntxt.Timer = 0;
updownFlag = 1;
}
。。。。。。
}


ICfans