Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32f37c22 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

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
parent 9887c3e2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2531,6 +2531,10 @@ void AudioFlinger::PlaybackThread::checkSilentMode_l()
{
    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);