On Fri, 19 Dec 2003, Andrew Morton wrote:

> umm, we're calling schedule() from a hard IRQ.

Oops. It wasn't intented. The patch bellow should solve this problem.
Andrew, what's the best method to send you all the new ALSA code?
We have many fixes for the PCM OSS emulation code and various drivers
were updated.

Our BK repository is at http://linux-sound.bkbits.net/linux-sound.


Index: gus_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gus_pcm.c,v
retrieving revision 1.17
diff -u -r1.17 gus_pcm.c
--- gus_pcm.c   17 Nov 2003 10:23:40 -0000      1.17
+++ gus_pcm.c   20 Dec 2003 09:28:11 -0000
@@ -334,9 +334,11 @@
                                        snd_gf1_poke(gus, pos++, *buf++ ^ invert);
                        }
                }
-               schedule_timeout(1);
-               if (signal_pending(current))
-                       return -EAGAIN;
+               if (count > 0 && !in_interrupt()) {
+                       schedule_timeout(1);
+                       if (signal_pending(current))
+                               return -EAGAIN;
+               }
        }
        return 0;
 }

> Date: Fri, 19 Dec 2003 14:39:34 -0800
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [Bugme-new] [Bug 1708] New: alsa gus max driver destroying data in 
> filesystems
> 
> 
> http://bugme.osdl.org/show_bug.cgi?id=1708
> 
>            Summary: alsa gus max driver destroying data in filesystems
>     Kernel Version: 2.6.0
>             Status: NEW
>           Severity: high
>              Owner: [EMAIL PROTECTED]
>          Submitter: [EMAIL PROTECTED]

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to