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

Commit d908ea02 authored by Krishnankutty Kolathappilly's avatar Krishnankutty Kolathappilly Committed by Haynes Mathew George
Browse files

audioflinger: Set DAP on/bypass on DAP effect for passthrough stream

Set DAP on/bypass on DAP effect for passthrough stream. If passthrough
track is active, bypass DAP effects. If there is no active track
reset bypassing the track.

CRs-Fixed: 761339
Change-Id: I1945281d8523a30e82c0a3b966fbb6d6c063459e
parent dd68a083
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -4648,6 +4648,16 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::OffloadThread::prepareTr

    // remove all the tracks that need to be...
    removeTracks_l(*tracksToRemove);
#ifdef HDMI_PASSTHROUGH_ENABLED
    bool bypass = false;
    if ((mOutput->flags & AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH) != 0) {
        if (mActiveTracks.size() != 0)
             bypass = true;
#ifdef DOLBY_DAP_HW_QDSP_HAL_API
        EffectDapController::instance()->setPassthroughBypass(bypass);
#endif // DOLBY_END
    }
#endif // HDMI_PASSTHROUGH_END

    return mixerStatus;
}