Lines Matching refs:patchDesc

5166     sp<AudioPatch> patchDesc;  in createAudioPatchInternal()  local
5181 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
5183 __func__, mUidCached, patchDesc->getUid(), uid); in createAudioPatchInternal()
5184 if (patchDesc->getUid() != mUidCached && uid != patchDesc->getUid()) { in createAudioPatchInternal()
5199 if (patchDesc != 0) { in createAudioPatchInternal()
5200 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatchInternal()
5202 __func__, patchDesc->mPatch.sources[0].id, patch->sources[0].id); in createAudioPatchInternal()
5245 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatchInternal()
5248 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
5249 patchDesc->setUid(uid); in createAudioPatchInternal()
5266 if (patchDesc != 0) { in createAudioPatchInternal()
5267 if (patchDesc->mPatch.sinks[0].id != patch->sinks[0].id) { in createAudioPatchInternal()
5297 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatchInternal()
5300 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
5301 patchDesc->setUid(uid); in createAudioPatchInternal()
5309 if (patchDesc != 0) { in createAudioPatchInternal()
5310 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatchInternal()
5443 __func__, index, handle, patchBuilder.patch(), delayMs, uid, &patchDesc); in createAudioPatchInternal()
5465 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in releaseAudioPatch() local
5467 __func__, mUidCached, patchDesc->getUid(), uid); in releaseAudioPatch()
5468 if (patchDesc->getUid() != mUidCached && uid != patchDesc->getUid()) { in releaseAudioPatch()
5492 sp<AudioPatch> patchDesc = mAudioPatches.valueFor(handle); in releaseAudioPatchInternal() local
5493 struct audio_patch *patch = &patchDesc->mPatch; in releaseAudioPatchInternal()
5494 patchDesc->setUid(mUidCached); in releaseAudioPatchInternal()
5520 mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), delayMs); in releaseAudioPatchInternal()
5522 __func__, status, patchDesc->getAfHandle()); in releaseAudioPatchInternal()
5523 removeAudioPatch(patchDesc->getHandle()); in releaseAudioPatchInternal()
5651 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in clearAudioPatches() local
5652 if (patchDesc->getUid() == uid) { in clearAudioPatches()
6676 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in onNewAudioModulesAvailableInt() local
6678 patchDesc->getAfHandle(), 0); in onNewAudioModulesAvailableInt()
7056 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeOutput() local
7058 patchDesc->getAfHandle(), 0); in closeOutput()
7120 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeInput() local
7122 patchDesc->getAfHandle(), 0); in closeInput()
7466 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewOutputDevices() local
7467 if (patchDesc->getUid() != mUidCached) { in getNewOutputDevices()
7539 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewInputDevice() local
7540 if (patchDesc->getUid() != mUidCached) { in getNewInputDevice()
7893 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetOutputDevice() local
7894 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), delayMs); in resetOutputDevice()
7897 removeAudioPatch(patchDesc->getHandle()); in resetOutputDevice()
7946 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetInputDevice() local
7947 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), 0); in resetInputDevice()
7950 removeAudioPatch(patchDesc->getHandle()); in resetInputDevice()
8476 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in cleanUpForDevice() local
8478 for (size_t j = 0; j < patchDesc->mPatch.num_sources && !release; j++) { in cleanUpForDevice()
8479 const struct audio_port_config *source = &patchDesc->mPatch.sources[j]; in cleanUpForDevice()
8486 for (size_t j = 0; j < patchDesc->mPatch.num_sinks && !release; j++) { in cleanUpForDevice()
8487 const struct audio_port_config *sink = &patchDesc->mPatch.sinks[j]; in cleanUpForDevice()
8497 ALOGV("%s releasing patch %u", __FUNCTION__, patchDesc->getHandle()); in cleanUpForDevice()
8498 releaseAudioPatch(patchDesc->getHandle(), patchDesc->getUid()); in cleanUpForDevice()
8657 sp<AudioPatch> patchDesc; in installPatch() local
8659 caller, index, patchHandle, patch, delayMs, mUidCached, &patchDesc); in installPatch()
8661 ioDescriptor->setPatchHandle(patchDesc->getHandle()); in installPatch()
8674 sp<AudioPatch> patchDesc; in installPatch() local
8677 patchDesc = mAudioPatches.valueAt(index); in installPatch()
8678 afPatchHandle = patchDesc->getAfHandle(); in installPatch()
8686 patchDesc = new AudioPatch(patch, uid); in installPatch()
8687 addAudioPatch(patchDesc->getHandle(), patchDesc); in installPatch()
8689 patchDesc->mPatch = *patch; in installPatch()
8691 patchDesc->setAfHandle(afPatchHandle); in installPatch()
8693 *patchHandle = patchDesc->getHandle(); in installPatch()
8698 if (patchDescPtr) *patchDescPtr = patchDesc; in installPatch()
8714 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in areAllActiveTracksRerouted() local
8716 for (int i = 0; i < patchDesc->mPatch.num_sinks; ++i) { in areAllActiveTracksRerouted()
8718 patchDesc->mPatch.sinks[i].id); in areAllActiveTracksRerouted()
8721 __func__, patchDesc->mPatch.sinks[i].id); in areAllActiveTracksRerouted()