** Description changed:

+ [ SRU Justification ]
+ 
+ [ Impact ]
+ 
+ OV08x40, added in v6.2 kernel, has inverted hflip regiter written in
+ `ov08x40_set_ctrl_vflip`. This is fixed by v6.18-rc1 commit
+ c7df6f339af94 ("media: ov08x40: Fix the horizontal flip control").
+ 
+ [ Test Plan ]
+ 
+ 1. Install patched kernel from -proposed kernel and reboot into it.
+ 
+ 2. Find out the device name for ov08x40:
+ ```
+ $ grep -nr ov08x40 /sys/class/video4linux/*/name
+ /sys/class/video4linux/v4l-subdev6/name:1:ov08x40 17-0010
+ 
+ $ sudo v4l2-ctl -l -d /dev/v4l-subdev6
+ 
+ User Controls
+ 
+          exposure 0x00980911 (int)    : min=4 max=4992 step=1 default=4992 
value=2470 flags=0x00001000
+   horizontal_flip 0x00980914 (bool)   : default=0 value=0 flags=0x00001000
+     vertical_flip 0x00980915 (bool)   : default=0 value=0 flags=0x00001000
+ ......
+ ```
+ 
+ 3. Set horizontal flip to 1. The original driver won't have any effect on 
this step, but the patched driver should have video output flipped horizontally:
+ ```
+ $ sudo v4l2-ctl -c horizontal_flip=1 -d /dev/v4l-subdev6 
+ horizontal_flip: 0
+ $ sudo v4l2-ctl -C horizontal_flip -d /dev/v4l-subdev6 
+ horizontal_flip: 1
+ 
+ ```
+ 
+ 4. Use camera app to examine the output. Here an Intel MIPI camera platform 
with ov08x40 camera sensor is used:
+ ```
+ $ sudo gst-launch-1.0 icamerasrc ! videoconvert ! autovideosink
+ ```
+ 
+ [ Where problems could occur ]
+ 
+ No. This writes the right value intro device register only.
+ 
+ [ Other Info ]
+ 
+ While ov08x40 was added at v6.2, nominate for kernels newer than that.
+ 
+ ========= original bug report ==========
+ 
  OV08x40, added in v6.2 kernel, has inverted hflip regiter written in
  `ov08x40_set_ctrl_vflip`. This is fixed by v6.18-rc1 commit
  c7df6f339af94 ("media: ov08x40: Fix the horizontal flip control").
  
  In bug 2084059, an out-of-tree revision of ov08x40 was added to
  ipu6-drivers, and kernel ipu-bridge supported sensors was updated. While
  now the in-tree ov08x40 has been updated to natively support enabled oem
  devices, switch to the in-tree driver whenever possible.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2116170

Title:
  Backport upstream ov08x40 camera sensor updates

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2116170/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to