Re: [PATCH v2 1/3] backlight: pwm_bl: Fix interpolation

2020-10-22 Thread Alexandru Stan
On Wed, 14 Oct 2020 at 23:55, Geert Uytterhoeven wrote: > > Hi Alexandru, > > On Tue, Oct 13, 2020 at 1:57 PM Alexandru Stan wrote: > > Whenever num-interpolated-steps was larger than the distance > > between 2 consecutive brightness levels the table would get really > > discontinuous. The slope

Re: [PATCH v2 1/3] backlight: pwm_bl: Fix interpolation

2020-10-15 Thread Geert Uytterhoeven
Hi Alexandru, On Tue, Oct 13, 2020 at 1:57 PM Alexandru Stan wrote: > Whenever num-interpolated-steps was larger than the distance > between 2 consecutive brightness levels the table would get really > discontinuous. The slope of the interpolation would stick with > integers only and if it was 0

Re: [PATCH v2 1/3] backlight: pwm_bl: Fix interpolation

2020-10-14 Thread Daniel Thompson
On Tue, Oct 13, 2020 at 01:01:01AM -0700, Alexandru Stan wrote: > Whenever num-interpolated-steps was larger than the distance > between 2 consecutive brightness levels the table would get really > discontinuous. The slope of the interpolation would stick with > integers only and if it was 0 the

[PATCH v2 1/3] backlight: pwm_bl: Fix interpolation

2020-10-14 Thread Alexandru Stan
Whenever num-interpolated-steps was larger than the distance between 2 consecutive brightness levels the table would get really discontinuous. The slope of the interpolation would stick with integers only and if it was 0 the whole line segment would get skipped. Example settings: