mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-15 17:07:07 +07:00
605a410325
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> |
||
---|---|---|
.. | ||
atmel-isi.c | ||
Kconfig | ||
Makefile | ||
mx1_camera.c | ||
mx2_camera.c | ||
mx3_camera.c | ||
omap1_camera.c | ||
pxa_camera.c | ||
sh_mobile_ceu_camera.c | ||
sh_mobile_csi2.c | ||
soc_camera_platform.c | ||
soc_camera.c | ||
soc_mediabus.c |