I have a usb dac and I would like to use ALSA instead of Pulseaudio.
First, I stopped the pulseaudio permanently:
echo autospawn=no > ~/.pulse/client.conf pulseaudio -k
Alsamixer gets cannot open mixer: No such file or directory error. Creating basic .asoundrc file with my default "hardware output" device solved this issue. Unmuting IEC958 (SPDIF), sound is working properly now.
But there is big issue for me. Output is muted after logout (rebooting does not cause this problem). Login back doesn't restoring settings from alsamixer asound.state file - IEC958 (SPDIF) is muted...
sudo alsactl restore restore this settings properly. Adding user to audio group did not help.
Should I prepare
alsactl restore script for logging or something other I missing?