Lines Matching refs:active_port
90 if (!sink->active_port)
93 if ((sink->active_port->available != PA_AVAILABLE_NO) && (sink->active_port->priority >= port->priority))
125 if (!source->active_port)
128 if ((source->active_port->available != PA_AVAILABLE_NO) && (source->active_port->priority >= port->priority))
236 pp.is_port_active = (pp.sink && pp.sink->active_port == port) || (pp.source && pp.source->active_port == port);
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) {
450 pa_device_port *p = new_sink_source(new_data->ports, new_data->active_port);
461 pa_device_port *p = new_sink_source(new_data->ports, new_data->active_port);
515 pa_card_set_preferred_port(card, PA_DIRECTION_INPUT, source->active_port);
551 pa_card_set_preferred_port(card, PA_DIRECTION_OUTPUT, sink->active_port);
579 pa_card_set_preferred_port(source->card, PA_DIRECTION_INPUT, source->active_port);
588 pa_card_set_preferred_port(sink->card, PA_DIRECTION_OUTPUT, sink->active_port);