Android WeChat receiver is silent, android receiver is silent

Source: Internet
Author: User

Android handset silent, android handset silent
When Dual talk SIM card is inserted into Card 2, the receiver is silent;
When a third-party APP receives a speech, it will set audio_mode to incall instead of sim1 or sim2.
The speechdriver will set modem_index according to audio_mode and call MD1.
If sim2 is inserted and sim1 is not inserted, there will be a problem that MD does not have ready, and MD will not receive the CCCI message, resulting in no speech.


You need to determine the status of MD1 and MD2, and enable the corresponding MD based on their status.
The modified file and function is SpeechDriverFactory. cpp.
Status_t SpeechDriverFactory: SetActiveModemIndexByAudioMode (int mode)
{
Status_t return_status = NO_ERROR;
Status_t FLAG_MD1; status_t FLAG_MD2;
FLAG_MD1 = mSpeechDriver1-> CheckModemIsReady ();
FLAG_MD2 = mSpeechDriver2-> CheckModemIsReady ();
ALOGD ("% s () mode (% d) FLAG_MD1 (% d) FLAG_MD2 (% d )!! ", _ FUNCTION __, mode, FLAG_MD1, FLAG_MD2 );
Switch (mode ){
Case AUDIO_MODE_IN_CALL:
If (FLAG_MD1 = 1)
Return_status = SetActiveModemIndex (MODEM_1 );
Else if (FLAG_MD1 = 0) & (FLAG_MD2 = 1 ))
Return_status = SetActiveModemIndex (MODEM_2 );
Break;
Case AUDIO_MODE_IN_CALL_2:
Return_status = SetActiveModemIndex (MODEM_2 );
Break;
Default:
ALOGE ("% s () mode (% d) is neither MODE_IN_CALL nor MODE_IN_CALL_2 !! ", _ FUNCTION __, mode );
Return_status = INVALID_OPERATION;
Break;
}
Return return_status;
}
2. During the close process, the call design was previously "incall", which corresponds to MD1 and "incall_2.
Currently, third-party apps are fixed to set mode incall and now to open MD2. Therefore, assert may occur when it is disabled. disable this assert or modify the assert condition ..
SpeechPhoneCallController. cpp
Status_t SpeechPhoneCallController: CloseModemSpeechControlFlow (const audio_mode_t audio_mode)
{
Mutex: Autolock _ l (mLock );
ALOGD ("+ % s (), audio_mode = % d", _ FUNCTION __, audio_mode );
Const modem_index_t modem_index = mSpeechDriverFactory-> GetActiveModemIndex ();
ALOGD ("+ % s (), audio_mode = % d, modem_index = % d", _ FUNCTION __, audio_mode, modem_index );
// ASSERT (modem_index = MODEM_1 & audio_mode = AUDIO_MODE_IN_CALL) |
// (Modem_index = MODEM_2 & audio_mode = AUDIO_MODE_IN_CALL_2 ));
Why is there no sound in the receiver mode? Normal external storage

It should be a compatibility problem. I can't play the audio on my mobile phone, but I can change the third-party ROM. Now I can't do it again after I brush 4.1.2 ..
 
Why is there no sound in the receiver?

Well, I also encountered this problem yesterday. I have been depressed for a long time ~~
Later I found that I turned off my voice.
When you listen to a voice message, press the volume key on your phone ...... It's okay to increase the volume ~~
Then I found out that I was okay ~~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.