]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] sh-mobile-ceu-camera: fix SHARPNESS control default
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 30 Jan 2013 08:19:56 +0000 (05:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Feb 2013 19:25:04 +0000 (17:25 -0200)
The V4L2_CID_SHARPNESS control in the sh-mobile-ceu-camera driver, if off,
turns the CEU low-pass filter on. This is the opposite to the hardware
default and can degrade image quality. Switch default to on to restore the
default unfiltered mode.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c

index 602584dc93308983cc00ff256501a9c49e6db617..bb08a46432f4e7493eaac8baad8ad974c54d67eb 100644 (file)
@@ -1064,7 +1064,7 @@ static int sh_mobile_ceu_get_formats(struct soc_camera_device *icd, unsigned int
 
                /* Add our control */
                v4l2_ctrl_new_std(&icd->ctrl_handler, &sh_mobile_ceu_ctrl_ops,
-                                 V4L2_CID_SHARPNESS, 0, 1, 1, 0);
+                                 V4L2_CID_SHARPNESS, 0, 1, 1, 1);
                if (icd->ctrl_handler.error)
                        return icd->ctrl_handler.error;