Easy solution on gentoo:
rc-update add alsasound default
OR (on other distributions)
add alsactl restore to /etc/conf.d/local.start
echo “alsactl restore” >> /etc/conf.d/local.start
add alsactl store to /etc/conf.d/local.stop
echo “alsactl store” >> /etc/conf.d/local.stop
add local (if it isn’t already) to default startscripts
rc-update add local default