Merge "hal: fix direct output flag test in open_output_stream"
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 4bc6b59..4a87d50 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2802,7 +2802,8 @@
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)) {