Lines Matching refs:newPatch
184 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()
265 config.sample_rate = newPatch->mPlaybackThread->sampleRate(); in createAudioPatch()
271 audio_channel_in_mask_from_count(newPatch->mPlaybackThread->channelCount()); in createAudioPatch()
276 config.format = newPatch->mPlaybackThread->format(); in createAudioPatch()
279 newPatch->mRecordThread = audioflinger->openInput_l(srcModule, in createAudioPatch()
287 newPatch->mRecordThread.get(), config.channel_mask); in createAudioPatch()
288 if (newPatch->mRecordThread == 0) { in createAudioPatch()
292 status = createPatchConnections(newPatch, patch); in createAudioPatch()
372 newPatch->mHandle = *handle; in createAudioPatch()
373 newPatch->mHalHandle = halHandle; in createAudioPatch()
374 mPatches.add(newPatch); in createAudioPatch()
377 clearPatchConnections(newPatch); in createAudioPatch()
378 delete newPatch; in createAudioPatch()