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

Commit 2264ad30 authored by Mingming Yin's avatar Mingming Yin Committed by Gerrit - the friendly Code Review server
Browse files

hal: fix direct output flag test in open_output_stream

- Multi channel HDMI PCM output should be used if
  AUDIO_OUTPUT_FLAG_DIRECT is set and
  AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD is not set.

Change-Id: I9d967488717b3bf49578f7cdb56a55deda0ce379
parent a4b09823
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2789,7 +2789,8 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
    out->use_small_bufs = false;

    /* Init use case and pcm_config */
    if ((out->flags == AUDIO_OUTPUT_FLAG_DIRECT) &&
    if ((out->flags & AUDIO_OUTPUT_FLAG_DIRECT) &&
        !(out->flags & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) &&
        (out->devices & AUDIO_DEVICE_OUT_AUX_DIGITAL ||
        out->devices & AUDIO_DEVICE_OUT_PROXY)) {