[alsa-devel] Since kernel-2.6.32, alsactl fails to restore defaults
perex at perex.cz
Sun Feb 14 19:20:15 CET 2010
On Sun, 14 Feb 2010, Pacho Ramos wrote:
> I originally reported this issue downstream to:
> Later to kernel:
> And they told me that this is an alsactl issue, since it's not exiting
> with 0 when it notices that the device doesn't need special quirks:
> # alsactl -f /var/lib/alsa/asound.state restore
> Unknown hardware: "VIA8237" "Realtek ALC658D" "AC97a:414c4781" "0x147b"
> Hardware is initialized using a guess method
> # echo $?
I agree, this value is bogus. I just fixed the code to return exit code
99 as described in init/00main:
> What could I do? Thanks for helping me, if you need more information,
> simply ask me for it :-)
There are two ways to fix this issue for your distro:
1) modify the script which calls alsactl and add a check for code 99
(it may ignore this exit code) - assuming that patch above is applied
2) change init/00main - EXIT="99" line to EXIT="0"
But from your gentoo bug, I guess that your system don't save the last
soundcard state to /var/lib/alsa/asound.state correctly - it's looks like
a bug in the init scripts for your distro.
Or it might be totaly different issue - could you send me your
/var/lib/alsa/asound.state file and file test.state generated using
'alsactl -f test.state store' command?
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
More information about the Alsa-devel