Searched refs:newPatch (Results 1 – 2 of 2) sorted by relevance
175 Patch *newPatch = new Patch(patch); in createAudioPatch() local232 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()[all …]
2332 struct audio_patch newPatch = *patch; in createAudioPatch() local2333 srcDeviceDesc->toAudioPortConfig(&newPatch.sources[0], &patch->sources[0]); in createAudioPatch()2346 sinkDeviceDesc->toAudioPortConfig(&newPatch.sinks[i], &patch->sinks[i]); in createAudioPatch()2366 outputDesc->toAudioPortConfig(&newPatch.sources[1], &patch->sources[0]); in createAudioPatch()2367 newPatch.num_sources = 2; in createAudioPatch()2378 status_t status = mpClientInterface->createAudioPatch(&newPatch, in createAudioPatch()2386 &newPatch, uid); in createAudioPatch()2389 patchDesc->mPatch = newPatch; in createAudioPatch()