summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/isa/ad1816.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-05-26 21:15:47 +0000
committercg <cg@FreeBSD.org>2000-05-26 21:15:47 +0000
commite7de7487d9f2c8301120a8d7b0764cff65dead8c (patch)
treeef0510b1c060f4f7b7834089dfe7d1fc9ed32632 /sys/dev/sound/isa/ad1816.c
parent8c66999e1dece9580671edf7cd994284f29eacee (diff)
downloadFreeBSD-src-e7de7487d9f2c8301120a8d7b0764cff65dead8c.zip
FreeBSD-src-e7de7487d9f2c8301120a8d7b0764cff65dead8c.tar.gz
handle emulated dma reads
don't try to get sample size from snd_dbuf
Diffstat (limited to 'sys/dev/sound/isa/ad1816.c')
-rw-r--r--sys/dev/sound/isa/ad1816.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sound/isa/ad1816.c b/sys/dev/sound/isa/ad1816.c
index 549ed51..bcf0715 100644
--- a/sys/dev/sound/isa/ad1816.c
+++ b/sys/dev/sound/isa/ad1816.c
@@ -403,7 +403,9 @@ ad1816chan_trigger(void *data, int go)
struct ad1816_info *ad1816 = ch->parent;
int wr, reg;
- if (go == PCMTRIG_EMLDMAWR) return 0;
+ if (go == PCMTRIG_EMLDMAWR || go == PCMTRIG_EMLDMARD)
+ return 0;
+
buf_isadma(ch->buffer, go);
wr = (ch->dir == PCMDIR_PLAY);
reg = wr? AD1816_PLAY : AD1816_CAPT;
OpenPOWER on IntegriCloud