linux_dsm_epyc7002/drivers/media/platform/soc_camera
Anatolij Gustschin 605a410325 [media] soc_camera: fix VIDIOC_S_CROP ioctl
Sometimes VIDIOC_S_CROP ioctl doesn't work, soc-camera driver reports:
soc-camera-pdrv soc-camera-pdrv.0: S_CROP denied: getting current crop failed
The VIDIOC_G_CROP documentation states that the type field needs to be
set to the respective buffer type when querying, so the check in .g_crop()
of the subdevices returns -EINVAL if the type is not set properly. Here the
uninitialized local variable 'current_crop' is passed to the .g_crop() and
this leads to the observed error. Initialize the type field of the local
'current_crop' before get_crop call.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-04 14:59:43 -02:00
..
atmel-isi.c
Kconfig [media] media: mx1_camera: mark the driver BROKEN 2012-11-22 11:26:19 -02:00
Makefile
mx1_camera.c [media] media: mx1_camera: use the default .set_crop() implementation 2012-11-22 10:45:41 -02:00
mx2_camera.c [media] mx2_camera: fix missing unlock on error in mx2_start_streaming() 2012-11-22 10:58:27 -02:00
mx3_camera.c [media] media: mx3_camera: fix const cropping related warnings 2012-11-22 10:44:56 -02:00
omap1_camera.c [media] media: omap1_camera: fix const cropping related warnings 2012-11-22 10:45:59 -02:00
pxa_camera.c [media] media: pxa_camera: fix const cropping related warnings 2012-11-22 10:44:35 -02:00
sh_mobile_ceu_camera.c [media] media: sh_mobile_ceu_camera: fix const cropping related warnings 2012-11-22 10:39:10 -02:00
sh_mobile_csi2.c
soc_camera_platform.c
soc_camera.c [media] soc_camera: fix VIDIOC_S_CROP ioctl 2012-12-04 14:59:43 -02:00
soc_mediabus.c