Messages in this thread Patch in this message | | | Date | Wed, 6 Jan 1999 18:50:27 +0100 (MET) | From | Mikael Pettersson <> | Subject | Re: pre4 SB16: device or resource busy: /dev/dsp |
| |
Jean-Marc Valin wrote:
> I get the message "device or resource busy: /dev/dsp" even when no other >process is using the device. This happens with both 2.1.132 and >2.2.0pre4, but not with 2.0.36 > It seems like when the device (/dev/dsp) has been opened once for one >mode (read-only or write-only), trying to open it later with a different >mode fails. In other words, it I first use the playback, the recording stops >working and inversly.
Please try the patch below. It seems to cure SB16 problems for several people. (Or you can apply Alan Cox' latest 2.2.0pre4-ac patch.)
/ Mikael Pettersson
--- linux-2.2.0-pre4/drivers/sound/sb_audio.c.orig Wed Dec 23 23:10:18 1998 +++ linux-2.2.0-pre4/drivers/sound/sb_audio.c Sun Jan 3 17:48:52 1999 @@ -91,8 +91,10 @@ { sb_devc *devc = audio_devs[dev]->devc; - /* if we did dma juggling put the right dmap in the right place */ - if(devc->duplex && audio_devs[dev]->dmap_out->dma != devc->dma8) + /* fix things if mmap turned off fullduplex */ + if(devc->duplex + && !devc->fullduplex + && (devc->opened & OPEN_READ) && (devc->opened & OPEN_WRITE)) { struct dma_buffparms *dmap_temp; dmap_temp = audio_devs[dev]->dmap_out;
- 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/
| |