From: bugtrack@alsa-project.org Subject: [ALSA - driver 0002070]: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y) Date: Sun, 30 Apr 2006 19:35:38 +0200 Message-ID: <872106bbabafcb36e21de19ef78b6d19@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id D9240140 for ; Sun, 30 Apr 2006 19:35:38 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: jaime Assigned To: karsten ====================================================================== Project: ALSA - driver Issue ID: 2070 Category: USB - usb-usx2y Reproducibility: always Severity: crash Priority: normal Status: assigned Distribution: Gentoo ~x86 Kernel Version: 2.6.17-rc1 ====================================================================== Date Submitted: 04-25-2006 23:07 CEST Last Modified: 04-30-2006 19:35 CEST ====================================================================== Summary: Hard lockup from aplay with low buffersizes on Tascam us-122 (snd_usb_usx2y) Description: Hi. Here's the original I'm playing (440Hz sine wave): www.carbon.eclipse.co.uk/origSine.wav aplay --buffer-size=1024 origSine.wav sounds great: www.carbon.eclipse.co.uk/aplay1024.wav aplay --buffer-size=512 origSine.wav sounds bad: www.carbon.eclipse.co.uk/aplay512.wav aplay --buffer-size=256 origSine.wav sounds very bad: www.carbon.eclipse.co.uk/aplay256.wav aplay --buffer-size=128 origSine.wav gives only a very short click, and then locks up the machine completely: www.carbon.eclipse.co.uk/aplay128.wav I've tried this using different usb cards/controllers, and I get the same problem, so I think it is an alsa driver problem. Thank you for any help you can offer. ====================================================================== ---------------------------------------------------------------------- karsten - 04-26-06 23:31 ---------------------------------------------------------------------- just red again: aplay --buffer-size=128 isn't really possible: thats 2 periods with 64 frames each. USB1.1 tranfers data at 1ms chunks: that'll be like 44 to 48 frames. so jitter is too big. none the less it shouldn't crash the machine... ---------------------------------------------------------------------- jaime - 04-30-06 19:35 ---------------------------------------------------------------------- Hi Karsten. Apologies for the delay - I've been trying to learn a little about kernel debugging but I'm getting nowhere. :( Firstly, when I set nrpacks to 1, the problem goes away. Everything then works fine, even at low buffersizes (I've tested down to 128, which crashed the system before, and now I just get lots of underrun messages instead). Also, the audio quality at buffersizes 256 and 512 is now perfect. With regards to debugging the lock-ups with nrpacks=4, I've tried quite a few things, but I can't get any useful info out. When the system locks up, nothing is written out by the kernel (no oops messages or anything). The caps-lock key no longer toggles the keyboard led, and magic-sysreq does nothing. I've even tried running the aplay line in gdb, and when I type "run" into gdb, my computer instantly reboots (no warnings, no oops message, nothing, just an instant reboot!) I'd really appreciate some more help as to what I could do to get some more info out to debug this problem. Thanks, Jaime Issue History Date Modified Username Field Change ====================================================================== 04-25-06 23:07 jaime New Issue 04-25-06 23:07 jaime Distribution => Gentoo ~x86 04-25-06 23:07 jaime Kernel Version => 2.6.17-rc1 04-26-06 16:23 jaime Note Added: 0009514 04-26-06 23:19 karsten Note Added: 0009526 04-26-06 23:29 karsten Note Added: 0009527 04-26-06 23:31 karsten Note Edited: 0009527 04-30-06 19:35 jaime Note Added: 0009550 ====================================================================== ------------------------------------------------------- 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