diff options
author | cg <cg@FreeBSD.org> | 2000-09-05 21:00:45 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-09-05 21:00:45 +0000 |
commit | b878b7cbc66c4809da9c716a0db1e148d0115b78 (patch) | |
tree | 54aa670f27c2e07727dddf6d81c73381148656af /sys | |
parent | 55b00bdc52f4bcec736dc5fb82b76dd7bafacf17 (diff) | |
download | FreeBSD-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.c | 2 |
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; |