platform_hardware_libhardwa.../audio
Eric Laurent c5eb8b4a5d Fix volume not restored when exiting silent mode
The change for volume per device introduced a problem where if a headset
is plugged in while in silent mode, the sound will not be restored
at the first press on volume up key but only at the second press.

This is because when exiting silent mode, AudioService reapplies the
last known volume for all devices in any order and the last volume
applied prevails, even if it is for a device other than currently selected
by audio policy manager.

The fix consists in applying a new volume only if the device indicated
matches currently selected device on an output.

Change-Id: I778b90a9ec5a8b4a15e0333bd045f2dd327f388c
2012-02-15 18:40:31 -08:00
..
A2dpAudioInterface.cpp Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 10:18:02 +00:00
A2dpAudioInterface.h hardware_legacy: provide HAL helpers for legacy audio users 2011-04-27 10:48:25 -07:00
Android.mk hardware_legacy/audio: provide a default audio policy implementation 2011-04-27 10:48:25 -07:00
audio_hw_hal.cpp Merge "Use audio_format_t consistently" 2012-01-20 14:50:30 -08:00
audio_policy_hal.cpp Use audio_source_t consistently 2012-01-26 16:46:31 -08:00
AudioDumpInterface.cpp Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 10:18:02 +00:00
AudioDumpInterface.h legacy: move legacy audio code from frameworks/base here 2011-04-27 10:48:20 -07:00
AudioHardwareGeneric.cpp Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 10:18:02 +00:00
AudioHardwareGeneric.h hardware_legacy: provide HAL helpers for legacy audio users 2011-04-27 10:48:25 -07:00
AudioHardwareInterface.cpp Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE 2012-01-05 23:27:53 +00:00
AudioHardwareStub.cpp hardware_legacy: provide HAL helpers for legacy audio users 2011-04-27 10:48:25 -07:00
AudioHardwareStub.h hardware_legacy: provide HAL helpers for legacy audio users 2011-04-27 10:48:25 -07:00
AudioPolicyCompatClient.cpp Use audio_in_acoustics_t consistently 2012-01-27 13:04:19 -08:00
AudioPolicyCompatClient.h Use audio_in_acoustics_t consistently 2012-01-27 13:04:19 -08:00
AudioPolicyManagerBase.cpp Fix volume not restored when exiting silent mode 2012-02-15 18:40:31 -08:00
AudioPolicyManagerDefault.cpp hardware_legacy/audio: provide a default audio policy implementation 2011-04-27 10:48:25 -07:00
AudioPolicyManagerDefault.h hardware_legacy/audio: provide a default audio policy implementation 2011-04-27 10:48:25 -07:00