Virtual Surround add-on resets audio output back to hardware default after reboot

Device: Amlogic S905X4 running CoreELEC 22
Add-on: service.virtualsurround with custom virtual ALSA device VirtualSurround_TV

The add-on can create the virtual audio device correctly, and playback works fine if I pick it manually in Kodi audio settings.

But every time I restart the add-on or reboot the box, the audio output gets reset to the hardware ALSA default device automatically. Logs show the add-on runs a built-in function to save the default hardware device and overwrites my custom setting.

I have tried disabling Kodi auto audio switch and using advancedsettings.xml to lock the virtual device, but the add-on’s internal save logic still overrides my config.

Could we add an option to stop this forced default device overwriting, or let the add-on set its own virtual device as the persistent default automatically?
This would make the virtual surround feature usable across reboots without manual reconfiguration each time.

CAESinkALSA::Initialize - Attempting to open device "VirtualSurround_TV"
CAESinkALSA - Unable to open device "VirtualSurround_TV" for playback
CAESinkALSA::Initialize - failed to initialize device "VirtualSurround_TV"
CAESinkALSA::Initialize - Attempting to open device "@"
CAESinkALSA::Initialize - Opened device "sysdefault"
SETTINGS: _save_default_audio_device # Saved current audio device: ALSA:default

What is your default audio device in bluetooth settings?

This was the base default device for me.

I’m working on a virtual surround sound plugin that relies on alsa-lib. I’m currently using version 1.2.11, and upgrading to 1.2.16 should fix my issue.

Hi, is service.virtualsurround publicly available? I couldn’t find a repository or ZIP. Is there a beta version I can test?

@blueyeti2000