]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx: imx7-media-csi: Fix video field handling
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 10 Mar 2020 16:06:29 +0000 (17:06 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Mar 2020 16:31:06 +0000 (17:31 +0100)
commit1c81ad1ec5f1e83eea9f9243bfdd2f28aee68239
treed8d334b4ce13fb6c7f9c7686fd6531f7c7af1133
parentb599f15c4ed5c9a1deb55771647e1f1192d907e8
media: imx: imx7-media-csi: Fix video field handling

Commit ef5ecd836017 ("media: imx: Try colorimetry at both sink and
source pads") reworked the way that formats are set on the sink pad of
the CSI subdevice, and accidentally removed video field handling.
Restore it by defaulting to V4L2_FIELD_NONE if the field value isn't
supported, with the only two supported value being V4L2_FIELD_NONE and
V4L2_FIELD_INTERLACED.

Fixes: ef5ecd836017 ("media: imx: Try colorimetry at both sink and source pads")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c