MT6735问题描述: 1.不连接BT通话,此时的上行音量为vol1 2.通话过程中连接BT,然后切换成听筒模式,此时的上行音量为vol2 3.vol2明显小于vol1 方法: 直接修改如下函数或者申请pathALPS01427017 status_t SpeechDriverLAD::SetSpeechMode(const audio_devices_t input_device, const audio_devices_t output_device) { speech_mode_t speech_mode = GetSpeechModeByOutputDevice(output_device); ALOGD("%s(), input_device = 0x%x, output_device = 0x%x, speech_mode = %d", __FUNCTION__, input_device, output_device, speech_mode); // AP side have to set speech mode before speech/record/loopback on, // hence we check whether Modem side get all necessary speech enhancement parameters here // if not, re-send it !! if (pCCCI->CheckSpeechParamAckAllArrival() == false) { ALOGW("%s(), Do SetAllSpeechEnhancementInfoToModem() done. Start set speech_mode = %d", __FUNCTION__, speech_mode); } // set a unreasonable gain value s.t. the reasonable gain can be set to modem next time mDownlinkGain = kUnreasonableGainValue; mUplinkGain = kUnreasonableGainValue; mSideToneGain = kUnreasonableGainValue; status_t ret = pCCCI->SendMessageInQueue(pCCCI->InitCcciMailbox(MSG_A2M_SET_SPH_MODE, speech_mode, 0)); pCCCI->SetModemSideRealModemStatus(SPEECH_MODE_STATUS_MASK); return ret; 资料转载于一牛网论坛 MT6735 http://bbs.16rd.com/thread-454500-1-1.html |
mt6735 [Speech]通话过程中连接BT再切换成听筒,上行音量变小
最新推荐文章于 2021-08-31 14:12:01 发布