Audio setup (ALSA/Pulseaudio) not working properly yet
Ideally, the Pyra should provide multiple Pulseaudio-Outputs: Bluetooth, Speaker, Headset, HDMI. All depending on whether there is something plugged in at the moment or not.
When connecting a device (e.g. plugging in headphones), the default output should automatically switch to that port for all existing streams. Rerouting them manually should be possible though. The Headset port has a switch so it recognizes if something is plugged in or not.
As far as I know, PulseAudio should be able to do this automatically. At least on my PC whenever I plugin a USB sound card, it automatically gives that a higher priority than the internal one.
Right now, PulseAudio only seems to list Stereo Duplex Output for me which seems to drive the vibra motor.
I guess we should work in multiple steps here:
- Setup ALSA so we have these different streams with proper naming.
- Setup PulseAudio to use these streams incl. naming.
- Setup PulseAudio to be aware of the Headset switch.
Is there anyone with good knowledge of ALSA and/or PulseAudio here?