Lines Matching refs:policyMix

208                 sp<AudioPolicyMix> policyMix = desc->mPolicyMix.promote();  in setDeviceConnectionStateInt()  local
209 if (policyMix != nullptr in setDeviceConnectionStateInt()
210 && policyMix->mMixType == MIX_TYPE_RECORDERS in setDeviceConnectionStateInt()
212 policyMix->mDeviceAddress.string(), in setDeviceConnectionStateInt()
1631 sp<AudioPolicyMix> policyMix = outputDesc->mPolicyMix.promote(); in startSource() local
1633 if (policyMix != NULL) { in startSource()
1635 address = policyMix->mDeviceAddress.string(); in startSource()
1636 if ((policyMix->mRouteFlags & MIX_ROUTE_FLAG_LOOP_BACK) == MIX_ROUTE_FLAG_LOOP_BACK) { in startSource()
1639 newDeviceType = policyMix->mDeviceType; in startSource()
1764 if (audio_is_remote_submix_device(devices.types()) && policyMix != NULL && in startSource()
1765 policyMix->mMixType == MIX_TYPE_RECORDERS) { in startSource()
1811 sp<AudioPolicyMix> policyMix = outputDesc->mPolicyMix.promote(); in stopSource() local
1813 policyMix != NULL && in stopSource()
1814 policyMix->mMixType == MIX_TYPE_RECORDERS) { in stopSource()
1817 policyMix->mDeviceAddress, in stopSource()
1933 sp<AudioPolicyMix> policyMix; in getInputForAttr() local
2005 status = mPolicyMixes.getInputMixForAttr(attributes, &policyMix); in getInputForAttr()
2021 if (is_mix_loopback_render(policyMix->mRouteFlags)) { in getInputForAttr()
2032 device = mEngine->getInputDeviceForAttributes(attributes, &policyMix); in getInputForAttr()
2039 if (policyMix) { in getInputForAttr()
2040 ALOG_ASSERT(policyMix->mMixType == MIX_TYPE_RECORDERS, "Invalid Mix Type"); in getInputForAttr()
2055 *input = getInputForDevice(device, session, attributes, config, flags, policyMix); in getInputForAttr()
2091 const sp<AudioPolicyMix> &policyMix) in getInputForDevice() argument
2207 inputDesc->mPolicyMix = policyMix; in getInputForDevice()
2252 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in startInput() local
2254 if ((policyMix != NULL) in startInput()
2255 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
2256 mpClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in startInput()
2271 if (policyMix == NULL) { in startInput()
2273 } else if (policyMix->mMixType == MIX_TYPE_PLAYERS) { in startInput()
2274 address = policyMix->mDeviceAddress; in startInput()
2311 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in stopInput() local
2313 if ((policyMix != NULL) in stopInput()
2314 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
2315 mpClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in stopInput()
2323 if (policyMix == NULL) { in stopInput()
2325 } else if (policyMix->mMixType == MIX_TYPE_PLAYERS) { in stopInput()
2326 address = policyMix->mDeviceAddress; in stopInput()
4659 sp<AudioPolicyMix> policyMix; in checkOutputsForDevice() local
4660 if (mPolicyMixes.getAudioPolicyMix(deviceType, address, policyMix) in checkOutputsForDevice()
4662 policyMix->setOutput(desc); in checkOutputsForDevice()
4663 desc->mPolicyMix = policyMix; in checkOutputsForDevice()