Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 908d9a02 authored by Naresh Tanniru's avatar Naresh Tanniru Committed by Harsh Bansal
Browse files

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
parent 7972d618
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1785,7 +1785,7 @@ static int qaf_stream_open(struct stream_out *out,
                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");