Automatic port switching not working
I noticed that automatic port switching on headphone insertion a la module_switch_on_port_available
does not work on my Pinephone Manjaro CE. Debug output indicates that the ports I want are chosen by get_available_{source,sink}_port
, but the subsequent pa_context_set_{source,sink}_port_by_index
calls do not have any effect according to Pavucontrol. I even modified the code to add a callback to print whether the set operation succeeded, and it reports success!
I am no Pulseaudio expert, so I'm wondering: does anyone have any ideas what might cause this operation to fail silently like this? Any other debugging steps I should try? Any help is much appreciated.
Edited by Matthew Schauer