diff options
author | Eric Laurent <elaurent@google.com> | 2013-09-12 17:39:21 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-09-17 11:27:45 -0700 |
commit | 45c763947b657b347211dc9388754e05d30d0467 (patch) | |
tree | 471a358f52757beac19b6138172673bab2434e70 /include | |
parent | f665c200f1c8163a682e70b7473f5528f83bd5ac (diff) | |
download | hardware_libhardware_legacy-45c763947b657b347211dc9388754e05d30d0467.zip hardware_libhardware_legacy-45c763947b657b347211dc9388754e05d30d0467.tar.gz hardware_libhardware_legacy-45c763947b657b347211dc9388754e05d30d0467.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware_legacy/AudioPolicyManagerBase.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<audio_io_handle_t>& outputs); + // // Audio policy configuration file parsing (audio_policy.conf) // |