device-port: moving streams since active_port on source changes status

When the active port of a source becomes unavailable, all streams from
that source should be moved to the default source.

When the active port of a source changes state from unavailable, all
streams that have their preferred_source set to this source should be
moved to this source.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
This commit is contained in:
Hui Wang 2019-12-07 12:05:51 +08:00 committed by Tanu Kaskinen
parent 1cea7ab38d
commit 976a366c9f
2 changed files with 25 additions and 0 deletions

View file

@ -89,4 +89,6 @@ pa_device_port *pa_device_port_find_best(pa_hashmap *ports);
pa_sink *pa_device_port_get_sink(pa_device_port *p);
pa_source *pa_device_port_get_source(pa_device_port *p);
#endif