All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Anders Johansson <ajh@watri.org.au>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Bad sceduling for VXPocket 440
Date: Fri, 21 May 2004 15:02:37 +0200	[thread overview]
Message-ID: <s5had02ylua.wl@alsa2.suse.de> (raw)
In-Reply-To: <20040519083639.GN32181@watri.org.au>

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 704 bytes --]

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;
 }
 

      reply	other threads:[~2004-05-21 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-19  8:36 Bad sceduling for VXPocket 440 Anders Johansson
2004-05-21 13:02 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5had02ylua.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=ajh@watri.org.au \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.