[Pkg-alsa-devel] Bug#608388: Bug#608388: alsa-utils: restore fails after rename from "PC Speaker" to "Beep"
Kurt Roeckx
kurt at roeckx.be
Thu Dec 30 19:26:34 UTC 2010
On Thu, Dec 30, 2010 at 05:11:01PM +0100, Elimar Riesebieter wrote:
> Hi Kurt,
>
> now with attachment ;)
>
> * Kurt Roeckx [101230 14:48 +0100]:
> > Package: alsa-utils
> > Version: 1.0.23-3
> > Severity: important
> >
> > Hi,
> >
> > I think Linux 2.6.33 renamed "PC Speaker" to "Beep". alsactl
> > doesn't seem to be liking this much.
> >
> > During boot between kernels with different names I see:
> > Setting up ALSA...warning: 'alsactl restore' failed with error message 'Unknown hardware: "ICH" "SigmaTel STAC9700,83,84" "AC97a:83847600" "0x1043" "0x1493"
> > Hardware is initialized using a guess method
> > alsactl: set_control:1255: failed to obtain info for control #5 (No such file or directory)
> > alsactl: set_control:1255: failed to obtain info for control #6 (No such file or directory)'...done.
> [...]
> > So it seems that for .32 it sets up reasonable defaults, while for newer it just turns it off.
> > But I'm expecting my settings to be saved, even after a rename.
>
> Could you please apply attached patch to /etc/init.d/alsa-utils and
> test again?
That patch doesn't seem to have any effect.
> --- alsa-utils.orig 2010-12-30 16:58:39.905964578 +0100
> +++ alsa-utils 2010-12-30 17:03:59.972338203 +0100
> @@ -206,6 +206,10 @@
> # On MacBookPro5,3 and later models (See Bug#597791)
> unmute_and_set_level "Front Speaker" "80%"
>
> + # SigmaTel renames controls for kernels > 2.6.32 (See Bug#608388)
> + switch_control "Beep Playback Switch" on
> + unmute_and_set_level "Beep Playback Volume" "80%"
> +
> return 0
> }
Note that this has nothing to do with the SigmaTel modem. In my
case it's the snd_ac97_codec driver. But alot of the drivers (all?)
got changed.
It's changed in the following commit in the kernel:
commit d355c82a0191d5a3e971bd5af96cc81fe3ed25b9
Author: Jaroslav Kysela <perex at perex.cz>
Date: Tue Nov 3 15:47:25 2009 +0100
ALSA: rename "PC Speaker" and "PC Beep" controls to "Beep"
To avoid confusion in control names for the standard analog PC Beep generator
using a small Internal PC Speaker, rename all related "PC Speaker" and "PC
Beep" controls to "Beep" only. This name is more universal and can be also
used on more platforms without confusion.
Introduce also "Internal Speaker" in ControlNames.txt for systems with
full-featured build-in internal speaker.
Signed-off-by: Jaroslav Kysela <perex at perex.cz>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
More information about the Pkg-alsa-devel
mailing list