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
commit07c8a20f3913b20983c6b9c65b2e62269ace6923 (patch)
treed77560cf925ec142911b2046ac38945297916644 /libs/audioflinger
parent33489f5866afaaf1297114de5efde3cdc8671dbe (diff)
downloadframeworks_native-07c8a20f3913b20983c6b9c65b2e62269ace6923.zip
frameworks_native-07c8a20f3913b20983c6b9c65b2e62269ace6923.tar.gz
frameworks_native-07c8a20f3913b20983c6b9c65b2e62269ace6923.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;