lkml.org 
[lkml]   [1998]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject"hanging" sound with GUS: patch for dmabuf.c
From
Hi,

as has been reported before, with all recent versions of the sound driver
on GUS "Classic" soundcards, programs will "hang" after playing sounds,
making the sound pretty much unusable.

I just wanted to remind of this problem and the following little patch,
which seems to be all that is needed to fix it (the patch also has been
proposed before, I don't remember by whom):

- - - - - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - -
--- dmabuf.c.org Fri May 22 13:00:54 1998
+++ dmabuf.c Fri May 22 13:50:24 1998
@@ -959,7 +959,8 @@
}
if (!(adev->flags & DMA_AUTOMODE))
dmap->flags &= ~DMA_ACTIVE;
- while (dmap->qlen <= 0) {
+ /* while (dmap->qlen <= 0) { */
+ while (dmap->qlen < 0) {
dmap->underrun_count++;
dmap->qlen++;
if (dmap->flags & DMA_DIRTY && dmap->applic_profile !=
APF_CPUIN
TENS) {
--
| Peter Daum (gator@cs.tu-berlin.de) __o (+49 30)
| http://www.cs.tu-berlin.de/~gator _'\<_ 691 46 35
| pgp messages welcome! _(_)/(_) ___________


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.032 / U:2.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site