From d3deb9312dc047ed5d02d354dabf1e227f70076c Mon Sep 17 00:00:00 2001 From: cg Date: Mon, 17 Apr 2000 16:57:12 +0000 Subject: make drivers start at beginning of buffer when triggered - improves mmap. not all tested. not sure about aureal.c or csapcm.c --- sys/dev/sound/isa/ad1816.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/sound/isa/ad1816.c') diff --git a/sys/dev/sound/isa/ad1816.c b/sys/dev/sound/isa/ad1816.c index e1bc75e..549ed51 100644 --- a/sys/dev/sound/isa/ad1816.c +++ b/sys/dev/sound/isa/ad1816.c @@ -413,6 +413,7 @@ ad1816chan_trigger(void *data, int go) if (!(io_rd(ad1816, reg) & AD1816_ENABLE)) { int cnt = ((ch->buffer->dl) >> 2) - 1; ad1816_write(ad1816, wr? 8 : 10, cnt); /* count */ + ad1816_write(ad1816, wr? 9 : 11, 0); /* reset cur cnt */ ad1816_write(ad1816, 1, ad1816_read(ad1816, 1) | (wr? 0x8000 : 0x4000)); /* enable int */ /* enable playback */ -- cgit v1.1