summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/vchan.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pcm/vchan.c')
-rw-r--r--sys/dev/sound/pcm/vchan.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c
index 4a70a82..0c5867b 100644
--- a/sys/dev/sound/pcm/vchan.c
+++ b/sys/dev/sound/pcm/vchan.c
@@ -260,7 +260,10 @@ vchan_create(struct pcm_channel *parent)
CHN_UNLOCK(parent);
/* add us to our grandparent's channel list */
- err = pcm_chn_add(d, child, !first);
+ /*
+ * XXX maybe we shouldn't always add the dev_t
+ */
+ err = pcm_chn_add(d, child);
if (err) {
pcm_chn_destroy(child);
free(pce, M_DEVBUF);
@@ -313,7 +316,7 @@ gotch:
parent->flags &= ~CHN_F_BUSY;
/* remove us from our grandparent's channel list */
- err = pcm_chn_remove(d, c, !last);
+ err = pcm_chn_remove(d, c);
if (err)
return err;
OpenPOWER on IntegriCloud