On 29.12.2017 21:28, Georg Chini wrote:
On 29.12.2017 13:49, Tanu Kaskinen wrote:
On Fri, 2017-12-29 at 08:25 +0100, Georg Chini wrote:
On 28.12.2017 16:14, Tanu Kaskinen wrote:
This ensures that streams are moved away from unavailable outputs or
inputs. For example, sometimes HDMI is on a dedicated alsa card, and if
all HDMI outputs become unavailable, then the card profile will be set
to "off", and the streams will be moved somewhere else.
---
I am not sure if changing the profile is a good idea. There is no
code which restores the profile when the cable gets plugged again.
Can't you fire a hook when a sink or source is suspended due to
PA_SUSPEND_UNAVAILABLE and let module-rescue-stream handle
the case?
When the HDMI port becomes available, module-switch-on-port-available
will change the profile as appropriate.

OK, I would have expected that jack state changes are ignored
once the card is switched to "off" but I see this is not the case.


There's still the problem that once the HDMI sink is available again,
streams won't be moved there automatically (unless module-switch-on-
connect is loaded), but I think that's a lesser problem than keeping
streams connected to a silent sink.

Would not using a hook and let module-rescue-stream handle the
suspend/unsuspend solve that problem as well? You would then also
have to modify the default sink selection to take the suspend state
into account.
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to