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

Commit 14cbfcae authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: fix HW A/V sync rerouting

Do not allow HW A/V sync tracks to be attached
to a PCM mixer as those tracks carry time stamps in band.

Cherry pick of c576f6a0 from lmp-mr1-tv-dev.

Bug: 25293500.

Change-Id: I1f080232e439a410ded25ca8e461113a96687a3b
parent b53ab34b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -954,6 +954,13 @@ audio_io_handle_t AudioPolicyManager::getOutputForDevice(
    }

non_direct_output:

    // A request for HW A/V sync cannot fallback to a mixed output because time
    // stamps are embedded in audio data
    if ((flags & AUDIO_OUTPUT_FLAG_HW_AV_SYNC) != 0) {
        return AUDIO_IO_HANDLE_NONE;
    }

    // ignoring channel mask due to downmix capability in mixer

    // open a non direct output