[PATCH 0/2] media: mira016 gain model updates

From: Jacopo Mondi

Date: Tue Nov 24 2026 - 11:51:45 EST


A few updates for the mira016 driver which just got merged in
media-committers/next at the beginning of the v7.5 cycle.

The bulk of the work is the reworking of the gain handling which was
previously modeled using lookup tables and is now calculated. Thanks
Philippe for the investigation and the effort. This makes the libcamera
integration easier as we can drop tables from the camera helpers there
as well.

I would really like this patch to be collected for 7.5 together with the
driver, so that we don't have one release with the previous index-based
analogue gain interface to maintain compatibility with.

Tested in 8 and 10 bits modes, by applying a manual gain and validating
the actual image brightness changes accordingly.

CI pipeline:
https://gitlab.freedesktop.org/linux-media/users/jmondi/-/pipelines/1802703

Signed-off-by: Jacopo Mondi <jacopo.mondi@xxxxxxxxxxxxxxxx>
---
Philippe Baetens (2):
media: mira016: Update the gain model
media: mira016: Update 8-bit gain init sequences

drivers/media/i2c/mira016.c | 147 ++++++++++++++++++++++++--------------------
1 file changed, 81 insertions(+), 66 deletions(-)
---
base-commit: b7ac871daee981f1963f632586ff9b9d898ce5dd
change-id: 20261123-mira016-fixes-c2619f82c418

Best regards,
--
Jacopo Mondi <jacopo.mondi@xxxxxxxxxxxxxxxx>