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

Commit c6132d68 authored by jiabin's avatar jiabin Committed by Jiabin Huang
Browse files

Fix direct mode query failure.

The root cause of the failure is a typo in the condition that makes
us wrongly return that offload is not supported when it is.

Test: atest AudioManagerTest AudioTrackOffloadTest
Bug: 212718725
Change-Id: I3eb9d6989481c5f835819180477a034d5d3788e6
parent 187097e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3797,7 +3797,7 @@ audio_direct_mode_t AudioPolicyManager::getDirectPlaybackSupport(const audio_att
            }
            if ((curProfile->getFlags() & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD)
                        != AUDIO_OUTPUT_FLAG_NONE) {
                if ((directMode | AUDIO_DIRECT_OFFLOAD_GAPLESS_SUPPORTED)
                if ((directMode & AUDIO_DIRECT_OFFLOAD_GAPLESS_SUPPORTED)
                        != AUDIO_DIRECT_NOT_SUPPORTED) {
                    // Already reports offload gapless supported. No need to report offload support.
                    continue;