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

Commit e73496bf authored by Pierre Couillaud's avatar Pierre Couillaud
Browse files

audio: prevent invalid fallback when in tuner passthrough



Bug: 271867019
Change-Id: I6a2e55f0cea6d8d7b3a1f388cbc919fd749d01b7
Signed-off-by: default avatarPierre Couillaud <pierre@broadcom.com>
parent cefa59f5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1531,6 +1531,10 @@ audio_io_handle_t AudioPolicyManager::getOutputForDevices(
    if ((*flags & (AUDIO_OUTPUT_FLAG_HW_AV_SYNC | AUDIO_OUTPUT_FLAG_MMAP_NOIRQ)) != 0) {
        return AUDIO_IO_HANDLE_NONE;
    }
    // A request for Tuner cannot fallback to a mixed output
    if ((directConfig.offload_info.content_id || directConfig.offload_info.sync_id)) {
        return AUDIO_IO_HANDLE_NONE;
    }

    // ignoring channel mask due to downmix capability in mixer