Lines Matching refs:sources

150                 if (oldPatch.sources[0].type == AUDIO_PORT_TYPE_DEVICE &&  in createAudioPatch()
151 (patch->sources[0].type != AUDIO_PORT_TYPE_DEVICE || in createAudioPatch()
152 oldPatch.sources[0].ext.device.hw_module != in createAudioPatch()
153 patch->sources[0].ext.device.hw_module)) { in createAudioPatch()
154 hwModule = oldPatch.sources[0].ext.device.hw_module; in createAudioPatch()
179 switch (patch->sources[0].type) { in createAudioPatch()
181 audio_module_handle_t srcModule = patch->sources[0].ext.device.hw_module; in createAudioPatch()
217 if (patch->sources[1].type != AUDIO_PORT_TYPE_MIX || in createAudioPatch()
219 patch->sources[1].ext.mix.hw_module)) { in createAudioPatch()
226 mAudioFlinger.checkPlaybackThread_l(patch->sources[1].ext.mix.handle); in createAudioPatch()
265 audio_devices_t device = patch->sources[0].ext.device.type; in createAudioPatch()
266 String8 address = String8(patch->sources[0].ext.device.address); in createAudioPatch()
270 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
271 config.sample_rate = patch->sources[0].sample_rate; in createAudioPatch()
275 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
276 config.channel_mask = patch->sources[0].channel_mask; in createAudioPatch()
281 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
282 config.format = patch->sources[0].format; in createAudioPatch()
287 patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createAudioPatch()
288 patch->sources[0].flags.input : AUDIO_INPUT_FLAG_NONE; in createAudioPatch()
341 patch->sources, in createAudioPatch()
350 audio_module_handle_t srcModule = patch->sources[0].ext.mix.hw_module; in createAudioPatch()
378 mAudioFlinger.checkPlaybackThread_l(patch->sources[0].ext.mix.handle); in createAudioPatch()
380 thread = mAudioFlinger.checkMmapThread_l(patch->sources[0].ext.mix.handle); in createAudioPatch()
383 __func__, patch->sources[0].ext.mix.handle); in createAudioPatch()
399 if (iter.second.mAudioPatch.sources[0].ext.mix.handle == thread->id()) { in createAudioPatch()
435 PatchBuilder().addSource(mAudioPatch.sources[0]). in createConnections()
469 audio_input_flags_t inputFlags = mAudioPatch.sources[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
470 mAudioPatch.sources[0].flags.input : AUDIO_INPUT_FLAG_NONE; in createConnections()
486 if (mAudioPatch.num_sources == 2 && mAudioPatch.sources[1].type == AUDIO_PORT_TYPE_MIX) { in createConnections()
488 streamType = mAudioPatch.sources[1].ext.mix.usecase.stream; in createConnections()
657 mAudioPatch.num_sources > 0 && mAudioPatch.sources[0].type == AUDIO_PORT_TYPE_DEVICE; in dump()
664 (hasSourceDevice ? mAudioPatch.sources[0].ext.device.type : 0)); in dump()
687 const struct audio_port_config &src = patch.sources[0]; in releaseAudioPatch()