Summary: | media-sound/alsa-utils-1.0.10_rc3 /etc/init.d/alsasound does not load snd-powermac.ko | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | postmodern <brodigan> |
Component: | Current packages | Assignee: | Gentoo ALSA team [DISABLED] <alsa-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | yuri |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
postmodern
2005-12-27 03:17:52 UTC
From http://www.gentoo.org/proj/en/desktop/sound/alsa.xml: For some reasons, ALSA support on PowerPC platform is not the state of the art. The first main problem, alreay noted in alsa-utils section above, it's that the init script does not autorecognize the snd-powermac module that is used by almost all Apple machines, such as iBooks and PowerBooks. This means that it has to be aliased to snd-card-0 to be loaded correctly, as it hasn't a PCI alias (not being on PCI bus). I'm trying to working it around, but as I can't build alsa-driver on my iBook (having 2.6.15 kernel), I have to wait for that to be fixed, before. Can you load them manualy? If not make sure DMA Sound is disabled and you have the proper i2c (Keywest) options enabled. Also I do have it aliased in /etc/modules.d/alsa, if that counts. Update: Now running alsa-utils-1.0.10 with ALSA compiled into the kernel (gentoo-sources-2.6.15-r1) as modules. I can load snd-powermac manually and get working audio. The /etc/init.d/alsasound can still not detect the in kernel modules for some reason. modules-update complains about the aliases in /etc/modules.d/alsa # modules-update /etc/modules.d/alsa: line 16: alias: snd-card-0: not found /etc/modules.d/alsa: line 16: alias: snd-powermac: not found /etc/modules.d/alsa: line 21: alias: sound-slot-0: not found /etc/modules.d/alsa: line 21: alias: snd-card-0: not found /etc/modules.d/alsa: line 29: alias: /dev/mixer: not found /etc/modules.d/alsa: line 29: alias: snd-mixer-oss: not found /etc/modules.d/alsa: line 30: alias: /dev/dsp: not found /etc/modules.d/alsa: line 30: alias: snd-pcm-oss: not found /etc/modules.d/alsa: line 31: alias: /dev/midi: not found /etc/modules.d/alsa: line 31: alias: snd-seq-oss: not found Is this still an issue with latest media-sound/alsa-{driver,utils} ? yes (In reply to comment #5) > yes > I found a similar problem. I have: # cat /proc/asound/cards 0 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfe024000 irq 21 And this lines in modules.conf: # modprobe -c | grep snd-hda-intel alias snd-card-0 snd-hda-intel alias sound-slot-0 snd-hda-intel But this line in /etc/init.d/alsasound: local DRIVERS="$(modprobe -c | sed -n -e 's/^alias \(snd-card-[[:digit:]]+\) .*/\1/p')" gives empty string I think I found typo in this string, you need to add backslash before + sign, e.g. your line should look like local DRIVERS="$(modprobe -c | sed -n -e 's/^alias \(snd-card-[[:digit:]]\+\) .*/\1/p')" Now everything detects fine for me. Please check this and apply my patch if it's really a mistake in alsaconf init.d script. Thanks. Thank you to all commenters on this bug. The reported bug of an unescaped plus sign was fixed by robbat2 as part of a bigger commit: 29 Dec 2007; Robin H. Johnson <robbat2@gentoo.org> files/alsasound.confd, files/alsasound.initd: Add variables to block the automatic module load/unload, to help out cases where they do weird things, like my G5 with snd-aoa. |