Lines Matching refs:sources
158 // limit number of sources to 1 for now or 2 sources for special cross hw module case.
159 // only the audio policy manager can request a patch creation with 2 sources.
177 switch (patch->sources[0].type) {
179 audio_module_handle_t srcModule = patch->sources[0].ext.device.hw_module;
219 // special case num sources == 2 -=> reuse an exiting output mix to connect to the
222 if (patch->sources[1].type != AUDIO_PORT_TYPE_MIX ||
224 patch->sources[1].ext.mix.hw_module) {
231 audioflinger->checkPlaybackThread_l(patch->sources[1].ext.mix.handle);
258 audio_devices_t device = patch->sources[0].ext.device.type;
259 String8 address = String8(patch->sources[0].ext.device.address);
299 patch->sources,
314 if (strcmp(patch->sources[0].ext.device.address, "") != 0) {
316 patch->sources[0].ext.device.type,
317 patch->sources[0].ext.device.address);
324 (int)patch->sources[0].ext.device.type);
334 audio_module_handle_t srcModule = patch->sources[0].ext.mix.hw_module;
349 // limit to connections between sinks and sources on same HW module
357 audioflinger->checkPlaybackThread_l(patch->sources[0].ext.mix.handle);
360 patch->sources[0].ext.mix.handle);
412 subPatch.sources[0] = audioPatch->sources[0];
425 patch->mPlaybackThread->getAudioPortConfig(&subPatch.sources[0]);
536 // if num sources == 2 we are reusing an existing playback thread so we do not close it
569 switch (patch->sources[0].type) {
571 audio_module_handle_t srcModule = patch->sources[0].ext.device.hw_module;
618 audio_module_handle_t srcModule = patch->sources[0].ext.mix.hw_module;
626 audioflinger->checkPlaybackThread_l(patch->sources[0].ext.mix.handle);
629 patch->sources[0].ext.mix.handle);