aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2002-07-23 14:50:51 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2002-07-23 14:50:51 +0000
commit61698e0ca17f152a5e60d1252b4534411096fc2a (patch)
tree68d00e10cab90e1f8a2efd5136fcea403dfacff6 /sys/dev
parent58a8e6d20e65ee1606ce8050b60dba11849e5304 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sound/pcm/sound.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index ddf466b6f977c..3f346f32f0e54 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -504,7 +504,8 @@ pcm_addchan(device_t dev, int dir, kobj_class_t cls, void *devinfo)
return err;
}
- if (snd_maxautovchans > 0 && (d->flags & SD_F_AUTOVCHAN)) {
+ if (snd_maxautovchans > 0 && (d->flags & SD_F_AUTOVCHAN) &&
+ ch->direction == PCMDIR_PLAY && d->vchancount == 0) {
ch->flags |= CHN_F_BUSY;
err = vchan_create(ch);
if (err) {