Skip to content
Commit 5f32a27f authored by Naushir Patuck's avatar Naushir Patuck Committed by Meng Li
Browse files

media: i2c: imx296: Add horizontal/vertical flip support

commit  df4311d26614414882adde1b91fcc327890b184d from
https://github.com/raspberrypi/linux.git

 rpi-6.1.y

Add support for setting horizontal and/or vertial flips in the IMX296
sensor through the V4L2_CID_HFLIP and V4L2_CID_VFLIP controls.

Add a new helper function to return the media bus format code that
depends on the sensor flips.

Grab the V4L2_CID_HFLIP and V4L2_CID_VFLIP controls on stream on, and
release on stream off to ensure flips cannot be changed while the sensor
is streaming.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
Signed-off-by: default avatarMeng Li <Meng.Li@windriver.com>
parent 49fc19e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment