linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Kevin Brosius <cobra@compuserve.com>
Cc: kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.5.44-ac3 usb audio - illegal sleep call
Date: Sat, 26 Oct 2002 10:11:45 -0700	[thread overview]
Message-ID: <20021026171145.GD2720@kroah.com> (raw)
In-Reply-To: <3DBAA320.B02AB7FC@compuserve.com>

On Sat, Oct 26, 2002 at 10:13:52AM -0400, Kevin Brosius wrote:
> I've been trying to get USB up to test a audio device and just managed
> to get it all working to some extent.  When using xmms to play audio
> (usb audio module - oss soundcore) I see the following kernel messages
> repeatedly, maybe once a second or so:

Can you try this patch and let us know if it fixes your problem?

thanks,

greg k-h


===== drivers/usb/class/audio.c 1.43 vs edited =====
--- 1.43/drivers/usb/class/audio.c	Fri Oct 18 21:31:28 2002
+++ edited/drivers/usb/class/audio.c	Sat Oct 26 10:22:43 2002
@@ -914,7 +914,7 @@
 	if (!usbin_retire_desc(u, urb) &&
 	    u->flags & FLG_RUNNING &&
 	    !usbin_prepare_desc(u, urb) && 
-	    (suret = usb_submit_urb(urb, GFP_KERNEL)) == 0) {
+	    (suret = usb_submit_urb(urb, GFP_ATOMIC)) == 0) {
 		u->flags |= mask;
 	} else {
 		u->flags &= ~(mask | FLG_RUNNING);
@@ -1274,7 +1274,7 @@
 	if (!usbout_retire_desc(u, urb) &&
 	    u->flags & FLG_RUNNING &&
 	    !usbout_prepare_desc(u, urb) && 
-	    (suret = usb_submit_urb(urb, GFP_KERNEL)) == 0) {
+	    (suret = usb_submit_urb(urb, GFP_ATOMIC)) == 0) {
 		u->flags |= mask;
 	} else {
 		u->flags &= ~(mask | FLG_RUNNING);

      parent reply	other threads:[~2002-10-26 17:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-26 14:13 2.5.44-ac3 usb audio - illegal sleep call Kevin Brosius
2002-10-26 17:02 ` Oliver Neukum
2002-10-26 18:13   ` Kevin Brosius
2002-10-26 18:53     ` Greg KH
2002-10-26 22:21       ` Kevin Brosius
2002-10-26 17:11 ` Greg KH [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=20021026171145.GD2720@kroah.com \
    --to=greg@kroah.com \
    --cc=cobra@compuserve.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).