Re: SB sound FUBAR in Quake2

Glynn Clements (glynn@sensei.co.uk)
Tue, 8 Dec 1998 13:20:58 +0000 (GMT)


Justin A. Kolodziej wrote:

> I have a Sound Blaster AWE32 PnP in a PPro 180Mhz system. In all kernels since
> at least 2.1.128, maybe 2.1.127 (not sure) Quake 2 sounds more like the latest
> Merzbow composition (random noise) than an interplanetary war. I compile the
> driver directly into the kernel because I'm too lazy to put the info into my
> conf.modules... Might that make a difference?

The behaviour when opening /dev/dsp read-write changed. It now enables
full-duplex (16-bit input, 8-bit output), so Quake2 is writing 16-bit
samples to a device which assumes 8-bit samples.

Try the following patch:

--- sb_audio.c.orig Tue Dec 8 13:19:09 1998
+++ sb_audio.c Tue Dec 8 13:19:49 1998
@@ -64,8 +64,7 @@

devc->irq_mode = IMODE_NONE;
devc->irq_mode_16 = IMODE_NONE;
- devc->fullduplex = devc->duplex &&
- ((mode & OPEN_READ) && (mode & OPEN_WRITE));
+ devc->fullduplex = 0;
sb_dsp_reset(devc);

/* The ALS007 seems to require that the DSP be removed from the output */

-- 
Glynn Clements <glynn@sensei.co.uk>

- 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.tux.org/lkml/