[media] media: coda: ignore coda busy status in coda_job_ready
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 25 Jul 2012 13:46:09 +0000 (10:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Sep 2012 19:35:54 +0000 (16:35 -0300)
job_ready is supposed to signal whether a context is ready to be
added to the job queue, not whether the CODA is ready to run it
immediately.
Calling v4l2_m2m_job_finish at the end of coda_irq_handler already
guarantees that the coda is ready when v4l2-mem2mem eventually tries
to run the next queued job.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c

index 9223693b9a8db0551eef79a0e6dc993027ccaae6..01a8fe3e17f944db0563f8fdf0b86d7566f380ec 100644 (file)
@@ -743,12 +743,6 @@ static int coda_job_ready(void *m2m_priv)
                return 0;
        }
 
-       if (coda_isbusy(ctx->dev)) {
-               v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev,
-                        "not ready: coda is still busy.\n");
-               return 0;
-       }
-
        v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev,
                        "job ready\n");
        return 1;