Lines Matching defs:dest

150 static int check_passthrough_connection(bool passthrough, pa_sink *dest) {
151 if (pa_sink_is_passthrough(dest)) {
157 if (pa_idxset_size(dest->inputs) > 0 && passthrough) {
1820 bool pa_sink_input_may_move_to(pa_sink_input *i, pa_sink *dest) {
1824 pa_sink_assert_ref(dest);
1826 if (dest == i->sink)
1829 if (dest->unlink_requested)
1836 if (find_filter_sink_input(i, dest)) {
1837 pa_log_debug("Can't connect input to %s, as that would create a cycle.", dest->name);
1851 if (pa_idxset_size(dest->inputs) >= PA_MAX_INPUTS_PER_SINK) {
1856 if (check_passthrough_connection(pa_sink_input_is_passthrough(i), dest) < 0)
1860 if (!i->may_move_to(i, dest))
1932 static void update_volume_due_to_moving(pa_sink_input *i, pa_sink *dest) {
1936 pa_assert(dest);
2015 update_volume_due_to_moving(origin_sink_input, dest);
2049 /* If i->sink == dest, then recursion has finished, and we can finally call
2051 if ((i->sink == dest) && pa_sink_flat_volume_enabled(i->sink))
2155 int pa_sink_input_finish_move(pa_sink_input *i, pa_sink *dest, bool save) {
2163 pa_sink_assert_ref(dest);
2165 if (!pa_sink_input_may_move_to(i, dest))
2168 if (pa_sink_input_is_passthrough(i) && !pa_sink_check_format(dest, i->format)) {
2173 pa_proplist_sets(p, "device", dest->name);
2180 !pa_sample_spec_equal(&i->sample_spec, &dest->sample_spec)) {
2181 /* try to change dest sink format and rate if possible without glitches.
2186 pa_sink_reconfigure(dest, &i->sample_spec, pa_sink_input_is_passthrough(i));
2190 i->moving(i, dest);
2192 i->sink = dest;
2196 if (dest == dest->core->default_sink)
2199 set_preferred_sink(i, dest->name);
2202 pa_idxset_put(dest->inputs, pa_sink_input_ref(i), NULL);
2216 pa_sink_update_status(dest);
2218 update_volume_due_to_moving(i, dest);
2228 pa_log_debug("Successfully moved sink input %i to %s.", i->index, dest->name);
2262 int pa_sink_input_move_to(pa_sink_input *i, pa_sink *dest, bool save) {
2269 pa_sink_assert_ref(dest);
2271 if (dest == i->sink)
2274 if (!pa_sink_input_may_move_to(i, dest))
2284 if ((r = pa_sink_input_finish_move(i, dest, save)) < 0) {