aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/v4l2-ioctl.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2019-12-15 17:59:13 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-01-04 08:17:14 +0100
commitcf9e6d5dbdd56ef2aa72f28c806711c4293c8848 (patch)
tree71a9a641e9ae76188c7272fc182edc08f2e37062 /drivers/media/v4l2-core/v4l2-ioctl.c
parent7866d6903ce88b1b359202f4be0422aa6a70a4a2 (diff)
media: sun4i-csi: Fix data sampling polarity handling
The CLK_POL field specifies whether data is sampled on the falling or rising edge of PCLK, not whether the data lines are active high or low. Evidence of this can be found in the timing diagram labeled "horizontal size setting and pixel clock timing". Fix the setting by checking the correct flag, V4L2_MBUS_PCLK_SAMPLE_RISING. While at it, reorder the three polarity flag checks so HSYNC and VSYNC are grouped together. Fixes: 577bbf23b758 ("media: sunxi: Add A10 CSI driver") Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ioctl.c')
0 files changed, 0 insertions, 0 deletions