[PATCH v4] iio: adc: stm32: add oversampling support
Andy Shevchenko
andy.shevchenko at gmail.com
Sat Apr 12 11:07:41 PDT 2025
On Sat, Apr 12, 2025 at 4:26 PM Jonathan Cameron <jic23 at kernel.org> wrote:
> On Thu, 10 Apr 2025 15:58:35 +0200
> Olivier Moysan <olivier.moysan at foss.st.com> wrote:
...
> > The current support of the oversampling feature aims at increasing
> > the data SNR, without changing the data resolution.
> > As the oversampling by itself increases data resolution,
> > a right shift is applied to keep initial resolution.
> > Only the oversampling ratio corresponding to a power of two are
> > supported here, to get a direct link between right shift and
> > oversampling ratio. (2exp(n) ratio <=> n right shift)
I have just noticed the interesting (and perhaps misleading) symbols
in formulas here and in the comment in the code.
I would expect to see the above as 2^n. Because exp makes me think
about e (natural logarithm base) rather than about power.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list