diff options
author | cg <cg@FreeBSD.org> | 2000-09-09 19:21:04 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-09-09 19:21:04 +0000 |
commit | a081b436a34dc6b7c3f1418e1429edbd7a31c3ff (patch) | |
tree | 916a90fe682463a47c2285b9f4bc874b6720fce7 /sys/dev/sound/pcm/channel.c | |
parent | f80149566df17edb15598b2d33d559f831c5edb5 (diff) | |
download | FreeBSD-src-a081b436a34dc6b7c3f1418e1429edbd7a31c3ff.zip FreeBSD-src-a081b436a34dc6b7c3f1418e1429edbd7a31c3ff.tar.gz |
detach support
remove un-needed setdir functions
add bus_teardown_intr calls where necessary
destroy our dma tags where necessary
destroy ac97 before releasing resources
Diffstat (limited to 'sys/dev/sound/pcm/channel.c')
-rw-r--r-- | sys/dev/sound/pcm/channel.c | 3 |
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); |