Skip to content

Commit 58bc284

Browse files
committed
dai: ignore data on capture stop
Ignores data on stopping capture stream. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
1 parent 7a2f8c2 commit 58bc284

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/audio/dai.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ static void dai_dma_cb(void *data, uint32_t type, struct dma_sg_elem *next)
9494

9595
/* inform waiters */
9696
wait_completed(&dd->complete);
97+
98+
/* for capture do nothing to avoid buffer ptr inconsistency */
99+
if (dev->params.direction == SOF_IPC_STREAM_CAPTURE)
100+
return;
97101
}
98102

99103
/* is our pipeline handling an XRUN ? */

0 commit comments

Comments
 (0)