Lines Matching defs:sink
67 pa_sink *sink;
89 PA_IDXSET_FOREACH(sink, card->sinks, idx) {
90 if (!sink->active_port)
93 if ((sink->active_port->available != PA_AVAILABLE_NO) && (sink->active_port->priority >= port->priority))
195 pa_sink *sink;
220 PA_IDXSET_FOREACH(pp.sink, card->sinks, state)
221 if (port == pa_hashmap_get(pp.sink->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 */
259 if (pp.sink)
260 pa_sink_set_port(pp.sink, port->name, false);
453 pa_log_debug("Switching initial port for sink '%s' to '%s'", new_data->name, p->name);
519 pa_sink *sink;
526 /* If there are more than one sink, we don't know which of those the user
544 sink = pa_idxset_first(card->sinks, NULL);
546 /* We know the user wanted to activate this sink. The user might not have
551 pa_card_set_preferred_port(card, PA_DIRECTION_OUTPUT, sink->active_port);
584 static pa_hook_result_t sink_port_changed_callback(pa_core *core, pa_sink *sink, void *userdata) {
585 if (!sink->save_port)
588 pa_card_set_preferred_port(sink->card, PA_DIRECTION_OUTPUT, sink->active_port);