]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] s5p-jpeg: Ensure setting correct value of the chroma subsampling control
authorJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 21 Nov 2013 16:34:01 +0000 (13:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 18 Dec 2013 13:50:24 +0000 (11:50 -0200)
commit11fbea3ef3d2d47c5cba37cf275f043cb41ddbc7
treeb1a2fa2b7dce835e283db98212f48783d45fc1a6
parent4a30d30b87e5aa444a7f5983cd5b7d2466f4cb31
[media] s5p-jpeg: Ensure setting correct value of the chroma subsampling control

Exynos4x12 has limitations regarding setting chroma subsampling
of an output JPEG image. It cannot be lower than the subsampling
of the raw source image. Also in case of V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY
option the source image fourcc has to be V4L2_PIX_FMT_GREY.
This patch implements try_ctrl callback containing mechanism that
prevents setting invalid value of the V4L2_CID_JPEG_CHROMA_SUBSAMPLING
control.

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