[pulseaudio-discuss] [PATCH v3 8/8] stream-restore: skip entries setting action from gnome-control-center

2019-08-17 Thread Hui Wang
When users select an output device from gnome-control-center UI, the sink of this output device will be set to the configured_default_sink and the default_sink, these actions are expected, but after these actions, the gnome-control-center will call extension_cb() to modify the entries in the

[pulseaudio-discuss] [PATCH v3 4/8] core: move sink-inputs conditionally when update default_sink

2019-08-17 Thread Hui Wang
When the default sink changes, the streams from the old default sink should be moved to the new default sink, unless the preferred_sink string is set to the old default sink and the active port of the old default sink is not unavailable Signed-off-by: Hui Wang --- src/modules/dbus/iface-core.c

[pulseaudio-discuss] [PATCH v3 7/8] sink: move the streams to the default_sink when the sink is unlinked

2019-08-17 Thread Hui Wang
When a sink is unlinked, all streams of this sink are moved to default_sink, this action is implemented in the core rather than modules now. Signed-off-by: Hui Wang --- src/modules/module-rescue-streams.c | 134 +--- src/modules/module-stream-restore.c | 50 ---

[pulseaudio-discuss] [PATCH v3 2/8] sink-input: add a new API pa_sink_input_set_preferred_sink

2019-08-17 Thread Hui Wang
If the sink here is NULL, that means users want to clear the preferred_sink and move the sink-input to the default_sink, otherwise set the preferred_sink to the sink->name and move the sink-input to the sink. After that fire the sink_input_change event. After adding this API, we can use this API

[pulseaudio-discuss] [PATCH v3 0/8] Change the bool sink_save to char *preferred_sink

2019-08-17 Thread Hui Wang
In the V3, I addressed all Tanu's and Georg's comments: 0002-xxx.patch: remove the pa_subscription_post() in the pa_sink_input_set_preferred_sink() 0003-xxx.patch: Add the check of sink_input->sink->card in the subscribe_callback() 0004-xxx.patch: Initialize the varible old_sink_is_unavailable

[pulseaudio-discuss] [PATCH v3 1/8] sink-input: change bool save_sink to char *preferred_sink

2019-08-17 Thread Hui Wang
The finial objective is to store the preferred sink name in the sink-input struct, and use module-stream-restore to save and restore it. This patch just replaces the save_sink with preferred_sink, and tries to keep the original logic. Signed-off-by: Hui Wang ---

[pulseaudio-discuss] [PATCH v3 6/8] device-port: moving streams due to changing the status of active_port

2019-08-17 Thread Hui Wang
When the active port of a sink becomes unavailable, all streams from that sink should be moved to the default sink. When the active port of a sink changes state from unavailable, all streams that have their preferred_sink set to this sink should be moved to this sink. Signed-off-by: Hui Wang

[pulseaudio-discuss] [PATCH v3 3/8] sink-input: clear the preferred_sink if it is default_sink

2019-08-17 Thread Hui Wang
When the user moves a stream to the current default sink, the preferred_sink should be set to NULL and module-stream-restore should clear the routing for that stream in the stream database. From that point on the stream will be always routed to the default sink. Signed-off-by: Hui Wang ---

[pulseaudio-discuss] [PATCH v3 5/8] sink: move streams to new appeared sinks if they prefer these sinks

2019-08-17 Thread Hui Wang
When a new sink appears, all streams that have their preferred_sink set to the new sink should be moved to the new sink. Signed-off-by: Hui Wang --- src/modules/module-stream-restore.c | 53 - src/pulsecore/core.c| 28 +++

Re: [pulseaudio-discuss] Broken ALSA Drivers

2019-08-17 Thread Михаил Новоселов
12.08.2019 12:32, Дмитрий Бацман пишет: Hello. For the alc 1150 sound card, there is also a problem with rattle sound. For example, in the Discord program. Distri Arch. I do not know where to get alsa-lib-devel, so I can not run alsa-time-test. In Arch Linux -devel parts are not in separate