lkml.org 
[lkml]   [1999]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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/

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