HANDLING OF GAIN AND PHOTODIODE SIZE (PD)(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… Handling of gain and photodiode size (PD) πŸ’…

okay bestie, this is a Kernel API Manual page, section (9), and it's literally about how gain and photodiode size (PD) team up in the driver. no cap 🫢

So here's the tea: the gains here in the driver are not exactly the same as in the datasheet of the sensor. The gain in the driver is a combo of the gain of the sensor and the photodiode size (PD). iconic, but also a little "math is math" moment 😭

The following combinations are possible:

gain(driver) = gain(sensor) * PD
0.25 = x0.5  * 1/2
0.33 = x0.66 * 1/2
0.5  = x0.5  * 2/2
0.66 = x0.66 * 2/2
1    = x1    * 2/2
2    = x2    * 2/2

That's the whole combo menu β€” every line stays exactly what it is, no remixes πŸ’…


🌸 SEE ALSO 🌸

Kernel file: ./drivers/iio/light/veml6046x00.c

that's the full guest list, bestie β€” don't leave anyone out πŸŽ€

✨ cute sign-off: source/version is ./drivers/iio/light, date is October 2026, and the page is Handling of...de size (PD)(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from