If you're on the trisquel-mini version, then the problem is with openbox (the
window manager) and no workaround for a faulty alsa.
Try these commands in a terminal:
amixer -qc0 set Master toggle;amixer -qc0 set Headphone unmute;amixer -qc0
set Speaker unmute
If your sounds back on then open ~/.config/openbox/trisquel-mini.xml (the
filename might not be trisquel-mini.xml, but it is something like that
somewhere in the folder or sub folders).
(I don't know how to display xml code as plain text)
Search for "keyboard" with '' on its sides.
Just below it add the text in attachment.
Then restart openbox. EG: openbox --replace openbox.
I found that everytime i un/muted the master channel in alsa, some other
channel would un/mute.