Lines Matching refs:patchDesc

3512     sp<AudioPatch> patchDesc;  in createAudioPatchInternal()  local
3527 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
3529 __func__, mUidCached, patchDesc->getUid(), uid); in createAudioPatchInternal()
3530 if (patchDesc->getUid() != mUidCached && uid != patchDesc->getUid()) { in createAudioPatchInternal()
3545 if (patchDesc != 0) { in createAudioPatchInternal()
3546 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatchInternal()
3548 __func__, patchDesc->mPatch.sources[0].id, patch->sources[0].id); in createAudioPatchInternal()
3590 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatchInternal()
3593 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
3594 patchDesc->setUid(uid); in createAudioPatchInternal()
3611 if (patchDesc != 0) { in createAudioPatchInternal()
3612 if (patchDesc->mPatch.sinks[0].id != patch->sinks[0].id) { in createAudioPatchInternal()
3641 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatchInternal()
3644 patchDesc = mAudioPatches.valueAt(index); in createAudioPatchInternal()
3645 patchDesc->setUid(uid); in createAudioPatchInternal()
3653 if (patchDesc != 0) { in createAudioPatchInternal()
3654 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatchInternal()
3753 __func__, index, handle, patchBuilder.patch(), delayMs, uid, &patchDesc); in createAudioPatchInternal()
3777 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in releaseAudioPatch() local
3779 __func__, mUidCached, patchDesc->getUid(), uid); in releaseAudioPatch()
3780 if (patchDesc->getUid() != mUidCached && uid != patchDesc->getUid()) { in releaseAudioPatch()
3794 sp<AudioPatch> patchDesc = mAudioPatches.valueFor(handle); in releaseAudioPatchInternal() local
3795 struct audio_patch *patch = &patchDesc->mPatch; in releaseAudioPatchInternal()
3796 patchDesc->setUid(mUidCached); in releaseAudioPatchInternal()
3822 mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), delayMs); in releaseAudioPatchInternal()
3824 __func__, status, patchDesc->getAfHandle()); in releaseAudioPatchInternal()
3825 removeAudioPatch(patchDesc->getHandle()); in releaseAudioPatchInternal()
3836 if (patchDesc->getHandle() != outputDesc->getPatchHandle()) { in releaseAudioPatchInternal()
3942 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in clearAudioPatches() local
3943 if (patchDesc->getUid() == uid) { in clearAudioPatches()
5127 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeOutput() local
5129 patchDesc->getAfHandle(), 0); in closeOutput()
5174 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeInput() local
5176 patchDesc->getAfHandle(), 0); in closeInput()
5441 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewOutputDevices() local
5442 if (patchDesc->getUid() != mUidCached) { in getNewOutputDevices()
5492 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewInputDevice() local
5493 if (patchDesc->getUid() != mUidCached) { in getNewInputDevice()
5849 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetOutputDevice() local
5850 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), delayMs); in resetOutputDevice()
5853 removeAudioPatch(patchDesc->getHandle()); in resetOutputDevice()
5902 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetInputDevice() local
5903 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->getAfHandle(), 0); in resetInputDevice()
5906 removeAudioPatch(patchDesc->getHandle()); in resetInputDevice()
6315 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in cleanUpForDevice() local
6317 for (size_t j = 0; j < patchDesc->mPatch.num_sources && !release; j++) { in cleanUpForDevice()
6318 const struct audio_port_config *source = &patchDesc->mPatch.sources[j]; in cleanUpForDevice()
6324 for (size_t j = 0; j < patchDesc->mPatch.num_sinks && !release; j++) { in cleanUpForDevice()
6325 const struct audio_port_config *sink = &patchDesc->mPatch.sinks[j]; in cleanUpForDevice()
6332 ALOGV("%s releasing patch %u", __FUNCTION__, patchDesc->getHandle()); in cleanUpForDevice()
6333 releaseAudioPatch(patchDesc->getHandle(), patchDesc->getUid()); in cleanUpForDevice()
6504 sp<AudioPatch> patchDesc; in installPatch() local
6506 caller, index, patchHandle, patch, delayMs, mUidCached, &patchDesc); in installPatch()
6508 ioDescriptor->setPatchHandle(patchDesc->getHandle()); in installPatch()
6521 sp<AudioPatch> patchDesc; in installPatch() local
6524 patchDesc = mAudioPatches.valueAt(index); in installPatch()
6525 afPatchHandle = patchDesc->getAfHandle(); in installPatch()
6533 patchDesc = new AudioPatch(patch, uid); in installPatch()
6534 addAudioPatch(patchDesc->getHandle(), patchDesc); in installPatch()
6536 patchDesc->mPatch = *patch; in installPatch()
6538 patchDesc->setAfHandle(afPatchHandle); in installPatch()
6540 *patchHandle = patchDesc->getHandle(); in installPatch()
6545 if (patchDescPtr) *patchDescPtr = patchDesc; in installPatch()