diff options
author | cg <cg@FreeBSD.org> | 2000-04-17 16:57:12 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-04-17 16:57:12 +0000 |
commit | d3deb9312dc047ed5d02d354dabf1e227f70076c (patch) | |
tree | 60c0b7d6c1cbb6e60eee35a501fd040b88e7be00 /sys/dev/sound/isa/ad1816.c | |
parent | 672d6047334454b7330149d021cfe16f6596a0d6 (diff) | |
download | FreeBSD-src-d3deb9312dc047ed5d02d354dabf1e227f70076c.zip FreeBSD-src-d3deb9312dc047ed5d02d354dabf1e227f70076c.tar.gz |
make drivers start at beginning of buffer when triggered - improves mmap.
not all tested.
not sure about aureal.c or csapcm.c
Diffstat (limited to 'sys/dev/sound/isa/ad1816.c')
-rw-r--r-- | sys/dev/sound/isa/ad1816.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |