audio: hal: qaf: Fix for Associated Stream
-Associated stream was getting determined as primary stream
-Corrected conditional check to fix the issue

CRs-fixed: 2048428
Change-Id: I9c53a1a2f5089a1739ee49dfccf83d7d77e0adb2
diff --git a/hal/audio_extn/qaf.c b/hal/audio_extn/qaf.c
index f16c365..21cf2da 100644
--- a/hal/audio_extn/qaf.c
+++ b/hal/audio_extn/qaf.c
@@ -1785,7 +1785,7 @@
                 ERROR_MSG("Stream Open FAILED !!!");
             }
         }
-    } else if ((flags & AUDIO_OUTPUT_FLAG_MAIN) || (!((flags & AUDIO_OUTPUT_FLAG_MAIN) && (flags & AUDIO_OUTPUT_FLAG_ASSOCIATED)))) {
+    } else if ((flags & AUDIO_OUTPUT_FLAG_MAIN) || ((!(flags & AUDIO_OUTPUT_FLAG_MAIN)) && (!(flags & AUDIO_OUTPUT_FLAG_ASSOCIATED)))) {
         /* Assume Main if no flag is set */
         if (is_dual_main_active(qaf_mod)) {
             ERROR_MSG("Dual Main already active. So, Cannot open main stream");