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: Tue, 17 Jan 2006 12:27:19 +0100 Message-ID: <476be8db01218933aed708b92cbecb83@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 A32AD156 for ; Tue, 17 Jan 2006 12:27:19 +0100 (MET) 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: 01-17-2006 12:27 CET ====================================================================== 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 - 01-14-06 05:00 ---------------------------------------------------------------------- When the equalizer is in bypass mode, the gain of the 10 bands of the left and right channels should be the same, therefore this14_array only need 10 values instead of 20. Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_eq.h =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_eq.h,v retrieving revision 1.2 diff -u -r1.2 au88x0_eq.h --- alsa-driver/alsa-kernel/pci/au88x0/au88x0_eq.h 13 Jan 2006 17:16:29 -0000 1.2 +++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_eq.h 14 Jan 2006 03:43:23 -0000 @@ -13,18 +13,18 @@ typedef struct { u16 LeftCoefs[50]; //0x4 u16 RightCoefs[50]; // 0x68 - u16 LeftGains[20]; //0xd0 - u16 RightGains[20]; //0xe4 + u16 LeftGains[10]; //0xd0 + u16 RightGains[10]; //0xe4 } auxxEqCoeffSet_t; typedef struct { - u32 ptr_this00; /*CAsp4HwIO */ +// u32 ptr_this00; /*CAsp4HwIO */ s32 this04; /* How many filters for each side (default = 10) */ s32 this08; /* inited to cero. Stereo flag? */ } eqhw_t; typedef struct { - u32 ptr_this00; /*CAsp4Core */ +// u32 ptr_this00; /*CAsp4Core */ eqhw_t this04; /* CHwEq */ u16 this08; /* Bad codec flag ? SetBypassGain: bypass gain */ u16 this0a; @@ -32,8 +32,7 @@ u16 this0e; s32 this10; /* How many gains are used for each side (right or left). */ - u16 this14_array[32]; /* SetLeftGainsTarget: Left (and right?) EQ gains */ - s32 this24; + u16 this14_array[10]; /* Gains Target when EQ is bypassed */ s32 this28; /* flag related to EQ enabled or not. Gang flag ? */ s32 this54; /* SetBypass */ s32 this58; ---------------------------------------------------------------------- Raymond - 01-17-06 12:27 ---------------------------------------------------------------------- The function vortex_EqHw_SetLevels() only set 20 eq peaks and 4 other registers, so eq_levels[] need 24 values instead of 64 values. Index: alsa-driver/alsa-kernel/pci/au88x0/au88x0_eqdata.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_eqdata.c,v retrieving revision 1.2 diff -u -r1.2 au88x0_eqdata.c --- alsa-driver/alsa-kernel/pci/au88x0/au88x0_eqdata.c 13 Jan 2006 17:16:29 -0000 1.2 +++ alsa-driver/alsa-kernel/pci/au88x0/au88x0_eqdata.c 17 Jan 2006 09:55:43 -0000 @@ -104,12 +104,7 @@ }; /*_rodataba0:*/ -static u16 eq_levels[64] = { - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, +static u16 eq_levels[24] = { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 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 01-03-06 04:04 Raymond Note Added: 0007397 01-04-06 22:08 alien999999999 Note Added: 0007455 01-05-06 07:21 Raymond Note Added: 0007462 01-05-06 20:32 shurick Issue Monitored: shurick 01-06-06 17:17 alien999999999 Note Added: 0007488 01-06-06 17:33 alien999999999 File Added: alsa-cvs-2006-01-04.patch 01-13-06 13:51 Raymond Note Added: 0007639 01-13-06 18:18 tiwai Note Added: 0007648 01-14-06 04:53 Raymond Note Added: 0007653 01-14-06 05:00 Raymond Note Edited: 0007653 01-17-06 12:27 Raymond Note Added: 0007697 ====================================================================== ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642