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

Commit 865775da authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Invalidate all clients when bit-perfect client is active." into main

parents 1d327f79 fedb92ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2379,8 +2379,8 @@ status_t AudioPolicyManager::startOutput(audio_port_handle_t portId)
                // the bit-perfect sink so that it is guaranteed only bit-perfect stream is active.
                PortHandleVector clientsToInvalidate;
                for (size_t i = 0; i < mOutputs.size(); i++) {
                    if (mOutputs[i] == outputDesc ||
                        mOutputs[i]->devices().filter(outputDesc->devices()).isEmpty()) {
                    if (mOutputs[i] == outputDesc || (!mOutputs[i]->devices().isEmpty() &&
                        mOutputs[i]->devices().filter(outputDesc->devices()).isEmpty())) {
                        continue;
                    }
                    for (const auto& c : mOutputs[i]->getClientIterable()) {