summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-05-29 16:14:44 -0700
committerEric Laurent <elaurent@google.com>2014-05-29 16:14:44 -0700
commit806fab660adf8a5c3d36e9411d214a4942cd67e9 (patch)
tree0893bb1485c2d9e505102633b71b786acbdd63de /audio
parentb26e377bb1b2f5466438092cdc85cd0e8dc631ca (diff)
downloadhardware_libhardware_legacy-806fab660adf8a5c3d36e9411d214a4942cd67e9.zip
hardware_libhardware_legacy-806fab660adf8a5c3d36e9411d214a4942cd67e9.tar.gz
hardware_libhardware_legacy-806fab660adf8a5c3d36e9411d214a4942cd67e9.tar.bz2
handle in and out audio device connection separately
AudioService now indicates in and out device connection separately in case of combined devices like wired headset or BT SCO headset. Change-Id: Id20e02bb351cc732ceddccf597742ced049671a8
Diffstat (limited to 'audio')
-rw-r--r--audio/AudioPolicyManagerBase.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp
index a12eeff..217b365 100644
--- a/audio/AudioPolicyManagerBase.cpp
+++ b/audio/AudioPolicyManagerBase.cpp
@@ -184,15 +184,7 @@ status_t AudioPolicyManagerBase::setDeviceConnectionState(audio_devices_t device
0);
}
- if (device == AUDIO_DEVICE_OUT_WIRED_HEADSET) {
- device = AUDIO_DEVICE_IN_WIRED_HEADSET;
- } else if (device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO ||
- device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET ||
- device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT) {
- device = AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET;
- } else {
- return NO_ERROR;
- }
+ return NO_ERROR;
} // end if is output device
// handle input devices