From 45c763947b657b347211dc9388754e05d30d0467 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Thu, 12 Sep 2013 17:39:21 -0700 Subject: audio policy: add support for audio effect offload Add rules to select the appropriate output for global effects. Move global effects if needed when an offloaded output is created or released. Bug: 8174034. Change-Id: I0bbd8e9f8aa717f672462dd74ba0d01eaef1fda7 --- include/hardware_legacy/AudioPolicyManagerBase.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h index d41a708..482ea86 100644 --- a/include/hardware_legacy/AudioPolicyManagerBase.h +++ b/include/hardware_legacy/AudioPolicyManagerBase.h @@ -128,7 +128,7 @@ public: // return the enabled output devices for the given stream type virtual audio_devices_t getDevicesForStream(AudioSystem::stream_type stream); - virtual audio_io_handle_t getOutputForEffect(const effect_descriptor_t *desc); + virtual audio_io_handle_t getOutputForEffect(const effect_descriptor_t *desc = NULL); virtual status_t registerEffect(const effect_descriptor_t *desc, audio_io_handle_t io, uint32_t strategy, @@ -488,6 +488,9 @@ protected: uint32_t format, uint32_t channelMask, audio_output_flags_t flags); + + audio_io_handle_t selectOutputForEffects(const SortedVector& outputs); + // // Audio policy configuration file parsing (audio_policy.conf) // -- cgit v1.1