Lines Matching refs:newPatch
175 Patch *newPatch = new Patch(patch); in createAudioPatch() local
232 newPatch->mPlaybackThread = (MixerThread *)thread.get(); in createAudioPatch()
243 newPatch->mPlaybackThread = audioflinger->openOutput_l( in createAudioPatch()
251 newPatch->mPlaybackThread.get()); in createAudioPatch()
252 if (newPatch->mPlaybackThread == 0) { in createAudioPatch()
257 uint32_t channelCount = newPatch->mPlaybackThread->channelCount(); in createAudioPatch()
262 config.sample_rate = newPatch->mPlaybackThread->sampleRate(); in createAudioPatch()
264 config.format = newPatch->mPlaybackThread->format(); in createAudioPatch()
266 newPatch->mRecordThread = audioflinger->openInput_l(srcModule, in createAudioPatch()
274 newPatch->mRecordThread.get(), inChannelMask); in createAudioPatch()
275 if (newPatch->mRecordThread == 0) { in createAudioPatch()
279 status = createPatchConnections(newPatch, patch); in createAudioPatch()
395 newPatch->mHandle = *handle; in createAudioPatch()
396 newPatch->mHalHandle = halHandle; in createAudioPatch()
397 mPatches.add(newPatch); in createAudioPatch()
400 clearPatchConnections(newPatch); in createAudioPatch()
401 delete newPatch; in createAudioPatch()