From 54f97478bd94fdbf8b1a9d8dec359ab540830200 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 17 Feb 2014 10:29:34 +0100 Subject: [PATCH] dont drain rec direction --- sndiod/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sndiod/dev.c b/sndiod/dev.c index c6d3451..76b79f4 100644 --- a/sndiod/dev.c +++ b/sndiod/dev.c @@ -884,7 +884,7 @@ dev_full_cycle(struct dev *d) if (s->pstate != SLOT_STOP) s->ops->fill(s->arg); } - if (s->mode & MODE_RECMASK) { + if ((s->mode & MODE_RECMASK) && !(s->pstate == SLOT_STOP)) { if (s->sub.prime == 0) { dev_sub_bcopy(d, s); s->ops->flush(s->arg);