I have an amd64 machine, and I think that is related to this problem. Today I had a few ALSA-related packages to update via emerge. After emerging, I don't have sound at all. Here is a hopefully helpful error from "alsaplay" when I try to play a regular .wav file: -- #alsaplayer -o alsa -d plug:dmix ohyeah.wav ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:3948:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM dmix snd_pcm_open: No such file or directory (plug:dmix) Failed to initialize plugin! Failed to register plugin: /usr/lib64/alsaplayer/output/libalsa_out.so Failed to load output plugin "alsa". Trying defaults. ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:3948:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM dmix snd_pcm_open: No such file or directory (plug:dmix) Failed to initialize plugin! /usr/lib64/alsaplayer/output/libalsa_out.so failed to load error opening /dev/dsp Failed to initialize plugin! /usr/lib64/alsaplayer/output/liboss_out.so failed to load audio_alsa: no cards found! audio_alsa: no cards found! Failed to initialize plugin! /usr/lib64/alsaplayer/output/libesound_out.so failed to load NOTE: THIS IS THE NULL PLUGIN. YOU WILL NOT HEAR SOUND!! -- Similarly, when I try Volume Control from GNOME's menu i get this: "No volume control elements and/or devices found." What else... The modules do seem to be loaded properly via /etc/init.d/alsasound. Installed versions: Alsa-lib 1.0.9 alsa-oss 1.0.8-r1 gst-plugins-alsa 0.8.10 alsa-headers 1.0.9b alsaplayer 0.99.76 Any other questions I can answer here. I made no changes to .soundrc or anything like that. When I ran etc-update after updating I replaced /etc/init.d/alsasound and another file, I forget which, that seemed to have a very minor "diff" with what I already had. Thx, W Reproducible: Always Steps to Reproduce: # emerge info Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.12 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 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.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -O2 -mtune=k8 -ftracer -fprefetch-loop-arrays -funroll-loops" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -pipe -O2 -mtune=k8 -ftracer -fprefetch-loop-arrays -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://mirror.espri.arizona.edu/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X a52 aac aim alsa amd64 avi berkdb bitmap-fonts cddb cdr crypt cups curl dvd dvdr eds encode esd faad fam ffmpeg flac foomatic foomaticdb fortran gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imlib ipv6 java jpeg junit libgda libsndfile libwww lzw lzw-tiff mad matroska mozilla mp3 mpeg ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis openal opengl oscar oss pam pdflib perl png ppds python qt quicktime readline sdl spell ssl tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts usb userlocales vorbis wxwindows xine xinerama xml2 xpm xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
what version of the driver are you using? Try using alsa-driver-1.0.9b. Can you give me an strace, so I can see what file/dir it's trying to open? Also, if you like stability, you might not want to use -ftracer until you start using gcc4 (which in itself is unstable ATM)...
As far as -ftracer goes, I haven't had any apps crash or anything, but I can get rid of it. As far as ALSA goes, the strange thing is that certain apps (gaim, skype, ut2004) have working sound. Others (mplayer, rhythmbox, alsamixer) do not. I think this is because OSS is working but ALSA isn't, or something. I'm not an expert on this. I am already using alsa-driver 1.0.9b. What's the easiest way to do this stack trace you request? Nothing is crashing. I just get "no stream" or the errors listed above. rhythmbox says "ALSA device "default" had an error." mplayer says "Could not open/initialize audio device-> No Sound" (strangely, when I try to run it from the commandline a la "mplayer sound.wav" it works! Dunno if it defautls to oss or something... I'm kinda confused here). alsamixer has sliders for "OSS Mixer"s but not the ALSA ones that used to be there. Thanks for your help. I changed zero settings from when it WAS working to when it was not except to emerge the new alsa stuff + etc-update. W
emerge strace strace mplayer -ao alsa something.wav That should hopefully be good for me (assuming 'mplayer -ao alsa something.wav') is failing for you. What sound card do you have?
Well, it's strange because that mplayer command you suggested WORKED. Also, when I do "alsamixer" from the command line I see the same OSS mixer as in the GNOME Volume Control application (in fact, when I move the sliders on one, the levels move on the other in real time). From this I assume that the OSS-emulation is working, but that anything access the "default" device isn't. One such application is rhythmbox. To be on the safe side, I re-emerged it (and also strace) then did an "strace rhythmbox" then clicked on the song. Sorry for all the mouse polling stuff, but I don't know of a way to get rhythmbox to play a single song from the command line. Hopefully this log is still valuable. I only include the stuff from before I click to start the song and after the error pops. You can see though where it gets the error. FWIW the sound card, according to alsamixer is "Nvidia CK8S" and the Chip is "Realtek AL655 rev 0". I use the intel8x0 module. Thanks for your help with this. W
Created attachment 63744 [details] snippet of log doing an "strace rhythmbox" w/resulting error. Thanks again.
sorry I haven't gotten back to you... is this still a problem for you?
Nope I think it's working now.. :) Thx, W
ok, closing. thanks