Lines Matching refs:patchDesc

2201             sp<AudioPatch> patchDesc = mAudioPatches.valueAt(patch_index);  in closeAllInputs()  local
2202 … (void) /*status_t status*/ mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in closeAllInputs()
2874 sp<AudioPatch> patchDesc; in createAudioPatch() local
2889 patchDesc = mAudioPatches.valueAt(index); in createAudioPatch()
2891 mUidCached, patchDesc->mUid, uid); in createAudioPatch()
2892 if (patchDesc->mUid != mUidCached && uid != patchDesc->mUid) { in createAudioPatch()
2907 if (patchDesc != 0) { in createAudioPatch()
2908 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatch()
2910 patchDesc->mPatch.sources[0].id, patch->sources[0].id); in createAudioPatch()
2954 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatch()
2957 patchDesc = mAudioPatches.valueAt(index); in createAudioPatch()
2958 patchDesc->mUid = uid; in createAudioPatch()
2975 if (patchDesc != 0) { in createAudioPatch()
2976 if (patchDesc->mPatch.sinks[0].id != patch->sinks[0].id) { in createAudioPatch()
3006 if (patchDesc != 0 && patchDesc != mAudioPatches.valueAt(index)) { in createAudioPatch()
3009 patchDesc = mAudioPatches.valueAt(index); in createAudioPatch()
3010 patchDesc->mUid = uid; in createAudioPatch()
3018 if (patchDesc != 0) { in createAudioPatch()
3019 if (patchDesc->mPatch.sources[0].id != patch->sources[0].id) { in createAudioPatch()
3078 afPatchHandle = patchDesc->mAfPatchHandle; in createAudioPatch()
3088 patchDesc = new AudioPatch(&newPatch, uid); in createAudioPatch()
3089 addAudioPatch(patchDesc->mHandle, patchDesc); in createAudioPatch()
3091 patchDesc->mPatch = newPatch; in createAudioPatch()
3093 patchDesc->mAfPatchHandle = afPatchHandle; in createAudioPatch()
3094 *handle = patchDesc->mHandle; in createAudioPatch()
3121 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in releaseAudioPatch() local
3123 mUidCached, patchDesc->mUid, uid); in releaseAudioPatch()
3124 if (patchDesc->mUid != mUidCached && uid != patchDesc->mUid) { in releaseAudioPatch()
3128 struct audio_patch *patch = &patchDesc->mPatch; in releaseAudioPatch()
3129 patchDesc->mUid = mUidCached; in releaseAudioPatch()
3154 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in releaseAudioPatch()
3156 status, patchDesc->mAfPatchHandle); in releaseAudioPatch()
3157 removeAudioPatch(patchDesc->mHandle); in releaseAudioPatch()
3254 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in clearAudioPatches() local
3255 if (patchDesc->mUid == uid) { in clearAudioPatches()
3382 sp<AudioPatch> patchDesc = new AudioPatch(&dummyPatch, uid); in startAudioSource() local
3383 sourceDesc->mPatchDesc = patchDesc; in startAudioSource()
3823 sp<AudioPatch> patchDesc = mAudioPatches.valueFor(sourceDesc->mPatchDesc->mHandle); in disconnectAudioSource() local
3824 if (patchDesc == 0) { in disconnectAudioSource()
3838 mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in disconnectAudioSource()
4629 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in loadConfig() local
4630 … (void) /*status_t status*/ mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in loadConfig()
4655 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in loadConfig() local
4656 … (void) /*status_t status*/ mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in loadConfig()
4834 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in loadConfig() local
4835 if (patchDesc->mUid != mUidCached) { in loadConfig()
4909 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(index); in loadConfig() local
4910 if (patchDesc->mUid != mUidCached) { in loadConfig()
5263 sp< AudioPatch> patchDesc; in loadConfig() local
5266 patchDesc = mAudioPatches.valueAt(index); in loadConfig()
5267 afPatchHandle = patchDesc->mAfPatchHandle; in loadConfig()
5278 patchDesc = new AudioPatch(&patch, mUidCached); in loadConfig()
5279 addAudioPatch(patchDesc->mHandle, patchDesc); in loadConfig()
5281 patchDesc->mPatch = patch; in loadConfig()
5283 patchDesc->mAfPatchHandle = afPatchHandle; in loadConfig()
5285 *patchHandle = patchDesc->mHandle; in loadConfig()
5287 outputDesc->setPatchHandle(patchDesc->mHandle); in loadConfig()
5327 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in loadConfig() local
5328 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, delayMs); in loadConfig()
5331 removeAudioPatch(patchDesc->mHandle); in loadConfig()
5368 sp< AudioPatch> patchDesc; in loadConfig() local
5371 patchDesc = mAudioPatches.valueAt(index); in loadConfig()
5372 afPatchHandle = patchDesc->mAfPatchHandle; in loadConfig()
5382 patchDesc = new AudioPatch(&patch, mUidCached); in loadConfig()
5383 addAudioPatch(patchDesc->mHandle, patchDesc); in loadConfig()
5385 patchDesc->mPatch = patch; in loadConfig()
5387 patchDesc->mAfPatchHandle = afPatchHandle; in loadConfig()
5389 *patchHandle = patchDesc->mHandle; in loadConfig()
5391 inputDesc->setPatchHandle(patchDesc->mHandle); in loadConfig()
5413 sp< AudioPatch> patchDesc = mAudioPatches.valueAt(index); in loadConfig() local
5414 status_t status = mpClientInterface->releaseAudioPatch(patchDesc->mAfPatchHandle, 0); in loadConfig()
5417 removeAudioPatch(patchDesc->mHandle); in loadConfig()
5913 sp<AudioPatch> patchDesc = mAudioPatches.valueAt(i); in loadConfig() local
5915 for (size_t j = 0; j < patchDesc->mPatch.num_sources && !release; j++) { in loadConfig()
5916 const struct audio_port_config *source = &patchDesc->mPatch.sources[j]; in loadConfig()
5922 for (size_t j = 0; j < patchDesc->mPatch.num_sinks && !release; j++) { in loadConfig()
5923 const struct audio_port_config *sink = &patchDesc->mPatch.sinks[j]; in loadConfig()
5930 ALOGV("%s releasing patch %u", __FUNCTION__, patchDesc->mHandle); in loadConfig()
5931 releaseAudioPatch(patchDesc->mHandle, patchDesc->mUid); in loadConfig()