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

Commit 98c519c9 authored by jiabin's avatar jiabin
Browse files

Fix rerouting problem when bit-perfect playback starts.

When bit-perfect playback starts, APM should reroute all clients that
currently is routed to the bit-perfect sink to the bit-perfect output.

Bug: 290054011
Test: atest audiopolicy_tests
Change-Id: I70279cebb8dea51c06e4e34ac355354c1816c40f
parent 1a8e2a36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2155,7 +2155,7 @@ status_t AudioPolicyManager::startOutput(audio_port_handle_t portId)
                PortHandleVector clientsToInvalidate;
                for (size_t i = 0; i < mOutputs.size(); i++) {
                    if (mOutputs[i] == outputDesc ||
                        !mOutputs[i]->devices().filter(outputDesc->devices()).isEmpty()) {
                        mOutputs[i]->devices().filter(outputDesc->devices()).isEmpty()) {
                        continue;
                    }
                    for (const auto& c : mOutputs[i]->getClientIterable()) {