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
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 254bbfd..d7ffbe3 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2336,7 +2336,8 @@
out->handle = handle;
/* 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) &&
(
#ifdef AFE_PROXY_ENABLED
out->devices & AUDIO_DEVICE_OUT_PROXY ||