diff options
author | John Grossman <johngro@google.com> | 2012-07-23 17:05:46 -0700 |
---|---|---|
committer | John Grossman <johngro@google.com> | 2012-08-08 11:28:15 -0700 |
commit | ee578c0330319f04a48bccbdb26b53fea0388d04 (patch) | |
tree | 883382e0eabdcdff6c04a7df4b50d9cebffaf1c7 /services/audioflinger/FastMixer.cpp | |
parent | d8f178d613821c3f61a5c5e391eb275339e526a9 (diff) | |
download | frameworks_av-ee578c0330319f04a48bccbdb26b53fea0388d04.zip frameworks_av-ee578c0330319f04a48bccbdb26b53fea0388d04.tar.gz frameworks_av-ee578c0330319f04a48bccbdb26b53fea0388d04.tar.bz2 |
AudioFlinger: Better handling for master volume/mute
(cherry picked from commit 93d906837e0e89aa1d9c913ab2b531b809f9bb9e)
> AudioFlinger: Better handling for master volume/mute
>
> Changes to address bug 6842827.
>
> When a HAL is loaded, cache whether or not the HAL supports
> set_master_volume/mute in the AudioHwDevice structure. Store an
> AudioHwDevice in AudioStream(In|Out) structures instead of just an
> audio_he_device_t. This give threads (PlaybackThreads in
> particular) access to the cached capabilities.
>
> When setting master volume/mute, change the system to always set the
> setting on all HAL which support it and also to set the setting on all
> PlaybackThreads. Change PlaybackThreads to apply the setting at the
> in SW mix stage of the pipeline if its assigned HAL does not support
> the setting, or to ignore the setting of the assigned HAL does support
> it.
>
> Change-Id: Ia14137a30b4c3ee6f2d7ddcc8cba87bf5eec87f4
> Signed-off-by: John Grossman <johngro@google.com>
Change-Id: Icb6bc13764e100a2003eb1dee2231132ab287d98
Signed-off-by: John Grossman <johngro@google.com>
Diffstat (limited to 'services/audioflinger/FastMixer.cpp')
0 files changed, 0 insertions, 0 deletions