I have an ABIT IS7 motherboard with built-in audio. Following the ALSA configuration guide (http://www.gentoo.org/doc/en/alsa-guide.xml) I was able to get it working when I first installed Gentoo about a month ago, which I tested out by playing a .wav file with /usr/bin/aplay. However, apparently something I have emerged since then (possibly newer versions of ALSA itself) have broken that functionality, so that I now only get this: > aplay /usr/kde/3.1/share/sounds/pop.wav Playing WAVE '/usr/kde/3.1/share/sounds/pop.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono aplay: pcm_rate.c:512: snd_pcm_rate_init: Assertion `0' failed. Aborted by signal Aborted... Re-emerging alsa-driver has not helped. Here are other details about my system: ---------------------------------------------------------- ALSA package versions: alsa-lib: 1.0.2 alsa-oss: 1.0.2 alsa-driver: 1.0.2 alsa-firmware: 1.0.2 alsa-tools: 1.0.2 alsa-utils: 1.0.2 alsaplayer: 0.99.76 ---------------------------------------------------------- > emerge info Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.4.23_pre8-gss) ================================================================= System uname: 2.4.23_pre8-gss i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://www.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa apache2 apm arts avi berkdb cdr crypt cups curl dga directfb dvd dvdr encode esd fbcon flash foomaticdb gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 imap imlib java jpeg kde ldap libg++ libwww mad maildir matrox mbox mcal mikmod mmx motif mozilla mpeg mysql nas ncurses nls odbc oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sasl scanner sdl slang snmp spell sse ssl svga tcltk tcpd tiff truetype usb x86 xml xml2 xmms xv zlib" ---------------------------------------------------------- Audio details from /proc/pci: Bus 0, device 31, function 5: Multimedia audio controller: Intel Corp. 82801EB AC'97 Audio Controller (rev 2). IRQ 17. I/O at 0xd800 [0xd8ff]. I/O at 0xdc00 [0xdc3f]. Non-prefetchable 32 bit memory at 0xf4001000 [0xf40011ff]. Non-prefetchable 32 bit memory at 0xf4002000 [0xf40020ff]. ---------------------------------------------------------- > cat /etc/modules.d/alsa alias char-major-116 snd alias char-major-14 soundcore alias snd-card-0 snd-intel8x0 # NOTE: uncommenting out the next 5 lines did not help #alias sound-service-0-0 snd-mixer-oss #alias sound-service-0-1 snd-seq-oss #alias sound-service-0-3 snd-pcm-oss #alias sound-service-0-8 snd-seq-oss #alias sound-service-0-12 snd-pcm-oss alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss options snd cards_limit=1 ---------------------------------------------------------- From /etc/devfsd.conf: LOOKUP snd MODLOAD ACTION snd LOOKUP dsp MODLOAD LOOKUP mixer MODLOAD LOOKUP midi MODLOAD REGISTER sound/.* PERMISSIONS root.audio 660 REGISTER snd/.* PERMISSIONS root.audio 660 ---------------------------------------------------------- > amixer Simple mixer control 'Master',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [on] Front Right: Playback 31 [100%] [on] Simple mixer control 'Master Mono',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 31 Mono: Playback 0 [0%] [off] Simple mixer control '3D Control - Center',0 Capabilities: volume volume-joined Playback channels: Mono Limits: 0 - 15 Mono: 0 [0%] Simple mixer control '3D Control - Depth',0 Capabilities: volume volume-joined Playback channels: Mono Limits: 0 - 15 Mono: 0 [0%] Simple mixer control '3D Control - Switch',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 31 [100%] [on] Front Right: Playback 31 [100%] [on] Simple mixer control 'Surround',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 0 [0%] [off] Front Right: Playback 0 [0%] [off] Simple mixer control 'Surround Down Mix',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'Center',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 31 Mono: Playback 31 [100%] [off] Simple mixer control 'Center/LFE Down Mix',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'LFE',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 31 Mono: Playback 0 [0%] [off] Simple mixer control 'Line',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 0 [0%] [off] Capture [off] Front Right: Playback 0 [0%] [off] Capture [off] Simple mixer control 'Line-In As Surround',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'CD',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 0 [0%] [off] Capture [off] Front Right: Playback 0 [0%] [off] Capture [off] Simple mixer control 'Mic',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 0 [0%] [off] Front Left: Capture [on] Front Right: Capture [on] Simple mixer control 'Mic As Center/LFE',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'Mic Boost (+20dB)',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'Mic Select',0 Capabilities: Mono: Simple mixer control 'Video',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 0 [0%] [off] Capture [off] Front Right: Playback 0 [0%] [off] Capture [off] Simple mixer control 'Phone',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Mono Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Playback 0 [0%] [off] Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined cswitch cswitch-joined Playback channels: Mono Capture channels: Mono Mono: Playback [off] Capture [off] Simple mixer control 'IEC958 Input Monitor',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'IEC958 Playback AC97-SPSA',0 Capabilities: volume volume-joined Playback channels: Mono Limits: 0 - 3 Mono: 0 [0%] Simple mixer control 'PC Speaker',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 15 Mono: Playback 0 [0%] [off] Simple mixer control 'Aux',0 Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 31 Front Left: Playback 0 [0%] [off] Capture [off] Front Right: Playback 0 [0%] [off] Capture [off] Simple mixer control 'Mono Output Select',0 Capabilities: Mono: Simple mixer control 'Capture',0 Capabilities: cvolume cswitch cswitch-joined Capture channels: Front Left - Front Right Limits: Capture 0 - 15 Front Left: Capture 0 [0%] [off] Front Right: Capture 0 [0%] [off] Simple mixer control 'Mix',0 Capabilities: cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Mix Mono',0 Capabilities: cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0 Capture channels: Front Left - Front Right Front Left: Capture [off] Front Right: Capture [off] Simple mixer control 'Analog to IEC958 Output',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'Duplicate Front',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'Exchange Center/LFE',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'External Amplifier Power Down',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Simple mixer control 'Swap Surround Slot',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off]
Can you please try alsa-drivers-1.2.0c which I just added... I really doubt that will fix it, but it's worth a shot... Assuming that fails, can you trt going down to alsa-drivers-0.9.8 to see if that older version works?
Here is a summary of what didn't solve the problem, and what finally did: --------------------------------------------------------------------------- 1) Installing alsa-driver-1.0.2c: no change 2) Downgrading to alsa-driver-0.9.8: no change 3) Downgrading to alsa-driver-0.9.8 and alsa-utils-0.9.8: no change 4) Uninstalling all alsa-related packages, removing /lib/modules/2.4.23_pre8-gss-r2/ completely, rebuilding and reinstalling the kernel and kernel modules, re-emerging all alsa-related packages: SUCCESS My current (working) set of packages is: alsa-lib: 1.0.2 alsa-oss: 1.0.2 alsa-xmms: 0.9.12 alsa-driver: 1.0.2c alsa-firmware: 1.0.2 alsa-tools: 1.0.2 alsa-utils: 1.0.2 alsamixergui: 0.9.0.1.2-r3 I guess something must have been left over (perhaps under the kernel modules directory) that was interfering with newer versions of ALSA? At any rate, I am a happy camper now.
Ok, I'm closing this since the problem seems to be fixed... if you figure out a way to reproduce it, please reopen this bug.
Please re-open for the proper fix. See this comment: http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg11834.html Please change the summary to: alsa-lib 1.0.2 original has pcm rate bug, new alsa-lib 1.0.2 released The original alsa-lib package had a bug in the code. If you emerge alsa-lib again you'll get a back md5sum from the original file. Re-emerging the alsa-lib package will fix any program that exhibits this, including artsd. artsd: pcm_rate.c:512: snd_pcm_rate_init: Assertion `0' failed. Please make a new alsa-lib release that just bumps the ebuild version so this hidden bug goes away AND make sure all the mirrors have the current version of alsa-lib .