]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: imx-csi: Skip first few frames from a BT.656 source
authorSteve Longerbeam <slongerbeam@gmail.com>
Mon, 17 May 2021 14:29:23 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:15:44 +0000 (16:15 +0200)
commit279dccd556cd780d0ad23ea0d25c9ed231bc187c
treeceb29fb038efb352ce76974072139f27ee789033
parent2f6d707fab64ddfebfb65cc4dacfee9d19ad03a8
media: imx-csi: Skip first few frames from a BT.656 source

[ Upstream commit e198be37e52551bb863d07d2edc535d0932a3c4f ]

Some BT.656 sensors (e.g. ADV718x) transmit frames with unstable BT.656
sync codes after initial power on. This confuses the imx CSI,resulting
in vertical and/or horizontal sync issues. Skip the first 20 frames
to avoid the unstable sync codes.

[fabio: fixed checkpatch warning and increased the frame skipping to 20]

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/imx/imx-media-csi.c