summaryrefslogtreecommitdiffstats
path: root/libs/audioflinger
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2009-07-15 12:22:55 -0700
committerNick Pelly <npelly@google.com>2009-07-15 12:22:55 -0700
commit92d2b407398f41dc854d83a3e1ddfd63e5320b1d (patch)
tree56596df339dd5c27c8932a2d865fa7d405b742b1 /libs/audioflinger
parent03c707ab6fc97e99b1603b8d6edc604dbea3cd6f (diff)
downloadframeworks_base-92d2b407398f41dc854d83a3e1ddfd63e5320b1d.zip
frameworks_base-92d2b407398f41dc854d83a3e1ddfd63e5320b1d.tar.gz
frameworks_base-92d2b407398f41dc854d83a3e1ddfd63e5320b1d.tar.bz2
Standby A2DP audio hardware interface when disabling A2DP.
Patch supplied on advice of partner. This causes us to send suspend_sink to Bluez via socket interface, so we enter suspend on the A2DP link faster. This is especially important when switching to SCO so that we come closer to whitepaper recommendations to suspend A2DP before setting up SCO. We have another patch set to add DBUS A2DP suspend and resume calls to Bluez that will do a better job of following whitepaper recommendations for A2DP -> SCO -> A2DP, but this small patch is still an improvement.
Diffstat (limited to 'libs/audioflinger')
-rw-r--r--libs/audioflinger/AudioFlinger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp
index 598a356..ffc0278 100644
--- a/libs/audioflinger/AudioFlinger.cpp
+++ b/libs/audioflinger/AudioFlinger.cpp
@@ -212,6 +212,7 @@ void AudioFlinger::setA2dpEnabled_l(bool enable)
} else {
mA2dpMixerThread->getTracks_l(tracks, activeTracks);
mHardwareMixerThread->putTracks_l(tracks, activeTracks);
+ mA2dpMixerThread->mOutput->standby();
}
mA2dpEnabled = enable;
mNotifyA2dpChange = true;