OSDN Git Service

Fix issue 2327064: Music played via line out is interrupted due to the phone call...
authorEric Laurent <elaurent@google.com>
Wed, 24 Feb 2010 19:51:43 +0000 (11:51 -0800)
committerEric Laurent <elaurent@google.com>
Wed, 24 Feb 2010 19:54:32 +0000 (11:54 -0800)
commit15498d6a2381c8449186705548c03565b26edc15
tree0b3a71bb1b57d27b7ab4f25e0df33b56f037e000
parent057aa729dd8449da607162349dea30ba2eaf0ad7
Fix issue 2327064: Music played via line out is interrupted due to the phone call audio on BT hs.

This is not a real fix for the issue but a change to make sure that the behavior is consistent regardless of
external condidions (WIFI ON or OFF, music started before call or not, A2DP device same as SCO device...).

As there is now way to guaranty good quality audio over both SCO and A2DP simultaneously, especially when WIFI is on, We will stick to this behavior:
When music is playing and we are docked to the desk dock and a call is answered with a BT SCO headset, A2DP output will be suspended.
If music is restarted during the call, it will appear muted to the user until the call is terminated.
libs/audioflinger/AudioPolicyManagerBase.cpp