hal: Fix for Aaudio to pick proper usecase

Fixing mmap exclusive to pick mmap-playback usecase

Change-Id: I060d7bb3bb46a1799f596e2281c21ff2abe8547a
Suggeted-By: bbelagod
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index d6a5684..92cc047 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -8856,13 +8856,6 @@
                 audio_channel_count_from_out_mask(out->channel_mask);
         out->config.format = pcm_format_from_audio_format(out->format);
         adev->voice_tx_output = out;
-    } else if (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__);
-                ret = -EINVAL;
-                goto error_open;
-            }
     } else {
         unsigned int channels = 0;
         /*Update config params to default if not set by the caller*/
@@ -8937,7 +8930,14 @@
                 adev->haptics_config.channels = 1;
             } else
                 adev->haptics_config.channels = audio_channel_count_from_out_mask(out->channel_mask & AUDIO_CHANNEL_HAPTIC_ALL);
-        }  else {
+        } else if (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__);
+                ret = -EINVAL;
+                goto error_open;
+            }
+        } else {
             /* primary path is the default path selected if no other outputs are available/suitable */
             out->usecase = GET_USECASE_AUDIO_PLAYBACK_PRIMARY(use_db_as_primary);
             out->config = GET_PCM_CONFIG_AUDIO_PLAYBACK_PRIMARY(use_db_as_primary);