[media] s5p-jpeg: Synchronize V4L2_CID_JPEG_CHROMA_SUBSAMPLING control value
authorJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 21 Nov 2013 16:33:52 +0000 (13:33 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:01:11 +0000 (12:01 +0900)
commit473960ed02b1e9ec751be3a467e5a865b61747fc
tree4a3da259005b5edff3f7a12b9c2233bfc4eb69c8
parent57702f44bfb9fa9ff4078d6326afc1fb2eff6fb9
[media] s5p-jpeg: Synchronize V4L2_CID_JPEG_CHROMA_SUBSAMPLING control value

When output queue fourcc is set to any flavour of YUV,
the V4L2_CID_JPEG_CHROMA_SUBSAMPLING control value as
well as its in-driver cached counterpart have to be
updated with the subsampling property of the format
so as to be able to provide correct information to the
user space and preclude setting an illegal subsampling
mode for Exynos4x12 encoder.

Change-Id: I342638537b57940d411513a5465bf8449a1d1091
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