well, it's my first post here. i hope you can help me with this.
i installed archlinux 2009.08 iso.
after install a wm (jwm), alsa-lib, alsa-utils, slim and X+hal i started to install my programs for listen mp3, office, etc.
i installed alsaplayer and the lib to play mp3. alsaplayer get muted after few seconds or minutes.
when i installed zsnes, the console output surprises me:
ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured
zsnes get muted too after few seconds or minutes (randomly). while zsnes were sound, they were intermittent glitches in audio.
i thought that the zsnes error were relationed with the alsaplayer error, but when i launched alsaplayer from xterm, no output was generated.
but when i start mp3blaster, the outputs is the same that zsnes output and the unusual behavior is the same that alsaplayer has:
i had tried different things to fix it:
in slitaz2.0 STABLE i didn't have this problem, so, i search which are the version of alsa lib and utils that version 2.0 uses. they were alsa-lib-1.0.20 and alsa-utils-1.0.20.
so, i did a donwgrade to these version, but the same thing happened awaing, except by one detail:
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
like the guy of this post (i never tried if the ethernet conection can do this).
i tried to run mi own version of zsnes (compiled in slitaz2), and the same thing happened again.
google don't know about this problem out of blending (this problem ocurre freccuently in blender), so i don't know wath to do. really, thanks for read, and excuse by english level, if something can't be understud.
PD: important commands:
$lsmod | grep ^snd
snd_seq_dummy 1099 0 snd_seq_oss 25304 0 snd_seq_midi_event 4452 1 snd_seq_oss snd_seq 42628 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_pcm_oss 33693 0 snd_cmipci 25516 0 snd_mixer_oss 14810 1 snd_pcm_oss snd_pcm 57479 2 snd_pcm_oss,snd_cmipci snd_page_alloc 5809 1 snd_pcm snd_opl3_lib 7318 1 snd_cmipci snd_timer 16117 3 snd_seq,snd_pcm,snd_opl3_lib snd_hwdep 5102 1 snd_opl3_lib snd_mpu401_uart 4947 1 snd_cmipci snd_rawmidi 15592 1 snd_mpu401_uart snd_seq_device 4313 5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi snd 43847 12 snd_seq_oss,snd_seq,snd_pcm_oss,snd_cmipci,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device
$lspci | grep "audio"
00:0a.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
i'm with the lastest alsa now. thanks for read.
i have an aditional thing to say.
i have installed wine and i ran soprano.exe in it. the sound has no glitches. the sound don't stop until 3-4 hours. the output of consoles don't says nothing about the alsa error that i said in the previous post.
this is so weird.
thanks for reading.
Last edited by thehatusa (2010-01-24 06:05:24)
150 views and no replies? so sad, i hope you can help me now.
talking with a friend about this problem, he told me that could be a kernel bug.
so i'm thinking in downgrade the kernel.
how dangerous is this? can the kernel be the problem?
i hope you can help me.
PD: excuse me, i forget this
00:0a.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10) Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio Device Flags: bus master, medium devsel, latency 64, IRQ 18 I/O ports at b800 [size=256] Capabilities: <access denied> Kernel driver in use: C-Media PCI Kernel modules: snd-cmipci
Last edited by thehatusa (2010-02-05 22:03:56)
Uhm, i got a similar / the same bug I think, but I don't even understand a percent of the whole sound system in linux :S
Here are my logs, the program I wanted to start is Frets on Fire Alarian Mod (it starts without sound; while in most other games the sound works perfectly):
[17:08:54] il@omg42:~>FoFiX ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured (repeating infinitely every ~200ms until I exit the program)
lsmod | grep ^snd:
snd_hda_codec_nvhdmi 3351 1 snd_seq_dummy 1099 0 snd_seq_oss 25304 0 snd_seq_midi_event 4452 1 snd_seq_oss snd_seq 42628 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_pcm_oss 33693 0 snd_hda_codec_realtek 179176 1 snd_mixer_oss 14810 1 snd_pcm_oss snd_hda_intel 18793 0 snd_usb_audio 60238 5 snd_hda_codec 56728 3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel snd_usb_lib 13455 1 snd_usb_audio snd_pcm 57479 7 snd_pcm_oss,snd_hda_intel,snd_usb_audio,snd_hda_codec snd_timer 16117 4 snd_seq,snd_pcm snd_rawmidi 15592 1 snd_usb_lib snd_seq_device 4313 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi snd_hwdep 5102 2 snd_usb_audio,snd_hda_codec snd 43847 18 snd_seq_oss,snd_seq,snd_pcm_oss,snd_hda_codec_realtek,snd_mixer_oss,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep snd_page_alloc 5809 2 snd_hda_intel,snd_pcm
i hope (but don't think) this helps
Did you ever figure this out? I'm also getting the buffer underrun.
hi, excuse me for didn't read this post enought for new responds.
some guys whose use linux distros form a long time ago told me that this problem is because the sound card c-media 8738. they had problems with that sound card and other of the same manufacturer.
also, i have the underuns in my old pc with arch, but these underruns only "kill" the audio in 5 hours or more. in the "newer" pc, this problem is very annoying. in the old pc, no.
this maybe can be a driver bug or kernel bug.
excuse my english level if sometimes you can't understand me. my mother-languaje isn't the english.
I am experiencing similar problems on my own setup. I find that if I leave any audio source playing for a long time, 6 hours or so, the sound begins to loop over. Stopping and then continuing the playback gets the sound out of the loop. MPD didn't give me any meaningful error messages, but when I experimented with mp3blaster, I got the same error as thehatusa:
ALSA lib pcm.c:7236:(snd_pcm_recover) underrun occured
This problem is annoying me greatly, since I like to leave music playing when I go to sleep. Waking up to the machinegun-like sound of the 0.1 second loop is less than pleasant.
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) Subsystem: Micro-Star International Co., Ltd. Device 7360 Flags: bus master, fast devsel, latency 0, IRQ 29 Memory at f9ff8000 (64-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: HDA Intel Kernel modules: snd-hda-intel
lsmod | grep ^snd
snd_hda_codec_realtek 185761 1 snd_hda_intel 19497 5 snd_hda_codec 60521 2 snd_hda_codec_realtek,snd_hda_intel snd_seq_dummy 1067 0 snd_seq_oss 24728 0 snd_seq_midi_event 4484 1 snd_seq_oss snd_seq 41707 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 4281 3 snd_seq_dummy,snd_seq_oss,snd_seq snd_hwdep 5006 1 snd_hda_codec snd_pcm_oss 33469 0 snd_pcm 57233 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_mixer_oss 14523 2 snd_pcm_oss snd_timer 15758 3 snd_seq,snd_pcm snd 43328 17 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_hwdep,snd_pcm_oss,snd_pcm,snd_mixer_oss,snd_timer snd_page_alloc 5841 2 snd_hda_intel,snd_pcm
Same problem here.
When I run test of sound in Wine I got:
ALSA lib pcm.c:7245:(snd_pcm_recover) underrun occured
But the audio works without any error's, and when I run game (Warhammer 40k Dawn Of War Winter Assault) I don't have sound.
Alsa version 1.0.23
Shell Scripter | C/C++/Python/Java Coder | ZSH
I dont know if this problem is alsa related.
try to downgrade SDL package to 1.2.13.
This helps me with some games and i dont have underruns anymore.
Hi, you have or link for sdl 1.2.13 for x86_64 i tryed archives repos and not luck..
Hi, I had the same problem, and it seems to be gone after replacing sdl with sdl-pulse http://aur.archlinux.org/packages.php?ID=29855 and thus using pulseaudio instead of directly using alsa.
[vb@haramis ~]% sudo rmmod snd_pcm_oss
[vb@haramis ~]% sudo rmmod snd_mixer_oss
It did the trick for me. I got the idea in trying to install sdl-pulse, during the install it suggested to do that. And then it worked for me with SDL apps, sound ok now
I was getting the underrun problem with Urban Terror.
Replacing sdl with sdl-pulse as described by jackajackk seems to be working for me.
Free Software, Free Society