From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC0D3C4321A for ; Fri, 28 Jun 2019 08:18:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8A825214AF for ; Fri, 28 Jun 2019 08:18:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726706AbfF1ISJ (ORCPT ); Fri, 28 Jun 2019 04:18:09 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48101 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726431AbfF1ISJ (ORCPT ); Fri, 28 Jun 2019 04:18:09 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 713FE8063E; Fri, 28 Jun 2019 10:17:55 +0200 (CEST) Date: Fri, 28 Jun 2019 10:18:06 +0200 From: Pavel Machek To: Daniel Thompson Cc: Matthias Kaehlcke , Thierry Reding , Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , linux-pwm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Enric Balletbo i Serra , Douglas Anderson , Brian Norris , Jacek Anaszewski Subject: Re: [PATCH v2 4/4] backlight: pwm_bl: Set scale type for brightness curves specified in the DT Message-ID: <20190628081806.GA31375@amd> References: <20190624203114.93277-1-mka@chromium.org> <20190624203114.93277-5-mka@chromium.org> <20190626145617.GB22348@xo-6d-61-c0.localdomain> <20190628075516.dwev7fxz7kmox2i2@holly.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20190628075516.dwev7fxz7kmox2i2@holly.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2019-06-28 08:55:16, Daniel Thompson wrote: > On Wed, Jun 26, 2019 at 04:56:18PM +0200, Pavel Machek wrote: > > On Mon 2019-06-24 13:31:13, Matthias Kaehlcke wrote: > > > Check if a brightness curve specified in the device tree is linear or > > > not and set the corresponding property accordingly. This makes the > > > scale type available to userspace via the 'scale' sysfs attribute. > > >=20 > > > To determine if a curve is linear it is compared to a interpolated li= near > > > curve between min and max brightness. The curve is considered linear = if > > > no value deviates more than +/-5% of ${brightness_range} from their > > > interpolated value. > >=20 > > I don't think this works. Some hardware does takes brightness in percep= tual units, > > converting it in the LED controller. >=20 > This check is exclusive to PWM backlights so I'd like to double check > that you are thinking specifically of hardware that takes it's signal > from the PWM and works in perceptual units? I missed that details. Taking PWM input then converting it to perceptual units would indeed be strange. Sorry, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --gKMricLos+KVdGMg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0VzT4ACgkQMOfwapXb+vJHvwCfXWJZfJ+NpPdPg9PEDds9PM6A 2PkAoKvMuJ+sLPxMlK+cBeBefsVNKEOi =vu5D -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--