Messages in this thread Patch in this message | | | Date | Fri, 22 May 1998 14:32:10 +0200 (MET DST) | Subject | "hanging" sound with GUS: patch for dmabuf.c | From | "Peter Daum" <> |
| |
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
| |