Lines Matching refs:policyMix
285 sp<AudioPolicyMix> policyMix = desc->mPolicyMix.promote(); in setDeviceConnectionStateInt() local
286 if (policyMix != nullptr in setDeviceConnectionStateInt()
287 && policyMix->mMixType == MIX_TYPE_RECORDERS in setDeviceConnectionStateInt()
288 && device->address() == policyMix->mDeviceAddress.c_str()) { in setDeviceConnectionStateInt()
2400 sp<AudioPolicyMix> policyMix = outputDesc->mPolicyMix.promote(); in startSource() local
2402 if (policyMix != nullptr) { in startSource()
2404 address = policyMix->mDeviceAddress.c_str(); in startSource()
2405 if ((policyMix->mRouteFlags & MIX_ROUTE_FLAG_LOOP_BACK) == MIX_ROUTE_FLAG_LOOP_BACK) { in startSource()
2408 newDeviceType = policyMix->mDeviceType; in startSource()
2559 policyMix != NULL && policyMix->mMixType == MIX_TYPE_RECORDERS) { in startSource()
2671 sp<AudioPolicyMix> policyMix = outputDesc->mPolicyMix.promote(); in stopSource() local
2674 policyMix != nullptr && in stopSource()
2675 policyMix->mMixType == MIX_TYPE_RECORDERS) { in stopSource()
2678 policyMix->mDeviceAddress, in stopSource()
2832 sp<AudioPolicyMix> policyMix; in getInputForAttr() local
2904 status = mPolicyMixes.getInputMixForAttr(attributes, &policyMix); in getInputForAttr()
2920 if (is_mix_loopback_render(policyMix->mRouteFlags)) { in getInputForAttr()
2926 *virtualDeviceId = policyMix->mVirtualDeviceId; in getInputForAttr()
2934 device = mEngine->getInputDeviceForAttributes(attributes, uid, session, &policyMix); in getInputForAttr()
2945 } else if (policyMix) { in getInputForAttr()
2946 ALOG_ASSERT(policyMix->mMixType == MIX_TYPE_RECORDERS, "Invalid Mix Type"); in getInputForAttr()
2953 *virtualDeviceId = policyMix->mVirtualDeviceId; in getInputForAttr()
2965 *input = getInputForDevice(device, session, attributes, config, flags, policyMix); in getInputForAttr()
2987 if (policyMix != nullptr && virtualDeviceId != nullptr) { in getInputForAttr()
2988 *virtualDeviceId = policyMix->mVirtualDeviceId; in getInputForAttr()
3023 const sp<AudioPolicyMix> &policyMix) in getInputForDevice() argument
3146 inputDesc->mPolicyMix = policyMix; in getInputForDevice()
3197 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in startInput() local
3199 if ((policyMix != nullptr) in startInput()
3200 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in startInput()
3201 mpClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in startInput()
3216 if (policyMix == nullptr) { in startInput()
3218 } else if (policyMix->mMixType == MIX_TYPE_PLAYERS) { in startInput()
3219 address = policyMix->mDeviceAddress; in startInput()
3263 sp<AudioPolicyMix> policyMix = inputDesc->mPolicyMix.promote(); in stopInput() local
3265 if ((policyMix != nullptr) in stopInput()
3266 && ((policyMix->mCbFlags & AudioMix::kCbFlagNotifyActivity) != 0)) { in stopInput()
3267 mpClientInterface->onDynamicPolicyMixStateUpdate(policyMix->mDeviceAddress, in stopInput()
3275 if (policyMix == nullptr) { in stopInput()
3277 } else if (policyMix->mMixType == MIX_TYPE_PLAYERS) { in stopInput()
3278 address = policyMix->mDeviceAddress; in stopInput()
4056 for (const auto &policyMix: mPolicyMixes) { in getRegisteredPolicyMixes() local
4057 _aidl_return.emplace_back(policyMix->mCriteria, policyMix->mMixType, in getRegisteredPolicyMixes()
4058 policyMix->mFormat, policyMix->mRouteFlags, policyMix->mDeviceAddress, in getRegisteredPolicyMixes()
4059 policyMix->mCbFlags); in getRegisteredPolicyMixes()
4060 _aidl_return.back().mDeviceType = policyMix->mDeviceType; in getRegisteredPolicyMixes()
4061 _aidl_return.back().mToken = policyMix->mToken; in getRegisteredPolicyMixes()
4062 _aidl_return.back().mVirtualDeviceId = policyMix->mVirtualDeviceId; in getRegisteredPolicyMixes()
8811 sp<AudioPolicyMix> policyMix; in openOutputWithProfileAndDevice() local
8812 if (mPolicyMixes.getAudioPolicyMix(deviceType, address, policyMix) == NO_ERROR) { in openOutputWithProfileAndDevice()
8813 policyMix->setOutput(desc); in openOutputWithProfileAndDevice()
8814 desc->mPolicyMix = policyMix; in openOutputWithProfileAndDevice()
8875 sp<AudioPolicyMix> policyMix; in getDevicesForAttributes() local
8879 mAvailableOutputDevices, nullptr /* requestedDevice */, policyMix, in getDevicesForAttributes()
8885 if (policyMix != nullptr && policyMix->getOutput() != nullptr && in getDevicesForAttributes()
8889 (!forVolume || policyMix->mDeviceType != AUDIO_DEVICE_OUT_REMOTE_SUBMIX) in getDevicesForAttributes()
8892 policyMix->mDeviceType, policyMix->mDeviceAddress, AUDIO_FORMAT_DEFAULT); in getDevicesForAttributes()