summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-08-20 14:40:08 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2012-09-07 09:46:53 -0700
commit48387b28c87327c6c4d512eabe091c29236d2e70 (patch)
tree610197b68d91ad007ca1f950c7a9ededafee9499 /include
parent17a73c3394547692457299dc512b5c2312ea0344 (diff)
downloadhardware_libhardware_legacy-48387b28c87327c6c4d512eabe091c29236d2e70.zip
hardware_libhardware_legacy-48387b28c87327c6c4d512eabe091c29236d2e70.tar.gz
hardware_libhardware_legacy-48387b28c87327c6c4d512eabe091c29236d2e70.tar.bz2
Update Audio Policy Manager for remote submix
Define a new forced mode to route media to remote submix. Update media routing rules according to mode. Modify device connection management for remote submix. Note that this CL doesn't implement changes to not prevent audio recording when WFD is on, as audio recording is currently limited to one input. Change-Id: I458fe1802705da2d091ff82e536dc3e7f092f291
Diffstat (limited to 'include')
-rw-r--r--include/hardware_legacy/AudioPolicyManagerBase.h1
-rw-r--r--include/hardware_legacy/AudioSystemLegacy.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h
index 5030e40..a6ae397 100644
--- a/include/hardware_legacy/AudioPolicyManagerBase.h
+++ b/include/hardware_legacy/AudioPolicyManagerBase.h
@@ -529,6 +529,7 @@ protected:
bool mA2dpSuspended; // true if A2DP output is suspended
bool mHasA2dp; // true on platforms with support for bluetooth A2DP
bool mHasUsb; // true on platforms with support for USB audio
+ bool mHasRemoteSubmix; // true on platforms with support for remote presentation of a submix
audio_devices_t mAttachedOutputDevices; // output devices always available on the platform
audio_devices_t mDefaultOutputDevice; // output device selected by default at boot time
// (must be in mAttachedOutputDevices)
diff --git a/include/hardware_legacy/AudioSystemLegacy.h b/include/hardware_legacy/AudioSystemLegacy.h
index 93e0462..8eec57b 100644
--- a/include/hardware_legacy/AudioSystemLegacy.h
+++ b/include/hardware_legacy/AudioSystemLegacy.h
@@ -288,6 +288,7 @@ public:
FORCE_ANALOG_DOCK,
FORCE_DIGITAL_DOCK,
FORCE_NO_BT_A2DP,
+ FORCE_REMOTE_SUBMIX,
NUM_FORCE_CONFIG,
FORCE_DEFAULT = FORCE_NONE
};