[media] s5p-jpeg: Adjust g_volatile_ctrl callback to Exynos4x12 needs
authorJacek Anaszewski <j.anaszewski@samsung.com>
Wed, 18 Dec 2013 14:14:00 +0000 (11:14 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 18 Dec 2013 13:51:47 +0000 (11:51 -0200)
commit303b0a96f02c35ba5dfb460dd17c7f70b9da4003
treedabf03d62e612c31893e5c8da0fdb13e7a3bcc9b
parent11fbea3ef3d2d47c5cba37cf275f043cb41ddbc7
[media] s5p-jpeg: Adjust g_volatile_ctrl callback to Exynos4x12 needs

Whereas S5PC210 device produces decoded JPEG subsampling values that
map on V4L2_JPEG_CHROMA_SUBSAMPLNG values, the Exynos4x12 device
doesn't. This patch adds helper function s5p_jpeg_to_user_subsampling,
which performs suitable translation.

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