Ignore ro.audio.silent property when playing on REMOTE_SUBMIX
Ignore the effect of the ro.audio.silent property for playback
threads playing on AUDIO_DEVICE_OUT_REMOTE_SUBMIX as playing
in those mixes doesn't make a sound.
Bug 27336527
Change-Id: I933cfed29cd72636fd33282e5f2ad05693688b83
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index b322a45..9b57960 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -2531,6 +2531,10 @@
{
if (!mMasterMute) {
char value[PROPERTY_VALUE_MAX];
+ if (mOutDevice == AUDIO_DEVICE_OUT_REMOTE_SUBMIX) {
+ ALOGD("ro.audio.silent will be ignored for threads on AUDIO_DEVICE_OUT_REMOTE_SUBMIX");
+ return;
+ }
if (property_get("ro.audio.silent", value, "0") > 0) {
char *endptr;
unsigned long ul = strtoul(value, &endptr, 0);