|
|
@@ -797,10 +797,11 @@ static int vim2m_start_streaming(struct vb2_queue *q, unsigned count)
|
|
|
static void vim2m_stop_streaming(struct vb2_queue *q)
|
|
|
{
|
|
|
struct vim2m_ctx *ctx = vb2_get_drv_priv(q);
|
|
|
+ struct vim2m_dev *dev = ctx->dev;
|
|
|
struct vb2_v4l2_buffer *vbuf;
|
|
|
unsigned long flags;
|
|
|
|
|
|
- flush_scheduled_work();
|
|
|
+ cancel_delayed_work_sync(&dev->work_run);
|
|
|
for (;;) {
|
|
|
if (V4L2_TYPE_IS_OUTPUT(q->type))
|
|
|
vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
|