AudioPolicyMix: fix loopback+render mix match rules

Fix matching logic for loopback+render rule and usage VOICE_COMMUNICATION.
Previous logic was requesting flag mAllowPrivilegedPlaybackCapture to
allow capturing playback with usage VOICE_COMMUNICATION.
This is not a requirement: only flag mVoiceCommunicationCaptureAllowed
together with a client not having opted out from capture by the system
is needed for a match.
Also rename mAllowPrivilegedPlaybackCapture to mAllowPrivilegedMediaPlaybackCapture
in AudioMix class to reflect better its actual role.

Test: atest AudioHostTest
Test: atest AudioPlaybackCaptureTest
Bug: 161569476
Change-Id: Iad0b7e89e68c9f2e59fabb75071a6425e9a29085
diff --git a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
index 10bf707..66f9fbd 100644
--- a/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
+++ b/services/audiopolicy/service/AudioPolicyInterfaceImpl.cpp
@@ -1241,7 +1241,7 @@
             return mix.mVoiceCommunicationCaptureAllowed; });
 
     bool needCaptureMediaOutput = std::any_of(mixes.begin(), mixes.end(), [](auto& mix) {
-            return mix.mAllowPrivilegedPlaybackCapture; });
+            return mix.mAllowPrivilegedMediaPlaybackCapture; });
 
     const uid_t callingUid = IPCThreadState::self()->getCallingUid();
     const pid_t callingPid = IPCThreadState::self()->getCallingPid();