Press the volume key when the Android phone calls

Source: Internet
Author: User

Platform: s5pc110 s5pv210

System: android2.3 android2.3.4 When an Android phone calls in, the phone calls the bell sound prompt. When you press the volume plus/minus key or power key, the bell sound is gone. This bug is added to the bug list. (Android does not need to solve this problem first) 1. For kernel program analysis, the information printed in the audio decoding chip is that the audio is turned off.[2, 431.795859] rt5625: enterrt5625_hifi_pcm_shutdown

2. Check that logcat is incorrect. It seems that it will be shut down normally.I/windowmanager (90): interceptkeybeforequeueing: volume key-down while ringing:
Silence ringer!
I/windowmanager (90): interceptkeybeforequeueing: volume key-down while ringing: Silence ringer!
I/windowmanager (90): interceptkeybeforequeueing: volume key-down while ringing: Silence ringer!
[306.485911] rt5625: Enter rt5625_hifi_pcm_shutdown
D/audiohardware (67): audiohardware PCM playback is going to standby.
V/audiohardware (67): closemixer_l () mmixeropencnt: 1
D/audiohardware (67): closepcmout_l () mpcmopencnt: 1
I/windowmanager (90): interceptkeybeforequeueing: volume key-down while ringing: Silence ringer!
I/windowmanager (90): interceptkeybeforequeueing: volume key-down while ringing: Silence ringer!

3. Check the relationship between the incoming call and the buttons.In android2.3.4 _ gb_t34h \ frameworks \ base \ Policy \ SRC \ com \ Android \ internal \ Policy \ impl \ phonewindowmanager. Java
// Handle special keys. Switch (keycode) {Case keyevent. keycode_volume_down: Case keyevent. Handle: {If (down) {itelephony telephonyservice = gettelephonyservice (); If (telephonyservice! = NULL) {try {If (telephonyservice. isringing () {// If an incoming call is ringing, either volume key means // "Silence ringer ". we handle these keys here, rather than // In the incallscreen, to make sure we'll respond to them // even if the incallscreen hasn' t come to the foreground yet. // look for the down event here, to agree with the "fallback" // behavior in the incallscreen. log. I (TAG, "I Nterceptkeybeforequeueing: "+" volume key-down while ringing: Silence ringer! "); // Silence the ringer. (It's safe to call this // even if the ringer has already been silenced .) telephonyservice. silenceringer (); // here is the reason why the bell sound does not exist // and * Don't * pass this key thru to the current activity // (which is probably the incallscreen .) result & = ~ Action_pass_to_user; break;} If (telephonyservice. isoffhook () & (Result & action_pass_to_user) = 0) {// if we are in call but we decided not to pass the key to // The application, handle the volume change here. handlevolumekey (audiomanager. stream_voice_call, keycode); break ;}} catch (RemoteException ex) {log. W (TAG, "itelephony threw RemoteException", ex) ;}} if (ismusicactive () & (Result & action_pass_to_user) = 0) {// If music is playing but we decided not to pass the key to the // application, handle the volume change here. handlevolumekey (audiomanager. stream_music, keycode); break ;}} break ;}
4. Check several machines.I found several mobile phones from my colleagues, including Samsung, LG, HTC, and p1000. I tried this. That is normal. After a while, I read the code for half a day.
When you solve this problem on your bug list, you can tell others that this is normal. The Android system did this. If not, Customization", This is normal.

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.