[media] coda: split encoder specific parts out of device_run and irq_handler
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 21 Jun 2013 06:55:33 +0000 (03:55 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 31 Jul 2013 18:43:56 +0000 (15:43 -0300)
commit477c1cfe8f8050ce716b3d89be17b33a4a80fc9d
treeca2e4dd232ce5b2d37a2587766615a64c2ec34f7
parent8358e76c14ab4103f27bf2258fbf6dae4cceac8b
[media] coda: split encoder specific parts out of device_run and irq_handler

Add coda_prepare_encode() and coda_finish_encode() functions. They are called
from coda_device_run() and coda_irq_handler(), respectively, before and after
the hardware picture run. This should make the following decoder support patch
easier to read, which will add the coda_prepare/finish_decode() equivalents.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/coda.c