audio: hal: Make app type for interactive same as Primary stream

To make single COPP for interactive & Primary stream Store app type
for Primary stream and update interactive audio's app type.Primary
stream could be 16bit or 24bit but should have same app type

Change-Id: Ic5ceb6120b05e5e6453bfafeefa75c36f6c3c65f
CRs-fixed: 2091555
diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c
index c1cc9ee..677dfd4 100644
--- a/hal/audio_extn/utils.c
+++ b/hal/audio_extn/utils.c
@@ -878,7 +878,7 @@
     char value[PROPERTY_VALUE_MAX] = {0};
     struct streams_io_cfg *s_info = NULL;
     struct listnode *node = NULL;
-    int direct_app_type = 0;
+    int bd_app_type = 0;
 
     ALOGV("%s: usecase->out_snd_device %s, usecase->in_snd_device %s, split_snd_device %s",
           __func__, platform_get_snd_device_name(usecase->out_snd_device),
@@ -983,11 +983,13 @@
          */
         list_for_each(node, &adev->streams_output_cfg_list) {
             s_info = node_to_item(node, struct streams_io_cfg, list);
-            if (s_info->flags.out_flags == AUDIO_OUTPUT_FLAG_DIRECT)
-                direct_app_type = s_info->app_type_cfg.app_type;
+            if (s_info->flags.out_flags == (AUDIO_OUTPUT_FLAG_BD |
+                                            AUDIO_OUTPUT_FLAG_DIRECT_PCM |
+                                            AUDIO_OUTPUT_FLAG_DIRECT))
+                bd_app_type = s_info->app_type_cfg.app_type;
         }
-        if (usecase->stream.out->flags & AUDIO_OUTPUT_FLAG_INTERACTIVE)
-            app_type = direct_app_type;
+        if (usecase->stream.out->flags == AUDIO_OUTPUT_FLAG_INTERACTIVE)
+            app_type = bd_app_type;
         else
             app_type = usecase->stream.out->app_type_cfg.app_type;
         app_type_cfg[len++] = app_type;