** Description changed:
+ [SRU Justification]
+
+ [Impact]
+
+ Some OEM platforms has the camera sensor mounted upside down and it
+ takes the V4L2 vflip/hflip feature to cover the hardware design.
+
+ [Fix]
+
+ While IMX471 is not yet upstreamed, the proposed fixes lives in Intel's
repositories as:
+ * https://github.com/intel/ipu6-drivers/pull/415
+ * https://github.com/intel/ipu7-camera-hal/pull/31
+
+ [Test Plan]
+
+ 1. Locate the device:
+ ```
+ $ media-ctl -p
+ Media controller API version 6.17.13
+
+ Media device information
+ ------------------------
+ driver intel-ipu7
+ model ipu7
+ serial
+ bus info PCI:0000:00:05.0
+ hw revision 0x17aa2355
+ driver version 6.17.13
+
+ Device topology
+ ...
+ - entity 233: imx471 0-001a (1 pad, 1 link, 0 routes)
+ type V4L2 subdev subtype Sensor flags 0
+ device node name /dev/v4l-subdev4
+ pad0: Source
+ [stream:0 fmt:SRGGB10_1X10/1928x1088 field:none]
+ -> "Intel IPU7 CSI2 0":0 [ENABLED,IMMUTABLE]
+
+ ```
+
+ 2. Enumerate supported controls:
+ ```
+ $ v4l2-ctl -l -d /dev/v4l-subdev4
+ User Controls
+
+ exposure 0x00980911 (int) : min=1 max=1290 step=1
default=1270 value=1270 flags=0x00001000
+ horizontal_flip 0x00980914 (bool) : default=0 value=0
flags=0x00001000
+ vertical_flip 0x00980915 (bool) : default=0 value=0
flags=0x00001000
+ ...
+ ```
+
+ 3. Test setting VFLIP/HFLIP:
+ ```
+ $ v4l2-ctl --set-ctrl vertical_flip=1 -d /dev/v4l-subdev4
+ $ v4l2-ctl --get-ctrl vertical_flip -d /dev/v4l-subdev4
+ vertical_flip: 1
+ $ v4l2-ctl --set-ctrl horizontal_flip=1 -d /dev/v4l-subdev4
+ $ v4l2-ctl --get-ctrl horizontal_flip -d /dev/v4l-subdev4
+ horizontal_flip: 1
+ ```
+
+ 4. Check camera streaming:
+ ```
+ $ sudo gst-launch-1.0 icamerasrc ! videoconvert ! autovideosink
+ ```
+
+ [Where problems could occur]
+
+ This adds driver implementation of a device supported feature for V4L2
+ VFLIP/HFLIP control API by writing corresponding values to device
+ register. Simple and straightforward and limited to the device.
+
+ [Other Info]
+
+ N/A.
+
+ ========== original bug description ==========
+
Proposed fixes:
* https://github.com/intel/ipu6-drivers/pull/415
* https://github.com/intel/ipu7-camera-hal/pull/31
** Changed in: ipu6-drivers (Ubuntu Questing)
Status: In Progress => Triaged
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2138841
Title:
support vflip/hflip for Sony IMX471 camera sensor
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipu6-drivers/+bug/2138841/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs