mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
media: ov08x40: Fix the horizontal flip control
[ Upstream commit c7df6f339a ]
The datasheet of ov08x40 doesn't match the hardware behavior.
0x3821[2] == 1 is the original state and 0 the horizontal flip enabled.
Signed-off-by: Hao Yao <hao.yao@intel.com>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Tested-by: Hans de Goede <hansg@kernel.org> # ThinkPad X1 Carbon Gen 12 & Gen 13
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f157d1cb2c
commit
1e79211082
@@ -1564,7 +1564,7 @@ static int ov08x40_set_ctrl_hflip(struct ov08x40 *ov08x, u32 ctrl_val)
|
||||
|
||||
return ov08x40_write_reg(ov08x, OV08X40_REG_MIRROR,
|
||||
OV08X40_REG_VALUE_08BIT,
|
||||
ctrl_val ? val | BIT(2) : val & ~BIT(2));
|
||||
ctrl_val ? val & ~BIT(2) : val | BIT(2));
|
||||
}
|
||||
|
||||
static int ov08x40_set_ctrl_vflip(struct ov08x40 *ov08x, u32 ctrl_val)
|
||||
|
||||
Reference in New Issue
Block a user