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

Commit 11f0f4f5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Fix for down-mixing of multi-ch offload playback"

parents 8120c4b7 139f1077
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1014,6 +1014,12 @@ static bool allow_hdmi_channel_config(struct audio_device *adev)
                      "no change in HDMI channels", __func__);
                ret = false;
                break;
            } else if (usecase->id == USECASE_AUDIO_PLAYBACK_OFFLOAD &&
                       popcount(usecase->stream.out->channel_mask) > 2) {
                ALOGD("%s: multi-channel(%x) compress offload playback is active, "
                      "no change in HDMI channels", __func__, usecase->stream.out->channel_mask);
                ret = false;
                break;
            }
        }
    }