summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/common
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-07-02 15:30:23 -0700
committerEric Laurent <elaurent@google.com>2015-07-07 14:07:37 -0700
commit9a7d922796c61353e30cea5878f41b921adc79b0 (patch)
treea52b00294822963dd4f6d2d85b9b9d90a757e6fa /services/audiopolicy/common
parent065f6572752dca646b7d60df8e80b6d4ac159281 (diff)
downloadframeworks_av-9a7d922796c61353e30cea5878f41b921adc79b0.zip
frameworks_av-9a7d922796c61353e30cea5878f41b921adc79b0.tar.gz
frameworks_av-9a7d922796c61353e30cea5878f41b921adc79b0.tar.bz2
audio policy: add support for device combo with speaker safe
combo devices with AUDIO_DEVICE_OUT_SPEAKER_SAFE were not supported by audio policy manager causing selection of speaker+headphone when spekaer_safe+headphone would be the right selection. Bug: 21537010. Change-Id: I9865352559c9d32c6754ad3d2b84bddfe2dc8aac
Diffstat (limited to 'services/audiopolicy/common')
-rwxr-xr-xservices/audiopolicy/common/include/Volume.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audiopolicy/common/include/Volume.h b/services/audiopolicy/common/include/Volume.h
index 4205589..712f7a7 100755
--- a/services/audiopolicy/common/include/Volume.h
+++ b/services/audiopolicy/common/include/Volume.h
@@ -82,6 +82,8 @@ public:
// - HDMI-CEC system audio mode only output: give priority to available item in order.
if (device & AUDIO_DEVICE_OUT_SPEAKER) {
device = AUDIO_DEVICE_OUT_SPEAKER;
+ } else if (device & AUDIO_DEVICE_OUT_SPEAKER_SAFE) {
+ device = AUDIO_DEVICE_OUT_SPEAKER_SAFE;
} else if (device & AUDIO_DEVICE_OUT_HDMI_ARC) {
device = AUDIO_DEVICE_OUT_HDMI_ARC;
} else if (device & AUDIO_DEVICE_OUT_AUX_LINE) {