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

Commit 601b5a5f authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "Ignore ro.audio.silent property when playing on REMOTE_SUBMIX" into nyc-dev

parents e85b9da2 32f37c22
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);