• Home
  • Raw
  • Download

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()
263 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) { in createAudioPatch()
264 config.sample_rate = patch->sinks[0].sample_rate; in createAudioPatch()
266 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) { in createAudioPatch()
267 config.channel_mask = patch->sinks[0].channel_mask; in createAudioPatch()
269 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) { in createAudioPatch()
270 config.format = patch->sinks[0].format; in createAudioPatch()
272 if (patch->sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS) { in createAudioPatch()
273 flags = patch->sinks[0].flags.output; in createAudioPatch()
276 patch->sinks[0].ext.device.hw_module, in createAudioPatch()
338 if (patch->sinks[0].type == AUDIO_PORT_TYPE_MIX) { in createAudioPatch()
340 patch->sinks[0].ext.mix.handle); in createAudioPatch()
342 thread = mAudioFlinger.checkMmapThread_l(patch->sinks[0].ext.mix.handle); in createAudioPatch()
345 __func__, patch->sinks[0].ext.mix.handle); in createAudioPatch()
357 if (iter.second.mAudioPatch.sinks[0].ext.mix.handle == thread->id()) { in createAudioPatch()
367 patch->sinks, in createAudioPatch()
384 if (patch->sinks[i].type != AUDIO_PORT_TYPE_DEVICE) { in createAudioPatch()
386 __func__, patch->sinks[i].type); in createAudioPatch()
391 if (patch->sinks[i].ext.device.hw_module != srcModule) { in createAudioPatch()
396 patch->sinks[i].ext.device.type); in createAudioPatch()
397 device->setAddress(patch->sinks[i].ext.device.address); in createAudioPatch()
398 device->applyAudioPortConfig(&patch->sinks[i]); in createAudioPatch()
476 PatchBuilder().addSource(mPlayback.thread()).addSink(mAudioPatch.sinks[0]).patch(), in createConnections()
514 audio_output_flags_t outputFlags = mAudioPatch.sinks[0].config_mask & AUDIO_PORT_CONFIG_FLAGS ? in createConnections()
515 mAudioPatch.sinks[0].flags.output : AUDIO_OUTPUT_FLAG_NONE; in createConnections()
686 mAudioPatch.num_sinks > 0 && mAudioPatch.sinks[0].type == AUDIO_PORT_TYPE_DEVICE; in dump()
694 hasSinkDevice ? mAudioPatch.sinks[0].ext.device.type : in dump()
733 if (patch.sinks[0].type == AUDIO_PORT_TYPE_MIX) { in releaseAudioPatch()
734 audio_io_handle_t ioHandle = patch.sinks[0].ext.mix.handle; in releaseAudioPatch()