summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioPolicyManagerBase.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-04-22 13:57:53 -0700
committerEric Laurent <elaurent@google.com>2012-04-23 10:25:13 -0700
commit9029a4fe8abafd383e6fbb1409d1e2f749b51391 (patch)
treef08617bee6c9674c1fb5e7b663a4b64e29077ab6 /include/hardware_legacy/AudioPolicyManagerBase.h
parentb2971bf2ae4e9da3155559aa134e3aa6c2b216a4 (diff)
downloadhardware_libhardware_legacy-9029a4fe8abafd383e6fbb1409d1e2f749b51391.zip
hardware_libhardware_legacy-9029a4fe8abafd383e6fbb1409d1e2f749b51391.tar.gz
hardware_libhardware_legacy-9029a4fe8abafd383e6fbb1409d1e2f749b51391.tar.bz2
audio policy: volume burst when switching device
The addition of the per device volume feature has introduced a problem where a volume burst can be heard in the headphones just after insertion if the speaker volume is much higher than the headphones volume. Added a temporary mute of the output when switching device to force volume ramp to 0 and back up to new volume. Issue 5984108. Change-Id: I5c9ffbbcadd12d25c78cc2614d351346b8186c55
Diffstat (limited to 'include/hardware_legacy/AudioPolicyManagerBase.h')
-rw-r--r--include/hardware_legacy/AudioPolicyManagerBase.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h
index d56247b..916c952 100644
--- a/include/hardware_legacy/AudioPolicyManagerBase.h
+++ b/include/hardware_legacy/AudioPolicyManagerBase.h
@@ -447,7 +447,8 @@ protected:
// if unmuting, unmute only after the specified delay
// Returns the number of ms waited
uint32_t checkDeviceMuteStrategies(AudioOutputDescriptor *outputDesc,
- uint32_t delayMs);
+ audio_devices_t prevDevice,
+ uint32_t delayMs);
audio_io_handle_t selectOutput(const SortedVector<audio_io_handle_t>& outputs,
AudioSystem::output_flags flags);