Lines Matching refs:removedPatch
170 Patch *removedPatch = mPatches[index]; in createAudioPatch() local
174 if ((removedPatch->mRecordPatchHandle in createAudioPatch()
176 (removedPatch->mPlaybackPatchHandle != in createAudioPatch()
178 clearPatchConnections(removedPatch); in createAudioPatch()
185 if ((removedPatch->mAudioPatch.sources[0].type == AUDIO_PORT_TYPE_DEVICE) && in createAudioPatch()
187 (removedPatch->mAudioPatch.sources[0].ext.device.hw_module != in createAudioPatch()
189 hwModule = removedPatch->mAudioPatch.sources[0].ext.device.hw_module; in createAudioPatch()
191 ((removedPatch->mAudioPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE) && in createAudioPatch()
193 (removedPatch->mAudioPatch.sinks[0].ext.device.hw_module != in createAudioPatch()
200 hwModule = removedPatch->mAudioPatch.sinks[0].ext.device.hw_module; in createAudioPatch()
212 delete removedPatch; in createAudioPatch()
589 Patch *removedPatch = mPatches[index]; in releaseAudioPatch() local
592 struct audio_patch *patch = &removedPatch->mAudioPatch; in releaseAudioPatch()
604 if (removedPatch->mRecordPatchHandle != AUDIO_PATCH_HANDLE_NONE || in releaseAudioPatch()
605 removedPatch->mPlaybackPatchHandle != AUDIO_PATCH_HANDLE_NONE) { in releaseAudioPatch()
606 clearPatchConnections(removedPatch); in releaseAudioPatch()
619 status = thread->sendReleaseAudioPatchConfigEvent(removedPatch->mHalHandle); in releaseAudioPatch()
627 status = hwDevice->release_audio_patch(hwDevice, removedPatch->mHalHandle); in releaseAudioPatch()
646 status = thread->sendReleaseAudioPatchConfigEvent(removedPatch->mHalHandle); in releaseAudioPatch()
653 delete removedPatch; in releaseAudioPatch()