summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pcm/channel.c')
-rw-r--r--sys/dev/sound/pcm/channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index 74ce10f..9fd4e4a 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -1161,7 +1161,8 @@ chn_init(pcm_channel *c, void *devinfo, int dir)
int
chn_kill(pcm_channel *c)
{
- chn_trigger(c, PCMTRIG_ABORT);
+ if (c->flags & CHN_F_TRIGGERED)
+ chn_trigger(c, PCMTRIG_ABORT);
while (chn_removefeeder(c) == 0);
free(c->feeder->desc, M_DEVBUF);
free(c->feeder, M_DEVBUF);
OpenPOWER on IntegriCloud