Merge cherrypicks of ['googleplex-android-review.googlesource.com/28052322'] into 24Q3-release.

Change-Id: I41fce07514d2cae7268c4564f970b825eb1c7c49
diff --git a/services/audiopolicy/common/managerdefinitions/include/AudioIODescriptorInterface.h b/services/audiopolicy/common/managerdefinitions/include/AudioIODescriptorInterface.h
index 3edd4de..e519766 100644
--- a/services/audiopolicy/common/managerdefinitions/include/AudioIODescriptorInterface.h
+++ b/services/audiopolicy/common/managerdefinitions/include/AudioIODescriptorInterface.h
@@ -53,7 +53,7 @@
         // a preferred device in which case the first client drives the selection.
         if (desc->isMmap()) {
             auto matchingClients = desc->clientsList(
-                    false /*activeOnly*/, filter, true /*preferredDevice*/);
+                    false /*activeOnly*/, filter, false /*preferredDevice*/);
             if (matchingClients.empty()) {
                 return nullptr;
             }