[Sound-open-firmware] [PATCH 3/3] dai: stop the DAI on any state other than active
Liam Girdwood
liam.r.girdwood at linux.intel.com
Fri Sep 22 01:32:35 CEST 2017
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/audio/dai.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/audio/dai.c b/src/audio/dai.c
index 2101e00..84c8bba 100644
--- a/src/audio/dai.c
+++ b/src/audio/dai.c
@@ -83,7 +83,7 @@ static void dai_dma_cb(void *data, uint32_t type, struct dma_sg_elem *next)
tracev_dai("irq");
/* is stream stopped or paused ? */
- if (dev->state == COMP_STATE_PAUSED) {
+ if (dev->state != COMP_STATE_ACTIVE) {
/* stop the DAI */
dai_trigger(dd->dai, COMP_CMD_STOP, dev->params.direction);
--
2.11.0
More information about the Sound-open-firmware
mailing list