Lines Matching refs:patchDesc
1534 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(patch_index); in closeAllInputs() local
1535 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in closeAllInputs()
2181 sp<AudioPatch> patchDesc; in createAudioPatch() local
2196 patchDesc = mAudioPatches.valueAt(index); in createAudioPatch()
2198 mUidCached, patchDesc->mUid, uid); in createAudioPatch()
2199 if (patchDesc->mUid != mUidCached && uid != patchDesc->mUid) { in createAudioPatch()
2214 if (patchDesc != 0) { in createAudioPatch()
2215 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatch()
2217 patchDesc->mPatch.sources[0].id, patch->sources[0].id); in createAudioPatch()
2258 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatch()
2261 patchDesc = mAudioPatches.valueAt(index); in createAudioPatch()
2262 patchDesc->mUid = uid; in createAudioPatch()
2279 if (patchDesc != 0) { in createAudioPatch()
2280 if (patchDesc->mPatch.sinks[0].id != patch->sinks[0].id) { in createAudioPatch()
2307 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatch()
2310 patchDesc = mAudioPatches.valueAt(index); in createAudioPatch()
2311 patchDesc->mUid = uid; in createAudioPatch()
2319 if (patchDesc != 0) { in createAudioPatch()
2320 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatch()
2375 afPatchHandle = patchDesc->mAfPatchHandle; in createAudioPatch()
2385 patchDesc = new AudioPatch((audio_patch_handle_t)nextUniqueId(), in createAudioPatch()
2387 addAudioPatch(patchDesc->mHandle, patchDesc); in createAudioPatch()
2389 patchDesc->mPatch = newPatch; in createAudioPatch()
2391 patchDesc->mAfPatchHandle = afPatchHandle; in createAudioPatch()
2392 *handle = patchDesc->mHandle; in createAudioPatch()
2419 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in releaseAudioPatch() local
2421 mUidCached, patchDesc->mUid, uid); in releaseAudioPatch()
2422 if (patchDesc->mUid != mUidCached && uid != patchDesc->mUid) { in releaseAudioPatch()
2426 struct audio_patch *patch = &patchDesc->mPatch; in releaseAudioPatch()
2427 patchDesc->mUid = mUidCached; in releaseAudioPatch()
2452 audio_patch_handle_t afPatchHandle = patchDesc->mAfPatchHandle; in releaseAudioPatch()
2453 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in releaseAudioPatch()
2455 status, patchDesc->mAfPatchHandle); in releaseAudioPatch()
2456 removeAudioPatch(patchDesc->mHandle); in releaseAudioPatch()
2565 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in clearAudioPatches() local
2566 if (patchDesc->mUid == uid) { in clearAudioPatches()
3080 const sp<AudioPatch> patchDesc = mAudioPatches.valueAt(patchIdx); in findIoHandlesByAddress() local
3081 const int numSinks = patchDesc->mPatch.num_sinks; in findIoHandlesByAddress()
3083 if (patchDesc->mPatch.sinks[j].type == AUDIO_PORT_TYPE_DEVICE) { in findIoHandlesByAddress()
3085 patchDesc->mPatch.sinks[j].ext.device.address; in findIoHandlesByAddress()
3089 desc->mIoHandle, patchDesc->mPatch.sinks[j].ext.device.address); in findIoHandlesByAddress()
3601 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeOutput() local
3602 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in closeOutput()
3630 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in closeInput() local
3631 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in closeInput()
3796 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewOutputDevice() local
3797 if (patchDesc->mUid != mUidCached) { in getNewOutputDevice()
3847 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in getNewInputDevice() local
3848 if (patchDesc->mUid != mUidCached) { in getNewInputDevice()
4383 sp< AudioPatch> patchDesc; in setOutputDevice() local
4386 patchDesc = mAudioPatches.valueAt(index); in setOutputDevice()
4387 afPatchHandle = patchDesc->mAfPatchHandle; in setOutputDevice()
4398 patchDesc = new AudioPatch((audio_patch_handle_t)nextUniqueId(), in setOutputDevice()
4400 addAudioPatch(patchDesc->mHandle, patchDesc); in setOutputDevice()
4402 patchDesc->mPatch = patch; in setOutputDevice()
4404 patchDesc->mAfPatchHandle = afPatchHandle; in setOutputDevice()
4405 patchDesc->mUid = mUidCached; in setOutputDevice()
4407 *patchHandle = patchDesc->mHandle; in setOutputDevice()
4409 outputDesc->mPatchHandle = patchDesc->mHandle; in setOutputDevice()
4450 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetOutputDevice() local
4451 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, delayMs); in resetOutputDevice()
4454 removeAudioPatch(patchDesc->mHandle); in resetOutputDevice()
4491 sp< AudioPatch> patchDesc; in setInputDevice() local
4494 patchDesc = mAudioPatches.valueAt(index); in setInputDevice()
4495 afPatchHandle = patchDesc->mAfPatchHandle; in setInputDevice()
4505 patchDesc = new AudioPatch((audio_patch_handle_t)nextUniqueId(), in setInputDevice()
4507 addAudioPatch(patchDesc->mHandle, patchDesc); in setInputDevice()
4509 patchDesc->mPatch = patch; in setInputDevice()
4511 patchDesc->mAfPatchHandle = afPatchHandle; in setInputDevice()
4512 patchDesc->mUid = mUidCached; in setInputDevice()
4514 *patchHandle = patchDesc->mHandle; in setInputDevice()
4516 inputDesc->mPatchHandle = patchDesc->mHandle; in setInputDevice()
4538 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in resetInputDevice() local
4539 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in resetInputDevice()
4542 removeAudioPatch(patchDesc->mHandle); in resetInputDevice()