[media] coda: move cache setup into coda9_set_frame_cache, also use it in start_encoding
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 16 Jul 2015 16:19:37 +0000 (13:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 14:27:17 +0000 (11:27 -0300)
commit4e447ff199cfc4bc04ddb515d3d9ab46bb19530a
tree07c658bc54c8ca342f935dfc8ce83a87a3d04d55
parentcde29ef313de391ec9a1e461458274623ab1eb87
[media] coda: move cache setup into coda9_set_frame_cache, also use it in start_encoding

The frame cache should be set up correctly to encode NV12 source frames.
This was not done before, so move the cache setup out of start_decoding
into its own function and call it from both start_encoding and
start_decoding.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-bit.c