My ibook G3 equiped with the powermac audio chipset which uses the ALSA snd-powermac.ko module seems not to load with /etc/init.d/alsasound. When I hand load it (or put it in /etc/modules.autoload.d/kernel-2.6) then start /etc/init.d/alsasound everything works fine and I can play audio files. I installed the ALSA modules using ALSA_CARDS="powermac" in /etc/make.conf and emerged alsa-driver. Gentoo Base System version 1.6.13 Portage 2.0.53 (default-linux/ppc/2005.1/ppc, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 ppc) ================================================================= System uname: 2.6.14-gentoo-r5 ppc 750FX dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-mcpu=750 -O3 -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=750 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X aac alsa audiofile berkdb bitmap-fonts bzip2 cdr crypt curl eds emboss ethereal exif expat fam flac fortran gif glut gnome gpm gstreamer gtk gtk2 idn imlib ipv6 jpeg lcms libwww mng motif mp3 mpeg ncurses network nls ogg oggvorbis opengl pam pcre pdflib perl png python quicktime readline samba softmmu speex spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode vorbis xml2 xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
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.