hal: Add check for compress-offload streams in open

 Add a check in adev_open_output_stream, so that the
 compress offload streams are properly configured.

Change-Id: I46d0937afd8192268caccbd6792f9a095829332b
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 3823ed0..2822751 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -8462,7 +8462,8 @@
         out->config.period_size = HDMI_MULTI_PERIOD_BYTES / (out->config.channels *
                                                          audio_bytes_per_sample(config->format));
         out->config.format = pcm_format_from_audio_format(out->format);
-    } else if (compare_device_type(&out->device_list, AUDIO_DEVICE_OUT_BUS)) {
+    } else if ((!(out->flags & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD)) &&
+                compare_device_type(&out->device_list, AUDIO_DEVICE_OUT_BUS)) {
             ret = audio_extn_auto_hal_open_output_stream(out);
             if (ret) {
                 ALOGE("%s: Failed to open output stream for bus device", __func__);