[media] s5p-jpeg: Ensure correct capture format for Exynos4x12
authorJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 22 Nov 2013 09:13:34 +0000 (06:13 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 18 Dec 2013 13:49:03 +0000 (11:49 -0200)
commit337777a42d033b3be1a7f9af13eb8f5eb0cdd95a
tree778a56b919c47883d1ab006ddd34dbdc919b1a15
parentf84339628d9224200e9145320da494da2d92cd50
[media] s5p-jpeg: Ensure correct capture format for Exynos4x12

Adjust capture format to the Exynos4x12 device limitations,
according to the subsampling value parsed from the source
JPEG image header. If the capture format was set to YUV with
subsampling lower than the one of the source JPEG image
the decoding process would not succeed.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c