]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: ov02c10: Fix default vertical flip
authorSebastian Reichel <sre@kernel.org>
Wed, 20 Aug 2025 00:13:19 +0000 (02:13 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 29 Oct 2025 13:07:01 +0000 (14:07 +0100)
The driver right now defaults to setting the vertical flip bit. This
conflicts with proper handling of the rotation property defined in
ACPI or device tree, so drop the VFLIP bit. It should be handled via
V4L2_CID_VFLIP instead.

Reported-by: Frederic Stuyk <fstuyk@runbox.com>
Closes: https://lore.kernel.org/all/b6df9ae7-ea9f-4e5a-8065-5b130f534f37@runbox.com/
Fixes: 44f89010dae0 ("media: i2c: Add Omnivision OV02C10 sensor driver")
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Reviewed-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov02c10.c

index 8c4d85dc7922e8eff2d58af11e9cdeac23edc93b..8e22ff446b0c4deb9079c8593a5153f28f5f045b 100644 (file)
@@ -174,7 +174,7 @@ static const struct reg_sequence sensor_1928x1092_30fps_setting[] = {
        {0x3816, 0x01},
        {0x3817, 0x01},
 
-       {0x3820, 0xb0},
+       {0x3820, 0xa0},
        {0x3821, 0x00},
        {0x3822, 0x80},
        {0x3823, 0x08},