Home | History | Annotate | Download | only in audioflinger

Lines Matching refs:sources

159     // limit number of sources to 1 for now or 2 sources for special cross hw module case.
160 // only the audio policy manager can request a patch creation with 2 sources.
185 if ((removedPatch->mAudioPatch.sources[0].type == AUDIO_PORT_TYPE_DEVICE) &&
186 ((patch->sources[0].type != AUDIO_PORT_TYPE_DEVICE) ||
187 (removedPatch->mAudioPatch.sources[0].ext.device.hw_module !=
188 patch->sources[0].ext.device.hw_module))) {
189 hwModule = removedPatch->mAudioPatch.sources[0].ext.device.hw_module;
220 switch (patch->sources[0].type) {
222 audio_module_handle_t srcModule = patch->sources[0].ext.device.hw_module;
247 // - special patch request with 2 sources (reuse one existing output mix) OR
256 if (patch->sources[1].type != AUDIO_PORT_TYPE_MIX ||
258 patch->sources[1].ext.mix.hw_module)) {
265 audioflinger->checkPlaybackThread_l(patch->sources[1].ext.mix.handle);
292 audio_devices_t device = patch->sources[0].ext.device.type;
293 String8 address = String8(patch->sources[0].ext.device.address);
297 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_SAMPLE_RATE) {
298 config.sample_rate = patch->sources[0].sample_rate;
302 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_CHANNEL_MASK) {
303 config.channel_mask = patch->sources[0].channel_mask;
308 if (patch->sources[0].config_mask & AUDIO_PORT_CONFIG_FORMAT) {
309 config.format = patch->sources[0].format;
349 patch->sources,
358 audio_module_handle_t srcModule = patch->sources[0].ext.mix.hw_module;
374 // limit to connections between sinks and sources on same HW module
382 audioflinger->checkPlaybackThread_l(patch->sources[0].ext.mix.handle);
384 thread = audioflinger->checkMmapThread_l(patch->sources[0].ext.mix.handle);
387 patch->sources[0].ext.mix.handle);
426 subPatch.sources[0] = audioPatch->sources[0];
440 patch->mPlaybackThread->getAudioPortConfig(&subPatch.sources[0]);
492 audioPatch->sources[1].ext.mix.usecase.stream,
554 // if num sources == 2 we are reusing an existing playback thread so we do not close it
599 switch (patch->sources[0].type) {
601 audio_module_handle_t srcModule = patch->sources[0].ext.device.hw_module;
635 audio_module_handle_t srcModule = patch->sources[0].ext.mix.hw_module;
643 audioflinger->checkPlaybackThread_l(patch->sources[0].ext.mix.handle);
645 thread = audioflinger->checkMmapThread_l(patch->sources[0].ext.mix.handle);
648 patch->sources[0].ext.mix.handle);