GNOME Bugzilla – Bug 555902
no sound played
Last modified: 2008-10-27 07:11:41 UTC
Hello, uname -a Linux littleindian 2.6.25-gentoo-r8 #1 SMP Sun Oct 5 12:51:06 CEST 2008 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux Sound used to perfectly work out of all softwares providing it (amarok, vlc, firefox...), untill... Symptoms : when amarok is fired, pop up window saying "XINE was unable to initialize any audio-drivers". no sound comes out anymore from vlc , Quake3, or firefox, when on youtube for example . Video's fine thought. when sounds tests are played with gnome sound manager: "audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Internal GStreamer error: state change failed. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer" when Alsa is chosen. BUT, when OSS is chosen, I get the "beep" that means fine. What I've checked so far: Alsaconf had no issue dealing with my sound card. Alsamixer works fine. Re-emerged media-libs/xine-lib, sys-apps/xinetd, x11-libs/libXinerama, x11-proto/xineramaproto, gstreamer,gst-* plugins with no positive result. cat /proc/asound/oss/sndstat Sound Driver:3.8.1a-980706 (ALSA v1.0.16rc2 emulation code) Kernel: Linux littleindian 2.6.25-gentoo-r8 #1 SMP Sat Oct 4 08:55:09 CEST 2008 i686 Config options: 0 Installed drivers: Type 10: ALSA emulation Card config: Avance Logic ALS4000 at 0xec00, irq 19 Audio devices: 0: (DUPLEX) Synth devices: NOT ENABLED IN CONFIG Midi devices: 0: Avance Logic ALS4000 MIDI Timers: 7: system timer Mixers: 0: ALS4000 cat /proc/asound/cards 0 [ALS4000 ]: ALS4000 - Avance Logic ALS4000 Avance Logic ALS4000 at 0xec00, irq 19[/code] [code]# cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC). lsmod Module Size Used by snd_seq_midi 9248 0 snd_opl3_synth 12548 0 snd_seq_midi_emul 7680 1 snd_opl3_synth snd_seq_oss 24960 0 snd_seq_midi_event 7552 2 snd_seq_midi,snd_seq_oss snd_seq 34672 7 snd_seq_midi,snd_opl3_synth,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event snd_pcm_oss 32416 0 snd_mixer_oss 15488 1 snd_pcm_oss snd_als4000 13152 1 snd_sb_common 12672 1 snd_als4000 snd_pcm 44164 2 snd_pcm_oss,snd_als4000 snd_page_alloc 10376 1 snd_pcm snd_opl3_lib 10880 2 snd_opl3_synth,snd_als4000 snd_timer 18056 3 snd_seq,snd_pcm,snd_opl3_lib snd_hwdep 9860 1 snd_opl3_lib snd_mpu401_uart 8704 1 snd_als4000 snd_rawmidi 17952 2 snd_seq_midi,snd_mpu401_uart snd_seq_device 8332 6 snd_seq_midi,snd_opl3_synth,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi snd 33316 16 snd_opl3_synth,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_als4000,snd_sb_common,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device # /etc/init.d/alsasound restart * WARNING: you are stopping a boot service. * Storing ALSA Mixer Levels ... [ ok ] * Killing processes using ALSA ... [ ok ] * Unloading ALSA modules ... [ ok ] * Loading ALSA modules ... * Loading: snd-card-0 ... [ ok ] * Loading: snd-pcm-oss ... [ ok ] * Loading: snd-seq-oss ... [ ok ] * Loading: snd-opl3-synth ... [ ok ] * Loading: snd-seq-midi ... [ ok ] * Restoring Mixer Levels ... [ ok ] # gstreamer-properties ... gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink' gstreamer-properties-Message: Skipping unavailable plugin 'pulsesink' gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink' gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc' gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc' gstreamer-properties-Message: Skipping unavailable plugin 'v4lsrc' gstreamer-properties-Message: Skipping unavailable plugin 'v4l2src' gstreamer-properties-Message: Skipping unavailable plugin 'esdmon' gstreamer-properties-Message: Skipping unavailable plugin 'pulsesrc' gstreamer-properties-Message: Error running pipeline 'ALSA - Advanced Linux Sound Architecture': Could not open audio device for playback. [gstalsasink.c(697): gst_alsasink_open (): /pipeline0/alsasink3: Playback open error on device 'default': No such device or address] groups wheel audio cdrom video users games apache ftp carlino plugdev What I've been doing before I notice this issue: install nvidia drivers for graphic card 6600 GT install Quake3 upgrade kernel --All this went fine, and I'm positive, sound was working, since I played Q3 with it.-- run "emerge -pv --update --newuse --deep world" --> 40 components had to be recompiled. install PlayOnLinux. Any idea ? Thanx
# gst-launch-0.10 -v filesrc location="01-aborted-the_chondrin_enigma.mp3" ! mad ! audioconvert ! audioresample ! alsasink Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element /pipeline0/alsasink0: Could not open audio device for playback. Additional debug info: gstalsasink.c(697): gst_alsasink_open (): /pipeline0/alsasink0: Playback open error on device 'default': No such device or address Setting pipeline to NULL ... FREEING pipeline ...
Which version of gstreamer and related software do you use? This sounds like an ALSA misconfiguration issue IMHO. Does other software use ALSA successfully, it seems that XINE has the same issues from your description.
this is the gstreamer version I use : media-libs/gstreamer-0.10.20. None of the software using Alsa work, (vlc, amarok, etc...) only Totem does, when and only when, I set Oss on with the gnome sound manager. media-video/vlc-0.9.4 ; media-sound/amarok-1.4.10 ; media-video/totem-2.22.2-r1 ; media-libs/xine-lib 1.1.9.1. It might be Alsa to blame as the troublemaker, but the in-kernel module seems to be fine, from what alsaconf and alsamixer show : absolutely no issue returned. Besides the error message poping-up when alsa is being tested throught the gnome sound manager tells about gstreamer ""audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Internal GStreamer error: state change failed".... ' don't know where to look at ; please advice
Ok, thanks... so this clearly _is_ an ALSA issue, most probably configuration related. Try to take a look at ~/.asoundrc or /etc/asoundrc or wherever your distribution stores it.
Well thanx for investigating my case... I just can't find any asoundrc file ; find / -name *asoundrc, just doesn't return anything. It should be in ~/ though. I know I heard of this file while crawling to intend to solve this issue. Should I make one up ? by the way, I recompiled the kernel just in case, but no change.
I closed this bug as NOTGNOME intentionally ;) It's definitely an ALSA issue and not a gstreamer bug. Best would be if you ask in some ALSA specific mailing list or at the user forums/mailing lists of your distribution