Subject: kern/9062: eso (ESS Solo-1) mmaped audio output doesn't work (silence)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 12/27/1999 15:57:42
>Number:         9062
>Category:       kern
>Synopsis:       eso (ESS Solo-1) mmaped audio doesn't work (silence)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 27 15:57:00 1999
>Last-Modified:
>Originator:     Dave Sainty
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Release:        Recent current
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.4P NetBSD 1.4P (TEQUILA) #3: Tue Dec 28 12:21:09 NZDT 1999 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userB/u2/NetBSD-current/src/sys/arch/i386/compile/TEQUILA i386


>Description:
	eso (ESS Solo-1) mmaped audio output doesn't work (silence)
>How-To-Repeat:
	Try and play quake2
>Fix:
Fairly clear typo (once looking in the right place)...  Unfortunately quake
still doesn't work properly (It makes noise, but not nice noises.  I'm still
looking into that but it looks like a completely unrelated bug...).

--- src/sys/dev/pci/eso.c.orig  Sat Dec 11 16:05:16 1999
+++ src/sys/dev/pci/eso.c       Tue Dec 28 12:20:36 1999
@@ -1597,7 +1597,7 @@
 
        if (offs < 0)
                return (-1);
-       for (ed = sc->sc_dmas; ed != NULL && KVADDR(ed) == addr;
+       for (ed = sc->sc_dmas; ed != NULL && KVADDR(ed) != addr;
             ed = ed->ed_next)
                ;
        if (ed == NULL)
>Audit-Trail:
>Unformatted: