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

Commit abbeb436 authored by Henry Fang's avatar Henry Fang Committed by Automerger Merge Worker
Browse files

Merge "audio: prevent invalid fallback when in tuner passthrough" am:...

Merge "audio: prevent invalid fallback when in tuner passthrough" am: 7c83e3e1 am: f937c3b7 am: 0756491f

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2493577



Change-Id: I88214836216535b51ca8705b6d1d8ce4b41d58e8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents acb4e743 0756491f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1582,6 +1582,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