lkml.org 
[lkml]   [1998]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectGUS patch
Date
From
Hello all.

Some weeks ago, I asked for a solution to the fact that GUS Classic sound
cards "hanged" on output of digital sound. Somebody (I don't remember) told me
to manually change a line in drivers/sound/dmabuf.c, and it worked OK.

He said his patch were in the way to the source tree, but as of 2.1.111, it
insn't yet. I enclose the patch (although the merit isn't mine), in case
someone found it interesting.

I have 2 computers, one with an AWE64 and the other with a GUS Classic-clone,
and this patch works great on both. Does anybody know if this breaks
something, and where is the problem, then, that the patch solves.

Regards.

-----8<-----
--- linux/drivers/sound/dmabuf.c.orig Sat Jul 25 21:30:43 1998
+++ linux/drivers/sound/dmabuf.c.patched Sat Jul 25 23:17:25 1998
@@ -960,7 +960,7 @@
}
if (!(adev->flags & DMA_AUTOMODE))
dmap->flags &= ~DMA_ACTIVE;
- while (dmap->qlen <= 0) {
+ while (dmap->qlen < 0) {
dmap->underrun_count++;
dmap->qlen++;
if (dmap->flags & DMA_DIRTY && dmap->applic_profile != APF_CPUINTENS) {
-----8<-----

---
Francisco Rodrigo Escobedo Robles - Sending from home
ax25:ea7abo - mailto:frer@vnet.es - http://frer.home.ml.org/
This message is just my opinion right now


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site