is_dma_done
if (!is_dma_done(s))
bool is_dma_done(struct cobalt_stream *s);
if (!wait_event_timeout(s->q.done_wq, is_dma_done(s),