summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-12-15 19:09:42 -0800
committerEric Laurent <elaurent@google.com>2010-12-15 19:09:42 -0800
commit36d41b8103a525a9a581c01740428ec9f9c782a2 (patch)
treee54a8c8894511e4a49e4e28f0e8b8659e4f55f67
parentb094b0c4a4309f48d9da7253de78ebda20a8a81c (diff)
downloadframeworks_base-36d41b8103a525a9a581c01740428ec9f9c782a2.zip
frameworks_base-36d41b8103a525a9a581c01740428ec9f9c782a2.tar.gz
frameworks_base-36d41b8103a525a9a581c01740428ec9f9c782a2.tar.bz2
Fix issue 2712130: Sholes: problem when playing audio while recording over bluetooth SCO.
The problem is that when an input stream is opened for record over bluetooth SCO, the kernel mono audio device should be opened in RW mode to allow further use of this same device by an output stream also routed to bluetooth SCO. This does not happen because of a bug in AudioSystem::isBluetoothScoDevice() that does not return true when the device is DEVICE_IN_BLUETOOTH_SCO_HEADSET (input device for blurtooth SCO). Change-Id: Ic78bf324b4a68e65721d763dc7682ce7a8f14f75
-rw-r--r--media/libmedia/AudioSystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp
index 7e3b743..9c2a8ba 100644
--- a/media/libmedia/AudioSystem.cpp
+++ b/media/libmedia/AudioSystem.cpp
@@ -763,7 +763,8 @@ bool AudioSystem::isBluetoothScoDevice(audio_devices device)
if ((popCount(device) == 1 ) &&
(device & (AudioSystem::DEVICE_OUT_BLUETOOTH_SCO |
AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET |
- AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT))) {
+ AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT |
+ AudioSystem::DEVICE_IN_BLUETOOTH_SCO_HEADSET))) {
return true;
} else {
return false;