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.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index b3cfbe4..99aa391 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -510,7 +510,7 @@ chn_poll(struct pcm_channel *c, int ev, struct proc *p)
int
chn_abort(struct pcm_channel *c)
{
- int missing = 0, cnt = 0;
+ int missing = 0;
struct snd_dbuf *b = c->bufhard;
struct snd_dbuf *bs = c->bufsoft;
@@ -519,15 +519,6 @@ chn_abort(struct pcm_channel *c)
return 0;
c->flags |= CHN_F_ABORTING;
- /*
- * wait up to 200ms for the secondary buffer to empty-
- * a vchan will never have data in the secondary buffer so we won't sleep
- */
- cnt = 10;
- while ((sndbuf_getready(bs) > 0) && (cnt-- > 0)) {
- chn_sleep(c, "pcmabr", hz / 50);
- }
-
c->flags &= ~CHN_F_TRIGGERED;
/* kill the channel */
chn_trigger(c, PCMTRIG_ABORT);
OpenPOWER on IntegriCloud