summaryrefslogtreecommitdiffstats
path: root/core/java/android/os/LocalPowerManager.java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-11-20 07:26:56 -0800
committerEric Laurent <elaurent@google.com>2009-11-20 07:26:56 -0800
commit2083b297e401957dfae07ca11c29e8c95f440a97 (patch)
treee28b4e420c7a3e7573e5358951bc317c954cab37 /core/java/android/os/LocalPowerManager.java
parent57bda83d105a1fc3c4c0ccb6cb743e6ba7c98870 (diff)
downloadframeworks_base-2083b297e401957dfae07ca11c29e8c95f440a97.zip
frameworks_base-2083b297e401957dfae07ca11c29e8c95f440a97.tar.gz
frameworks_base-2083b297e401957dfae07ca11c29e8c95f440a97.tar.bz2
Fix issue 2265111: Loss of downlink audio while listening, and get a MT call.
The cause of the problem is that under certain circumstance the HeadsetObserver receives unexpected connection events. For instance, when removing a bad quality 3.5mm stereo jack without mic the following events can be received: 1 connection of a headset with mic 2 removal of a headset with mic. The result is that the no mic headset is never disconnected and audio policy manager considers it is still present. Then the music or downlink call audio is always routed to headset even if none is connected giving the impression that audio is lost, except whne you reconnect a headset of enable speaker phone. The fix consists in adding more checks in HeadsetObserver to reject illegal transitions in headset state received from event observer.
Diffstat (limited to 'core/java/android/os/LocalPowerManager.java')
0 files changed, 0 insertions, 0 deletions