/third_party/pulseaudio/src/pulsecore/ |
D | core.c | 286 if (a->active_port && a->active_port->available == PA_AVAILABLE_NO in compare_sinks() 287 && (!b->active_port || b->active_port->available != PA_AVAILABLE_NO)) in compare_sinks() 289 if (b->active_port && b->active_port->available == PA_AVAILABLE_NO in compare_sinks() 290 && (!a->active_port || a->active_port->available != PA_AVAILABLE_NO)) in compare_sinks() 367 if (a->active_port && a->active_port->available == PA_AVAILABLE_NO in compare_sources() 368 && (!b->active_port || b->active_port->available != PA_AVAILABLE_NO)) in compare_sources() 370 if (b->active_port && b->active_port->available == PA_AVAILABLE_NO in compare_sources() 371 && (!a->active_port || a->active_port->available != PA_AVAILABLE_NO)) in compare_sources()
|
D | device-port.c | 131 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()
|
D | card.c | 301 if (sink->active_port) in update_port_preferred_profile() 302 …pa_device_port_set_preferred_profile(sink->active_port, profile_name_for_dir(c->active_profile, PA… in update_port_preferred_profile() 304 if (source->active_port) in update_port_preferred_profile() 305 …pa_device_port_set_preferred_profile(source->active_port, profile_name_for_dir(c->active_profile, … in update_port_preferred_profile()
|
D | source.c | 131 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 = pa_device_port_find_best(s->ports); in pa_source_new() 307 if (s->active_port) in pa_source_new() [all …]
|
D | cli-text.c | 291 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()
|
D | source.h | 119 pa_device_port *active_port; member 313 char *active_port; member
|
D | sink.c | 140 pa_xfree(data->active_port); in pa_sink_new_data_set_port() 141 data->active_port = pa_xstrdup(port); in pa_sink_new_data_set_port() 153 pa_xfree(data->active_port); in pa_sink_new_data_done() 244 if (!data->active_port) { in pa_sink_new() 307 s->active_port = NULL; in pa_sink_new() 310 if (data->active_port) in pa_sink_new() 311 if ((s->active_port = pa_hashmap_get(s->ports, data->active_port))) in pa_sink_new() 316 if (!s->active_port) in pa_sink_new() 317 s->active_port = pa_device_port_find_best(s->ports); in pa_sink_new() 319 if (s->active_port) in pa_sink_new() [all …]
|
D | sink.h | 118 pa_device_port *active_port; member 375 char *active_port; member
|
D | protocol-native.c | 3222 pa_tagstruct_puts(t, sink->active_port ? sink->active_port->name : NULL); in sink_fill_tagstruct() 3297 pa_tagstruct_puts(t, source->active_port ? source->active_port->name : NULL); in source_fill_tagstruct()
|
/third_party/pulseaudio/src/modules/ |
D | module-switch-on-port-available.c | 87 if (!sink->active_port) in profile_good_for_output() 90 …if ((sink->active_port->available != PA_AVAILABLE_NO) && (sink->active_port->priority >= port->pri… in profile_good_for_output() 119 if (!source->active_port) in profile_good_for_input() 122 …if ((source->active_port->available != PA_AVAILABLE_NO) && (source->active_port->priority >= port-… in profile_good_for_input() 225 …pp.is_port_active = (pp.sink && pp.sink->active_port == port) || (pp.source && pp.source->active_p… in find_port_pointers() 337 …if (port->direction == PA_DIRECTION_INPUT && pp.source && !pp.source->active_port->availability_gr… in port_available_hook_callback() 434 pa_device_port *p = new_sink_source(new_data->ports, new_data->active_port); in sink_new_hook_callback() 445 pa_device_port *p = new_sink_source(new_data->ports, new_data->active_port); in source_new_hook_callback() 499 pa_card_set_preferred_port(card, PA_DIRECTION_INPUT, source->active_port); in update_preferred_input_port() 535 pa_card_set_preferred_port(card, PA_DIRECTION_OUTPUT, sink->active_port); in update_preferred_output_port() [all …]
|
D | module-device-restore.c | 605 if (sink->active_port) in subscribe_callback() 606 port = sink->active_port->name; in subscribe_callback() 644 if (source->active_port) in subscribe_callback() 645 port = source->active_port->name; in subscribe_callback() 734 if (!new_data->active_port) { in sink_new_hook_callback() 761 if ((e = perportentry_read(u, name, new_data->active_port))) { in sink_fixate_hook_callback() 810 if ((e = perportentry_read(u, name, (sink->active_port ? sink->active_port->name : NULL)))) { in sink_port_hook_callback() 849 if ((e = perportentry_read(u, name, (sink->active_port ? sink->active_port->name : NULL)))) { in sink_put_hook_callback() 876 if (!new_data->active_port) { in source_new_hook_callback() 903 if ((e = perportentry_read(u, name, new_data->active_port))) { in source_fixate_hook_callback() [all …]
|
D | module-switch-on-connect.c | 113 … 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_N… in source_put_hook_callback()
|
D | module-card-restore.c | 453 update_profile_for_port(entry, card, sink->active_port); in card_profile_changed_callback() 455 update_profile_for_port(entry, card, source->active_port); in card_profile_changed_callback()
|
D | module-stream-restore.c | 1509 if (!s->active_port || s->active_port->available != PA_AVAILABLE_NO) { in sink_input_new_hook_callback() 1616 if (!s->active_port || s->active_port->available != PA_AVAILABLE_NO) { in source_output_new_hook_callback()
|
/third_party/pulseaudio/src/modules/dbus/ |
D | iface-device.c | 94 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 = pa_dbusiface_device_port_get_path(pa_hashmap_get(d->ports, d->active_port->name)); in handle_get_all() 921 if (active_port) in handle_get_all() [all …]
|
/third_party/pulseaudio/src/modules/alsa/ |
D | alsa-sink.c | 1347 sync_mixer(u, s->active_port); in sink_set_state_in_main_thread_cb() 1375 sync_mixer(u, s->active_port); in sink_set_state_in_io_thread_cb() 2158 if (u->sink->active_port && u->ucm_context) { in setup_mixer() 2159 if (pa_alsa_ucm_set_port(u->ucm_context, u->sink->active_port, true) < 0) in setup_mixer() 2166 if (u->sink->active_port) { in setup_mixer() 2173 data = PA_DEVICE_PORT_DATA(u->sink->active_port); in setup_mixer() 2180 data = PA_DEVICE_PORT_DATA(u->sink->active_port); in setup_mixer() 2738 if (u->sink->active_port && !u->ucm_context) { in pa_alsa_sink_new() 2741 port_data = PA_DEVICE_PORT_DATA(u->sink->active_port); in pa_alsa_sink_new() 2743 … if (port_data->suspend_when_unavailable && u->sink->active_port->available == PA_AVAILABLE_NO) in pa_alsa_sink_new()
|
D | alsa-source.c | 1218 sync_mixer(u, s->active_port); in source_set_state_in_main_thread_cb() 1246 sync_mixer(u, s->active_port); in source_set_state_in_io_thread_cb() 1864 if (u->source->active_port && u->ucm_context) { in setup_mixer() 1865 if (pa_alsa_ucm_set_port(u->ucm_context, u->source->active_port, false) < 0) in setup_mixer() 1872 if (u->source->active_port) { in setup_mixer() 1879 data = PA_DEVICE_PORT_DATA(u->source->active_port); in setup_mixer() 1886 data = PA_DEVICE_PORT_DATA(u->source->active_port); in setup_mixer()
|
D | module-alsa-card.c | 444 if (sink->active_port == tp->port) in report_jack_state()
|
/third_party/pulseaudio/src/pulse/ |
D | introspect.h | 283 …pa_sink_port_info* active_port; /**< Pointer to active port in the array, or NULL. \since 0.9.1… member 388 …pa_source_port_info* active_port; /**< Pointer to active port in the array, or NULL. \since 0.9.… member
|
D | introspect.c | 240 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/ |
D | pactl.c | 372 if (i->active_port) in get_sink_info_callback() 374 i->active_port->name); in get_sink_info_callback() 480 if (i->active_port) in get_source_info_callback() 482 i->active_port->name); in get_source_info_callback()
|
/third_party/pulseaudio/vala/ |
D | libpulse.vapi | 1307 public SinkPortInfo* active_port; 1341 public SourcePortInfo* active_port;
|