From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Bad sceduling for VXPocket 440 Date: Fri, 21 May 2004 15:02:37 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20040519083639.GN32181@watri.org.au> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: multipart/mixed; boundary="Multipart_Fri_May_21_15:02:37_2004-1" Return-path: In-Reply-To: <20040519083639.GN32181@watri.org.au> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Anders Johansson Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Fri_May_21_15:02:37_2004-1 Content-Type: text/plain; charset=US-ASCII At Wed, 19 May 2004 16:36:39 +0800, Anders Johansson wrote: > > Hi, > > Soundcard: VXPocket 440 > Kernel version: 2.6.6 w. preemtive multitasking > lib alsa version: 1.0.4 > > When I terminate arecord or aplay I get the following errors: > > bad: scheduling while atomic! > Call Trace: does the attached patch work? Takashi --Multipart_Fri_May_21_15:02:37_2004-1 Content-Type: text/plain; charset=US-ASCII Index: alsa-kernel/drivers/vx/vx_pcm.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/drivers/vx/vx_pcm.c,v retrieving revision 1.4 diff -u -r1.4 vx_pcm.c --- alsa-kernel/drivers/vx/vx_pcm.c 11 Feb 2004 14:35:20 -0000 1.4 +++ alsa-kernel/drivers/vx/vx_pcm.c 21 May 2004 13:01:21 -0000 @@ -413,7 +413,7 @@ if ((err = vx_send_irqa(chip)) < 0) return err; - +#if 0 /* If it completes successfully, wait for the pipes * reaching the expected state before returning * Check one pipe only (since they are synchronous) @@ -428,6 +428,7 @@ if ((i % 4 ) == 0) delay <<= 1; } +#endif return err < 0 ? -EIO : 0; } --Multipart_Fri_May_21_15:02:37_2004-1-- ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click