From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001047]: module hangs at seemingly random times Date: Thu, 27 Oct 2005 02:27:47 +0200 Message-ID: <73fb77232f741fa007b68caa25f1ece5@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 78471181 for ; Thu, 27 Oct 2005 02:27:47 +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: alien999999999 Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1047 Category: PCI - au88x0 Reproducibility: sometimes Severity: block Priority: normal Status: assigned Distribution: Mandrake Kernel Version: 2.6.7 ====================================================================== Date Submitted: 04-12-2005 20:43 CEST Last Modified: 10-27-2005 02:27 CEST ====================================================================== Summary: module hangs at seemingly random times Description: sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again. BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this: snd-pcm-oss 59752 11 snd-mixer-oss 20480 1 snd-pcm-oss snd-au8810 43760 220 snd-ac97-codec 83408 1 snd-au8810 snd-pcm 108172 112 snd-pcm-oss,snd-au8810,snd-ac97-codec snd-page-alloc 10384 1 snd-pcm gameport 3840 1 snd-au8810 snd-mpu401-uart 11904 1 snd-au8810 as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s') i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset... it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ... ====================================================================== ---------------------------------------------------------------------- Raymond - 08-24-05 11:13 ---------------------------------------------------------------------- When playing mono streams on hw:0,2 (16 subdevices) on my au8830 (32-bits platform), the 17th mono stream (aplay) seem to be blocked (snd_pcm_open). Is this the normal behaviour of snd_pcm_open when maximum number of subdevice have been opened ? When playing mono streams on hw:0,0 (32 subdevices) on au8830, the 17th mono stream (aplay) will aborted immediately since snd_pcm_hw_params() return no more SRC available error. Please note that the capture stream also using DMA, SRC and MIXER. I guess some weird things happen when there is only 1 SRC left and the ALSA application (stereo stream) request 2 SRC. au88x0 driver should check the available number of SRC >= the number of channels before it allocate the SRC and MIXER. THe error recovery may not released the SRC and MIXER properly. You should add printk to log the resource DMA, SRC, MIXER usuage at the start and the end of a successful snd_pcm_vortex_hw_params(). ---------------------------------------------------------------------- Raymond - 10-27-05 02:27 ---------------------------------------------------------------------- It looks like au88x0_gameport.c need patch too. static int vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) { vortex_t *vortex = gameport_get_port_data(gameport); int i; *buttons = (~hwread(vortex->mmio, VORTEX_GAME_LEGACY) >> 4) & 0xf; for (i = 0; i < 4; i++) { axes[i] = hwread(vortex->mmio, VORTEX_GAME_AXIS + (i * AXIS_SIZE)); if (axes[i] == AXIS_RANGE) axes[i] = -1; } return 0; } Issue History Date Modified Username Field Change ====================================================================== 04-12-05 20:43 alien999999999 New Issue 04-12-05 20:43 alien999999999 Distribution => Mandrake 04-12-05 20:43 alien999999999 Kernel Version => 2.6.7 04-12-05 20:48 alien999999999 Note Added: 0004461 04-12-05 20:49 alien999999999 File Added: au88x0.c 04-12-05 20:49 alien999999999 File Added: au88x0.h 04-12-05 20:50 alien999999999 File Added: au88x0_core.c 04-12-05 20:50 alien999999999 File Added: au88x0_mixer.c 04-12-05 20:51 alien999999999 Note Added: 0004462 08-24-05 11:13 Raymond Note Added: 0005928 10-27-05 02:27 Raymond Note Added: 0006564 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information