Skip to content

Commit c65d733

Browse files
authored
Merge pull request #143 from tlauda/topic/dai_capture_xrun
dai: ignore data on capture stop
2 parents 5ea5d5b + 58bc284 commit c65d733

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)