summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/AudioPolicyManager.h
diff options
context:
space:
mode:
authorkeunyoung <keunyoung@google.com>2014-12-30 13:00:52 -0800
committerkeunyoung <keunyoung@google.com>2015-01-05 13:27:42 -0800
commit3190e67d5c80c1e39e3be91784110af1180cd182 (patch)
treedf0ffbb41220270e726bc95e1148bae7a370473a /services/audiopolicy/AudioPolicyManager.h
parent0d19abb440c7e62e944efbeadf02299990f9a589 (diff)
downloadframeworks_av-3190e67d5c80c1e39e3be91784110af1180cd182.zip
frameworks_av-3190e67d5c80c1e39e3be91784110af1180cd182.tar.gz
frameworks_av-3190e67d5c80c1e39e3be91784110af1180cd182.tar.bz2
close remote submix's output when device is not available.
- change output close logic to find the device from IOProfile rather than AudioPatch as AudioPatch handle can be cleared before disconnect. - Otherwise, remote submix can be stuck as output is never closed and does not work any more as subsequent open fails as output is already taken. bug: 18733215 Change-Id: Iddb481c91e81070e6be18996a4c8837dabd7ebdb
Diffstat (limited to 'services/audiopolicy/AudioPolicyManager.h')
-rw-r--r--services/audiopolicy/AudioPolicyManager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyManager.h b/services/audiopolicy/AudioPolicyManager.h
index 2059f58..633888f 100644
--- a/services/audiopolicy/AudioPolicyManager.h
+++ b/services/audiopolicy/AudioPolicyManager.h
@@ -889,6 +889,7 @@ private:
// see deviceDistinguishesOnAddress(audio_devices_t) for whether the device type is one
// where addresses are used to distinguish between one connected device and another.
void findIoHandlesByAddress(sp<AudioOutputDescriptor> desc /*in*/,
+ const audio_devices_t device /*in*/,
const String8 address /*in*/,
SortedVector<audio_io_handle_t>& outputs /*out*/);
uint32_t nextUniqueId();