Home
last modified time | relevance | path

Searched refs:active_port (Results 1 - 21 of 21) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
H A Dcore.c332 if (a->active_port && a->active_port->available == PA_AVAILABLE_NO in compare_sinks()
333 && (!b->active_port || b->active_port->available != PA_AVAILABLE_NO)) in compare_sinks()
335 if (b->active_port && b->active_port->available == PA_AVAILABLE_NO in compare_sinks()
336 && (!a->active_port || a->active_port->available != PA_AVAILABLE_NO)) in compare_sinks()
413 if (a->active_port && a->active_port in compare_sources()
[all...]
H A Ddevice-port.c131 if (sink && p == sink->active_port) { in pa_device_port_set_available()
132 if (sink->active_port->available == PA_AVAILABLE_NO) { in pa_device_port_set_available()
139 if (source && p == source->active_port) { in pa_device_port_set_available()
140 if (source->active_port->available == PA_AVAILABLE_NO) { in pa_device_port_set_available()
224 if (sink->active_port == p) { in pa_device_port_set_latency_offset()
237 if (source->active_port == p) { in pa_device_port_set_latency_offset()
H A Dcard.c324 if (sink->active_port) in update_port_preferred_profile()
325 pa_device_port_set_preferred_profile(sink->active_port, profile_name_for_dir(c->active_profile, PA_DIRECTION_OUTPUT)); in update_port_preferred_profile()
327 if (source->active_port) in update_port_preferred_profile()
328 pa_device_port_set_preferred_profile(source->active_port, profile_name_for_dir(c->active_profile, PA_DIRECTION_INPUT)); in update_port_preferred_profile()
H A Dsource.c131 pa_xfree(data->active_port); in pa_source_new_data_set_port()
132 data->active_port = pa_xstrdup(port); in pa_source_new_data_set_port()
144 pa_xfree(data->active_port); in pa_source_new_data_done()
231 if (!data->active_port) { in pa_source_new()
295 s->active_port = NULL; in pa_source_new()
298 if (data->active_port) in pa_source_new()
299 if ((s->active_port = pa_hashmap_get(s->ports, data->active_port))) in pa_source_new()
304 if (!s->active_port) in pa_source_new()
305 s->active_port in pa_source_new()
[all...]
H A Dcli-text.c291 if (sink->active_port) in pa_sink_list_to_string()
295 sink->active_port->name); in pa_sink_list_to_string()
402 if (source->active_port) in pa_source_list_to_string()
406 source->active_port->name); in pa_source_list_to_string()
H A Dsink.c141 pa_xfree(data->active_port); in pa_sink_new_data_set_port()
142 data->active_port = pa_xstrdup(port); in pa_sink_new_data_set_port()
154 pa_xfree(data->active_port); in pa_sink_new_data_done()
245 if (!data->active_port) { in pa_sink_new()
308 s->active_port = NULL; in pa_sink_new()
311 if (data->active_port) in pa_sink_new()
312 if ((s->active_port = pa_hashmap_get(s->ports, data->active_port))) in pa_sink_new()
317 if (!s->active_port) in pa_sink_new()
318 s->active_port in pa_sink_new()
[all...]
H A Dsource.h120 pa_device_port *active_port; member
314 char *active_port; member
485 /* When the default_source is changed or the active_port of a source is changed to
487 * default_source or the source with active_port equals PA_AVAILABLE_NO to the
H A Dsink.h119 pa_device_port *active_port; member
380 char *active_port; member
573 /* When the default_sink is changed or the active_port of a sink is changed to
575 * default_sink or the sink with active_port equals PA_AVAILABLE_NO to the
H A Dprotocol-native.c3088 pa_tagstruct_puts(t, sink->active_port ? sink->active_port->name : NULL); in sink_fill_tagstruct()
3163 pa_tagstruct_puts(t, source->active_port ? source->active_port->name : NULL); in source_fill_tagstruct()
/third_party/pulseaudio/src/modules/
H A Dmodule-switch-on-port-available.c90 if (!sink->active_port) in profile_good_for_output()
93 if ((sink->active_port->available != PA_AVAILABLE_NO) && (sink->active_port->priority >= port->priority)) in profile_good_for_output()
125 if (!source->active_port) in profile_good_for_input()
128 if ((source->active_port->available != PA_AVAILABLE_NO) && (source->active_port->priority >= port->priority)) in profile_good_for_input()
236 pp.is_port_active = (pp.sink && pp.sink->active_port == port) || (pp.source && pp.source->active_port == port); in find_port_pointers()
346 * input ports their source->active_port is part of a group of ports. in port_available_hook_callback()
348 if (port->direction == PA_DIRECTION_INPUT && pp.source && !pp.source->active_port in port_available_hook_callback()
[all...]
H A Dmodule-device-restore.c612 if (sink->active_port) in subscribe_callback()
613 port = sink->active_port->name; in subscribe_callback()
651 if (source->active_port) in subscribe_callback()
652 port = source->active_port->name; in subscribe_callback()
741 if (!new_data->active_port) { in sink_new_hook_callback()
768 if ((e = perportentry_read(u, name, new_data->active_port))) { in sink_fixate_hook_callback()
817 if ((e = perportentry_read(u, name, (sink->active_port ? sink->active_port->name : NULL)))) { in sink_port_hook_callback()
856 if ((e = perportentry_read(u, name, (sink->active_port ? sink->active_port in sink_put_hook_callback()
[all...]
H A Dmodule-switch-on-connect.c113 if (!c->default_sink->active_port || c->default_sink->active_port->available != PA_AVAILABLE_NO) { in sink_put_hook_callback()
173 if (!c->default_source->active_port || c->default_source->active_port->available != PA_AVAILABLE_NO) { in source_put_hook_callback()
H A Dmodule-card-restore.c474 update_profile_for_port(entry, card, sink->active_port); in card_profile_changed_callback()
476 update_profile_for_port(entry, card, source->active_port); in card_profile_changed_callback()
H A Dmodule-stream-restore.c1473 if (!s->active_port || s->active_port->available != PA_AVAILABLE_NO) { in sink_input_new_hook_callback()
1653 if (!s->active_port || s->active_port->available != PA_AVAILABLE_NO) { in source_output_new_hook_callback()
/third_party/pulseaudio/src/modules/dbus/
H A Diface-device.c94 pa_device_port *active_port; member
705 const char *active_port; in handle_get_active_port() local
711 if (!d->active_port) { in handle_get_active_port()
723 active_port = pa_dbusiface_device_port_get_path(pa_hashmap_get(d->ports, d->active_port->name)); in handle_get_active_port()
725 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, &active_port); in handle_get_active_port()
741 if (!d->active_port) { in handle_set_active_port()
825 const char *active_port = NULL; in handle_get_all() local
884 if (d->active_port) in handle_get_all()
885 active_port in handle_get_all()
[all...]
/third_party/pulseaudio/src/modules/alsa/
H A Dalsa-sink.c1309 * is given as an argument, because active_port may still point to the old
1385 sync_mixer(u, s->active_port); in sink_set_state_in_main_thread_cb()
1413 sync_mixer(u, s->active_port); in sink_set_state_in_io_thread_cb()
1544 /* If the set_volume() is called because of ucm active_port changing, the in sink_set_volume_cb()
2241 if (u->sink->active_port && u->ucm_context) { in setup_mixer()
2242 if (pa_alsa_ucm_set_port(u->ucm_context, u->sink->active_port, true) < 0) in setup_mixer()
2249 if (u->sink->active_port) { in setup_mixer()
2256 data = PA_DEVICE_PORT_DATA(u->sink->active_port); in setup_mixer()
2263 data = PA_DEVICE_PORT_DATA(u->sink->active_port); in setup_mixer()
2846 if (u->sink->active_port in pa_alsa_sink_new()
[all...]
H A Dalsa-source.c1183 * is given as an argument, because active_port may still point to the old
1259 sync_mixer(u, s->active_port); in source_set_state_in_main_thread_cb()
1287 sync_mixer(u, s->active_port); in source_set_state_in_io_thread_cb()
1418 /* If the set_volume() is called because of ucm active_port changing, the in source_set_volume_cb()
1945 if (u->source->active_port && u->ucm_context) { in setup_mixer()
1946 if (pa_alsa_ucm_set_port(u->ucm_context, u->source->active_port, false) < 0) in setup_mixer()
1953 if (u->source->active_port) { in setup_mixer()
1960 data = PA_DEVICE_PORT_DATA(u->source->active_port); in setup_mixer()
1967 data = PA_DEVICE_PORT_DATA(u->source->active_port); in setup_mixer()
H A Dmodule-alsa-card.c453 if (sink->active_port == tp->port) in report_jack_state()
/third_party/pulseaudio/src/pulse/
H A Dintrospect.h289 pa_sink_port_info* active_port; /**< Pointer to active port in the array, or NULL. \since 0.9.16 */ member
394 pa_source_port_info* active_port; /**< Pointer to active port in the array, or NULL. \since 0.9.16 */ member
H A Dintrospect.c240 i.active_port = i.ports[j]; in context_get_sink_info_callback()
519 i.active_port = i.ports[j]; in context_get_source_info_callback()
/third_party/pulseaudio/src/utils/
H A Dpactl.c661 i->active_port ? pa_json_encoder_add_member_string(encoder, "active_port", i->active_port->name): pa_json_encoder_add_member_null(encoder, "active_port"); in get_sink_info_callback()
721 if (i->active_port) in get_sink_info_callback()
723 i->active_port->name); in get_sink_info_callback()
846 i->active_port ? pa_json_encoder_add_member_string(encoder, "active_port", i->active_port->name) : pa_json_encoder_add_member_null(encoder, "active_port"); in get_source_info_callback()
[all...]

Completed in 43 milliseconds