summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-09-05 21:00:45 +0000
committercg <cg@FreeBSD.org>2000-09-05 21:00:45 +0000
commitb878b7cbc66c4809da9c716a0db1e148d0115b78 (patch)
tree54aa670f27c2e07727dddf6d81c73381148656af /sys
parent55b00bdc52f4bcec736dc5fb82b76dd7bafacf17 (diff)
downloadFreeBSD-src-b878b7cbc66c4809da9c716a0db1e148d0115b78.zip
FreeBSD-src-b878b7cbc66c4809da9c716a0db1e148d0115b78.tar.gz
allow a null setdir implementation
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pcm/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index af338628..74ce10f 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -1179,7 +1179,7 @@ chn_setdir(pcm_channel *c, int dir)
int r;
c->direction = dir;
- r = c->setdir(c->devinfo, c->direction);
+ r = c->setdir? c->setdir(c->devinfo, c->direction) : 0;
if (!r && ISA_DMA(&c->buffer))
c->buffer.dir = (dir == PCMDIR_PLAY)? ISADMA_WRITE : ISADMA_READ;
return r;
OpenPOWER on IntegriCloud