Takashi Iwai <[EMAIL PROTECTED]> writes:

> Then check whether XRUN occurs at next.  Make sure that you compiled
> the driver with debug option (--with-debug=full configure option),
> then do the following as root:
>
>       # echo 2 > /proc/asound/card0/pcm2p/xrun_debug
>
> then play the ac3 file.  You'll get stacktraces in kernel messages if
> XRUN is detected by the sound driver.  It's not perfect but an easy
> way.

Since alsa site is down, I've tried to get XRUN traces with the
kernel. I've enabled SND_DEBUG and CONFIG_SND_PCM_XRUN_DEBUG.

Note that I got a few XRUN while I got a *lot* of ac3 ... err
... hiccups (for lack of a better word). 

Here's what I got (with your patch) with a recompiled 2.6.17 kernel:
(I started ac3dec, then md5sum)

Sep 10 13:55:57 gandalf kernel: XRUN: pcmC0D2p
Sep 10 13:55:57 gandalf kernel:  <f0987cdd> snd_pcm_period_elapsed+0x1ef/0x27d 
[snd_pcm]  <f0b060ad> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 13:55:57 gandalf kernel:  <f0affda5> snd_emu10k1_interrupt+0x2ad/0x390 
[snd_emu10k1]  <b0123e04> do_timer+0x3a/0x2e2
Sep 10 13:55:57 gandalf kernel:  <b010ccc7> mark_offset_pmtmr+0x14/0x34d  
<b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 13:55:57 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 13:55:57 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20  
<b0101d7c> default_idle+0x0/0x55
Sep 10 13:55:57 gandalf kernel:  <b0101da8> default_idle+0x2c/0x55  <b0101e60> 
cpu_idle+0x8f/0xa8
Sep 10 13:55:57 gandalf kernel:  <b03046ee> start_kernel+0x374/0x37b


Here's another where I started md5sum *before* ac3dec. :

Sep 10 13:59:12 gandalf kernel: XRUN: pcmC0D2p
Sep 10 13:59:13 gandalf kernel:  <f0986dc1> snd_pcm_update_hw_ptr+0x172/0x1a5 
[snd_pcm]  <f0987622> snd_pcm_lib_write1+0xed/0x467 [snd_pcm]
Sep 10 13:59:13 gandalf kernel:  <b012c5b9> remove_wait_queue+0xf/0x34  
<b0117d3f> __wake_up+0x2a/0x3d
Sep 10 13:59:13 gandalf kernel:  <f0987ae4> snd_pcm_lib_write+0xa2/0xac 
[snd_pcm]  <f09884b1> snd_pcm_lib_write_transfer+0x0/0xa2 [snd_pcm]
Sep 10 13:59:13 gandalf kernel:  <f09852de> snd_pcm_playback_ioctl1+0xd7/0x3de 
[snd_pcm]  <f0985632> snd_pcm_playback_ioctl+0x0/0x1b [snd_pcm]
Sep 10 13:59:13 gandalf kernel:  <b01622a8> do_ioctl+0x1c/0x5d  <b016253b> 
vfs_ioctl+0x252/0x264
Sep 10 13:59:13 gandalf kernel:  <b0162595> sys_ioctl+0x48/0x5f  <b0102af3> 
sysenter_past_esp+0x54/0x75
Sep 10 13:59:21 gandalf kernel: XRUN: pcmC0D2p
Sep 10 13:59:21 gandalf kernel:  <f0987cdd> snd_pcm_period_elapsed+0x1ef/0x27d 
[snd_pcm]  <f0b060ad> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 13:59:21 gandalf kernel:  <f0affda5> snd_emu10k1_interrupt+0x2ad/0x390 
[snd_emu10k1]  <b0123e04> do_timer+0x3a/0x2e2
Sep 10 13:59:21 gandalf kernel:  <b010ccc7> mark_offset_pmtmr+0x14/0x34d  
<b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 13:59:21 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 13:59:21 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20  
<b0101d7c> default_idle+0x0/0x55
Sep 10 13:59:21 gandalf kernel:  <b0101da8> default_idle+0x2c/0x55  <b0101e60> 
cpu_idle+0x8f/0xa8
Sep 10 13:59:21 gandalf kernel:  <b03046ee> start_kernel+0x374/0x37b 
Sep 10 13:59:22 gandalf kernel: XRUN: pcmC0D2p
Sep 10 13:59:22 gandalf kernel:  <f0987cdd> snd_pcm_period_elapsed+0x1ef/0x27d 
[snd_pcm]  <f0b060ad> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 13:59:22 gandalf kernel:  <f0affda5> snd_emu10k1_interrupt+0x2ad/0x390 
[snd_emu10k1]  <b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 13:59:22 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 13:59:22 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20 
Sep 10 13:59:40 gandalf kernel: XRUN: pcmC0D2p
Sep 10 13:59:40 gandalf kernel:  <f0987cdd> snd_pcm_period_elapsed+0x1ef/0x27d 
[snd_pcm]  <f0b060ad> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 13:59:40 gandalf kernel:  <f0affda5> snd_emu10k1_interrupt+0x2ad/0x390 
[snd_emu10k1]  <b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 13:59:40 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 13:59:40 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20  
<b0101d7c> default_idle+0x0/0x55
Sep 10 13:59:40 gandalf kernel:  <b0101da8> default_idle+0x2c/0x55  <b0101e60> 
cpu_idle+0x8f/0xa8
Sep 10 13:59:40 gandalf kernel:  <b03046ee> start_kernel+0x374/0x37b 

Another one (from now on, I've also enabled CONFIG_SND_VERBOSE_PRINTK):
Sep 10 14:19:01 gandalf kernel: ALSA sound/core/pcm_lib.c:138: XRUN: pcmC0D2p
Sep 10 14:19:01 gandalf kernel:  <f0b6a1bd> snd_pcm_period_elapsed+0x217/0x2a5 
[snd_pcm]  <f0d6520d> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 14:19:01 gandalf kernel:  <f0d5ede6> snd_emu10k1_interrupt+0x2b6/0x3b0 
[snd_emu10k1]  <b010ccc7> mark_offset_pmtmr+0x14/0x34d
Sep 10 14:19:01 gandalf kernel:  <b0139e32> handle_IRQ_event+0x23/0x4c  
<b0139ed8> __do_IRQ+0x7d/0xcd
Sep 10 14:19:01 gandalf kernel:  <b0105019> do_IRQ+0x19/0x24  <b010359e> 
common_interrupt+0x1a/0x20

Sep 10 14:21:34 gandalf kernel: ALSA sound/core/pcm_lib.c:138: XRUN: pcmC0D2p
Sep 10 14:21:34 gandalf kernel:  <f0b691b9> snd_pcm_update_hw_ptr+0x186/0x1b9 
[snd_pcm]  <f0b69a85> snd_pcm_lib_write1+0xf8/0x485 [snd_pcm]
Sep 10 14:21:34 gandalf kernel:  <b012c5b9> remove_wait_queue+0xf/0x34  
<b0117d3f> __wake_up+0x2a/0x3d
Sep 10 14:21:34 gandalf kernel:  <f0b69f9c> snd_pcm_lib_write+0xc3/0xcd 
[snd_pcm]  <f0b6a9ef> snd_pcm_lib_write_transfer+0x0/0xad [snd_pcm]
Sep 10 14:21:34 gandalf kernel:  <f0b67537> snd_pcm_playback_ioctl1+0xec/0x3f3 
[snd_pcm]  <f0b6788b> snd_pcm_playback_ioctl+0x0/0x1b [snd_pcm]
Sep 10 14:21:34 gandalf kernel:  <b01622a8> do_ioctl+0x1c/0x5d  <b016253b> 
vfs_ioctl+0x252/0x264
Sep 10 14:21:34 gandalf kernel:  <b0162595> sys_ioctl+0x48/0x5f  <b0102af3> 
sysenter_past_esp+0x54/0x75
Sep 10 14:21:37 gandalf kernel: ALSA sound/core/pcm_lib.c:138: XRUN: pcmC0D2p
Sep 10 14:21:37 gandalf kernel:  <f0b6a1bd> snd_pcm_period_elapsed+0x217/0x2a5 
[snd_pcm]  <f0d6520d> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 14:21:37 gandalf kernel:  <f0d5ede6> snd_emu10k1_interrupt+0x2b6/0x3b0 
[snd_emu10k1]  <b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 14:21:37 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 14:21:37 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20
Sep 10 14:21:38 gandalf kernel: ALSA sound/core/pcm_lib.c:138: XRUN: pcmC0D2p
Sep 10 14:21:38 gandalf kernel:  <f0b6a1bd> snd_pcm_period_elapsed+0x217/0x2a5 
[snd_pcm]  <f0d6520d> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 14:21:38 gandalf kernel:  <f0d5ede6> snd_emu10k1_interrupt+0x2b6/0x3b0 
[snd_emu10k1]  <b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 14:21:38 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 14:21:38 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20  
<b0101d7c> default_idle+0x0/0x55
Sep 10 14:21:38 gandalf kernel:  <b0101da8> default_idle+0x2c/0x55  <b0101e60> 
cpu_idle+0x8f/0xa8
Sep 10 14:21:38 gandalf kernel:  <b03046ee> start_kernel+0x374/0x37b
Sep 10 14:21:40 gandalf kernel: ALSA sound/core/pcm_lib.c:138: XRUN: pcmC0D2p
Sep 10 14:21:40 gandalf kernel:  <f0b6a1bd> snd_pcm_period_elapsed+0x217/0x2a5 
[snd_pcm]  <f0d6520d> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 14:21:40 gandalf kernel:  <f0d5ede6> snd_emu10k1_interrupt+0x2b6/0x3b0 
[snd_emu10k1]  <b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 14:21:40 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 14:21:40 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20  
<b0101d7c> default_idle+0x0/0x55
Sep 10 14:21:40 gandalf kernel:  <b0101da8> default_idle+0x2c/0x55  <b0101e60> 
cpu_idle+0x8f/0xa8
Sep 10 14:21:40 gandalf kernel:  <b03046ee> start_kernel+0x374/0x37b
Sep 10 14:21:40 gandalf kernel: ALSA sound/core/pcm_lib.c:138: XRUN: pcmC0D2p
Sep 10 14:21:40 gandalf kernel:  <f0b6a1bd> snd_pcm_period_elapsed+0x217/0x2a5 
[snd_pcm]  <f0d6520d> snd_emu10k1_fx8010_interrupt+0x37/0x57 [snd_emu10k1]
Sep 10 14:21:40 gandalf kernel:  <f0d5ede6> snd_emu10k1_interrupt+0x2b6/0x3b0 
[snd_emu10k1]  <b0139e32> handle_IRQ_event+0x23/0x4c
Sep 10 14:21:40 gandalf kernel:  <b0139ed8> __do_IRQ+0x7d/0xcd  <b0105019> 
do_IRQ+0x19/0x24
Sep 10 14:21:40 gandalf kernel:  <b010359e> common_interrupt+0x1a/0x20  
<b0101d7c> default_idle+0x0/0x55
Sep 10 14:21:40 gandalf kernel:  <b0101da8> default_idle+0x2c/0x55  <b0101e60> 
cpu_idle+0x8f/0xa8
Sep 10 14:21:40 gandalf kernel:  <b03046ee> start_kernel+0x374/0x37b 


HTH

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to