summaryrefslogtreecommitdiffstats
path: root/libs/audioflinger/A2dpAudioInterface.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-08-12 05:49:58 -0700
committerEric Laurent <elaurent@google.com>2009-08-12 05:49:58 -0700
commit11c04c984afa0b3eea351d7cd9a62daab0ec70ea (patch)
treece61784ef50667d4fabfb233fe1bd5c669b09b54 /libs/audioflinger/A2dpAudioInterface.h
parentcf70e3301bcbfbdeb6a4fd04196f3e4ea5420c39 (diff)
downloadframeworks_native-11c04c984afa0b3eea351d7cd9a62daab0ec70ea.zip
frameworks_native-11c04c984afa0b3eea351d7cd9a62daab0ec70ea.tar.gz
frameworks_native-11c04c984afa0b3eea351d7cd9a62daab0ec70ea.tar.bz2
Workaround for issue 2046783.
Apparently the problem is caused by the fact that A2dpAudioStreamOut::standby() calls a2dp_stop() after the headset has been powered down. The workaround consists in indicating to A2DP audio hardware that a close request is pending and that stanby() must be bypassed.
Diffstat (limited to 'libs/audioflinger/A2dpAudioInterface.h')
-rw-r--r--libs/audioflinger/A2dpAudioInterface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/audioflinger/A2dpAudioInterface.h b/libs/audioflinger/A2dpAudioInterface.h
index d6709e2..35a6e11 100644
--- a/libs/audioflinger/A2dpAudioInterface.h
+++ b/libs/audioflinger/A2dpAudioInterface.h
@@ -112,6 +112,7 @@ private:
Mutex mLock;
bool mBluetoothEnabled;
uint32_t mDevice;
+ bool mClosing;
};
friend class A2dpAudioStreamOut;