Lines Matching refs:sinks
179 (oldPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch()
180 (patch->sinks[0].type != AUDIO_PORT_TYPE_DEVICE || in createAudioPatch()
181 oldPatch.sinks[0].ext.device.hw_module != in createAudioPatch()
182 patch->sinks[0].ext.device.hw_module))) { in createAudioPatch()
188 hwModule = oldPatch.sinks[0].ext.device.hw_module; in createAudioPatch()
213 if ((patch->sinks[i].type == AUDIO_PORT_TYPE_MIX || in createAudioPatch()
214 (patch->sinks[i].type == AUDIO_PORT_TYPE_DEVICE && in createAudioPatch()
215 patch->sinks[i].ext.device.hw_module != srcModule)) && in createAudioPatch()
222 if (patch->sinks[i].type != patch->sinks[0].type) { in createAudioPatch()
235 ((patch->sinks[0].type == AUDIO_PORT_TYPE_DEVICE) && in createAudioPatch()
236 ((patch->sinks[0].ext.device.hw_module != srcModule) || in createAudioPatch()
238 audio_devices_t outputDevice = patch->sinks[0].ext.device.type; in createAudioPatch()
239 String8 outputDeviceAddress = String8(patch->sinks[0].ext.device.address); in createAudioPatch()
242 (patch->num_sinks != 0 && patch->sinks[0].ext.device.hw_module != in createAudioPatch()
264 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
265 config.sample_rate = patch->sinks[0].sample_rate; in createAudioPatch()
267 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
268 config.channel_mask = patch->sinks[0].channel_mask; in createAudioPatch()
270 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
271 config.format = patch->sinks[0].format; in createAudioPatch()
273 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS) { in createAudioPatch()
274 flags = patch->sinks[0].flags.output; in createAudioPatch()
277 patch->sinks[0].ext.device.hw_module, in createAudioPatch()
347 if (patch->sinks[0].type == AUDIO_PORT_TYPE_MIX) { in createAudioPatch()
349 patch->sinks[0].ext.mix.handle); in createAudioPatch()
351 thread = mAudioFlinger.checkMmapThread_l(patch->sinks[0].ext.mix.handle); in createAudioPatch()
354 __func__, patch->sinks[0].ext.mix.handle); in createAudioPatch()
366 if (iter.second.mAudioPatch.sinks[0].ext.mix.handle == thread->id()) { in createAudioPatch()
376 patch->sinks, in createAudioPatch()
393 if (patch->sinks[i].type != AUDIO_PORT_TYPE_DEVICE) { in createAudioPatch()
395 __func__, patch->sinks[i].type); in createAudioPatch()
400 if (patch->sinks[i].ext.device.hw_module != srcModule) { in createAudioPatch()
405 patch->sinks[i].ext.device.type); in createAudioPatch()
406 device->setAddress(patch->sinks[i].ext.device.address); in createAudioPatch()
407 device->applyAudioPortConfig(&patch->sinks[i]); in createAudioPatch()
485 PatchBuilder().addSource(mPlayback.thread()).addSink(mAudioPatch.sinks[0]).patch(), in createConnections()
523 audio_output_flags_t outputFlags = mAudioPatch.sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
524 mAudioPatch.sinks[0].flags.output : AUDIO_OUTPUT_FLAG_NONE; in createConnections()
711 mAudioPatch.num_sinks > 0 && mAudioPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE; in dump()
719 hasSinkDevice ? mAudioPatch.sinks[0].ext.device.type : in dump()
758 if (patch.sinks[0].type == AUDIO_PORT_TYPE_MIX) { in releaseAudioPatch()
759 audio_io_handle_t ioHandle = patch.sinks[0].ext.mix.handle; in releaseAudioPatch()