]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-jpeg: Add JPEG controls support
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 17 Feb 2012 14:39:36 +0000 (11:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 1 Mar 2012 20:10:30 +0000 (17:10 -0300)
commitfb9e103b9d4f06e6c573eb5ebceb6f75dacb44fd
tree1c8ce26e608bd8a90765d05f1f7fe463d6a4ca0f
parent662a8104c8ebf0fb1bc98f952fe28082c537277f
[media] s5p-jpeg: Add JPEG controls support

This patch replaces VIDIOC_S/G_JPEGCOMP ioctl handlers with
V4L2_CID_JPEG_QUALITY control. Additionally it enables JPEG subsampling
and the restart interval configuration through V4L2_CID_JPEG_SUBSAMPLING
and V4L2_CID_JPEG_RESTART_INTERVAL controls. For the decoder video node
only V4L2_CID_JPEG_SUBSAMPLING is available as a read-only control.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-jpeg/jpeg-core.c
drivers/media/video/s5p-jpeg/jpeg-core.h
drivers/media/video/s5p-jpeg/jpeg-hw.h