From: Mark Brown Subject: Re: [PATCH] ASoC: nau8824: user configuration of key detection Date: Thu, 22 Mar 2018 10:07:14 +0800 Message-ID: <20180322020714.GA2186@sirena.org.uk> References: <1521617423-2213-1-git-send-email-KCHSU0@nuvoton.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2078738598596256976==" Return-path: Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 009BE267396 for ; Thu, 22 Mar 2018 03:07:19 +0100 (CET) In-Reply-To: <1521617423-2213-1-git-send-email-KCHSU0@nuvoton.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: John Hsu Cc: WTLI@nuvoton.com, YHCHuang@nuvoton.com, alsa-devel@alsa-project.org, CTLIN0@nuvoton.com, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org --===============2078738598596256976== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/ZA50yAHVNnbRucb" Content-Disposition: inline --/ZA50yAHVNnbRucb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 21, 2018 at 03:30:23PM +0800, John Hsu wrote: > The SAR ADC of key press detection varies depending on headset. > We can't make a set of common threshold values for every case. > Therefore, the driver provides configuration for user and > they can set up values by UCM configuration. It's more normal for this configuration to be done as part of the platform bindings for the device, with the values being tuned based on the in box headset and the tastes of the system integrator, seeing this exposed as a userspace control is a bit surprising - what motivated that? If we are going to have this tunable from userspace we probably want a standard interface for it so that the userspace software can work more generally. However that's a bit tricky as the tunable parameters are going to vary... --/ZA50yAHVNnbRucb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlqzD9EACgkQJNaLcl1U h9DDCwf9Er1Y8Rqa/USkenrDJBcq/E05USI8E+iEEA2Bsdo24ShVFRv1dTrBMf5t s51AuyeUQSfLW/++Ls1AVRbQMVe6JbsUGenIxUPWwX22kTUv2aFjwcY2EHjPo4S7 lddpttxzo9YutIuBC/HfCBJ3KUnyt0YYSf0RHciMbOZaVvM0kqgiu2aWR3YqmA5t Cuy5LCpMeu0dxaSNN4D5Pp7dHY8K9MG/6Mw44P/a92FgHxJZ4pQhYqCL8sd8l8zJ hPWF9vWBMBrVIUAa4v1Odx+ebtxXVQv6ySMyAmwVzdUI4XrYiVzml33RvA7KbmzF rBxTsIOjTCxvwub69MK56toRByn3WA== =NniR -----END PGP SIGNATURE----- --/ZA50yAHVNnbRucb-- --===============2078738598596256976== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2078738598596256976==--