Re: sound recording broken in 2.1.120+

Gerd Knorr (kraxel@goldbach.isdn.cs.tu-berlin.de)
Sat, 12 Sep 1998 15:45:50 +0200 (CEST)


On Sat, 12 Sep 1998, Alan Cox wrote:

> > The sound driver (oss/ad1848) oopses on close if you record sound. Easy
> > to reproduce: just "cat /dev/dsp > /dev/null", hit ^C ==> Oops.
>
> Back this out and try again
>
> diff -u --recursive --new-file v2.1.119/linux/drivers/sound/dmabuf.c linux/driv
> --- v2.1.119/linux/drivers/sound/dmabuf.c Thu Jul 16 18:09:26 1998
> +++ linux/drivers/sound/dmabuf.c Wed Sep 2 13:23:22 1998
> @@ -206,6 +206,7 @@
> dmap->dma_mode = DMODE_NONE;
> dmap->flags &= ~DMA_BUSY;
> disable_dma(dmap->dma);
> + sound_free_dmap(dmap);
> }

No oops any more.

Gerd

-
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/faq.html