Lines Matching defs:sink
28 #include <pulsecore/sink-input.h>
43 PA_MODULE_DESCRIPTION("When a sink/source is added, switch to it or conditionally switch to it");
65 static pa_hook_result_t sink_put_hook_callback(pa_core *c, pa_sink *sink, void* userdata) {
70 pa_assert(sink);
77 pa_log_debug("Trying to switch to new sink %s", sink->name);
80 s = pa_proplist_gets(sink->proplist, PA_PROP_DEVICE_STRING);
82 s = pa_proplist_gets(sink->proplist, PA_PROP_DEVICE_BUS);
84 pa_log_debug("Refusing to switch to sink on %s bus", s);
90 if (u->blacklist && (pa_match(u->blacklist, sink->name) > 0)) {
91 pa_log_info("Refusing to switch to blacklisted sink %s", sink->name);
96 if (u->ignore_virtual && !(sink->flags & PA_SINK_HARDWARE)) {
97 pa_log_debug("Refusing to switch to virtual sink");
101 /* No default sink, nothing to move away, just set the new default */
103 pa_core_set_configured_default_sink(c, sink->name);
107 if (c->default_sink == sink) {
108 pa_log_debug("%s already is the default sink", sink->name);
114 pa_log_debug("Current default sink is available and module argument only_from_unavailable was set");
118 /* Actually do the switch to the new sink */
119 pa_core_set_configured_default_sink(c, sink->name);