Lines Matching defs:source

102     pa_source *source;
124 PA_IDXSET_FOREACH(source, card->sources, idx) {
125 if (!source->active_port)
128 if ((source->active_port->available != PA_AVAILABLE_NO) && (source->active_port->priority >= port->priority))
196 pa_source *source;
226 PA_IDXSET_FOREACH(pp.source, card->sources, state)
227 if (port == pa_hashmap_get(pp.source->ports, port->name))
236 pp.is_port_active = (pp.sink && pp.sink->active_port == port) || (pp.source && pp.source->active_port == port);
253 /* Now that profile has changed, our sink and source pointers must be updated */
257 if (pp.source)
258 pa_source_set_port(pp.source, port->name, false);
328 * and they become unknown from off, it needs to check if their source is
329 * unlinked or not, if their source is unlinked, let switch_to_port()
331 * source will be created, otherwise the headset or microphone can't be used
332 * to record sound since there is no source for these 2 ports. This issue
345 /* Switch the headphone port, the input ports without source and the
346 * input ports their source->active_port is part of a group of ports.
348 if (port->direction == PA_DIRECTION_INPUT && pp.source && !pp.source->active_port->availability_group) {
464 pa_log_debug("Switching initial port for source '%s' to '%s'", new_data->name, p->name);
483 pa_source *source;
490 /* If there are more than one source, we don't know which of those the user
508 source = pa_idxset_first(card->sources, NULL);
510 /* We know the user wanted to activate this source. The user might not have
515 pa_card_set_preferred_port(card, PA_DIRECTION_INPUT, source->active_port);
575 static pa_hook_result_t source_port_changed_callback(pa_core *core, pa_source *source, void *userdata) {
576 if (!source->save_port)
579 pa_card_set_preferred_port(source->card, PA_DIRECTION_INPUT, source->active_port);