Home
last modified time | relevance | path

Searched refs:newPatch (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/services/audioflinger/
DPatchPanel.cpp177 Patch *newPatch = new Patch(patch); in createAudioPatch() local
225 newPatch->mPlaybackThread = (MixerThread *)thread.get(); in createAudioPatch()
236 newPatch->mPlaybackThread = audioflinger->openOutput_l( in createAudioPatch()
244 newPatch->mPlaybackThread.get()); in createAudioPatch()
245 if (newPatch->mPlaybackThread == 0) { in createAudioPatch()
250 uint32_t channelCount = newPatch->mPlaybackThread->channelCount(); in createAudioPatch()
255 config.sample_rate = newPatch->mPlaybackThread->sampleRate(); in createAudioPatch()
257 config.format = newPatch->mPlaybackThread->format(); in createAudioPatch()
259 newPatch->mRecordThread = audioflinger->openInput_l(srcModule, in createAudioPatch()
267 newPatch->mRecordThread.get(), inChannelMask); in createAudioPatch()
[all …]
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp2335 struct audio_patch newPatch = *patch; in createAudioPatch() local
2336 srcDeviceDesc->toAudioPortConfig(&newPatch.sources[0], &patch->sources[0]); in createAudioPatch()
2349 sinkDeviceDesc->toAudioPortConfig(&newPatch.sinks[i], &patch->sinks[i]); in createAudioPatch()
2372 outputDesc->toAudioPortConfig(&newPatch.sources[1], &patch->sources[0]); in createAudioPatch()
2373 newPatch.sources[1].ext.mix.usecase.stream = AUDIO_STREAM_PATCH; in createAudioPatch()
2374 newPatch.num_sources = 2; in createAudioPatch()
2385 status_t status = mpClientInterface->createAudioPatch(&newPatch, in createAudioPatch()
2392 patchDesc = new AudioPatch(&newPatch, uid); in createAudioPatch()
2395 patchDesc->mPatch = newPatch; in createAudioPatch()
/frameworks/base/media/java/android/media/
DAudioManager.java3638 AudioPatch newPatch = i.next(); in updateAudioPortCache() local
3640 for (AudioPortConfig portCfg : newPatch.sources()) { in updateAudioPortCache()
3646 for (AudioPortConfig portCfg : newPatch.sinks()) { in updateAudioPortCache()