From 806fab660adf8a5c3d36e9411d214a4942cd67e9 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Thu, 29 May 2014 16:14:44 -0700 Subject: 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 --- audio/AudioPolicyManagerBase.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'audio') 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 -- cgit v1.1