Re: [PATCH v2] media: i2c: ov13858: cap analogue gain at 15.5x
From: Emfox Zhou
Date: Thu Nov 12 2026 - 09:49:21 EST
Hi Sergey,
Tested-by: Emfox Zhou <emfox@xxxxxxxxxx>
Same conclusion here, from a Surface Pro 8 (Tiger Lake, IPU6) on 7.4-rc2 with
libcamera 0.8 and its software ISP.
I did not measure raw Bayer the way you did, so I cannot add points to your
table, but a manual gain sweep at a fixed exposure shows the same ceiling.
Requesting 4x, 8x, 16x, 32x and 64x and taking the mean of the centre crop
after the ISP:
4x 35
8x 53
16x 77
32x 77
64x 77
Above about 0x7c0 nothing more comes back, which is consistent with your 0x800
and up entries.
What I can add is the loop's side of it. With the control left at 0x1fff the
auto exposure parks at 63.99 and stays there; with v2 applied it settles at
15.5 instead, and the picture settles to about 101 (8-bit luma) over the tail
of a twelve frame capture.
One thing I noticed and did not chase: with ANA_GAIN_MIN left at 0 the first
frames of a stream request gain 0, i.e. 0x0000 in 0x3508. It recovers within
four frames so I am not asking for a change, but ov13b10 and ov08x40 both use
0x80 as their minimum, and 0x80 is also this driver's default.
Thanks,
Emfox