Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp241645lqt; Mon, 18 Mar 2024 06:48:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk9rrk9AsBXXJJ6RAXIC42V+q0RacnsJtoZHonI9xt4/sZOGlDlck7lRIWatoC8r+y7Rht6qJi3bHjYicAA3b1v6xwC4EZBxqtx4R8RQ== X-Google-Smtp-Source: AGHT+IFQHmH1VenHQLo9DADe9rHbjlEU3c+9oXgJL5mwtPBGjjz+KXKXQt4r+1FLDyb2vwh97JII X-Received: by 2002:a05:6402:c41:b0:568:9ba8:8f14 with SMTP id cs1-20020a0564020c4100b005689ba88f14mr12001203edb.24.1710769728303; Mon, 18 Mar 2024 06:48:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710769728; cv=pass; d=google.com; s=arc-20160816; b=Ap8hQzJVp4Pt5HvenAQmtXWM84tStoN13jZhu5jEvcg9ts1YVgeUlzK24bZ3XgALma CeEtOAi9g5sYhHy90dKuku/7yUG9w2/tbNwpGcCNhJF24rnK7flT7kr5CfffIeLaqMMK 0ECdMpQ06R/D4QIPyMSUv0Ssao0pmP0K7a9BNRJ9xETMOlXaNaHwvzp45gaiHRaSXKUY FArk7DPJNBBTgmASbirdYE2Z76rz5U+jiLYOS/hYM4wCOclzPVoyXfW/zXP09CZL4hXq wTsgjYWdwtG6nOTwiOq2ohuJdEZtIsqA9RT4KiEOjUPB1Ol///HMxoyHqCduMD075vBE sM7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3GBWEr1It8R41sShZ54TFgHzrm30PtqWygNV3HTm324=; fh=U+ASR9UV1HIqj+u5s7M55SUZ/iUeuFZkwz3JAkiJnzc=; b=AFExSwAYUBNh5Ur4JHI+dFEL7cdY3Gf6yjSyeeEO+VxTvfXdTNlc5oDleFTRQ9fffp bRdisMrxnaZ286oeelwIQwpZNwBBPL4sLM75wwwF26deSDjxIphe3N8lGhihgIXtTsiX VWAXLKvdnN8A7y2CVZWHY+N2QIc5gyFKIg5lYRgRkXtZ2pGRPoD71a0osFQ4YU6TovkD Exbip988EOFvZuuGHDy0dfZMQz8CRady0oAAOxSHDNZR5q8lf9r5PKBMuu16msuVRe1z EHHxq6TKqc0+E5EsRp/KhgVU+VXXrn6hbUU6I8XgkSVCLF2fBdTkKLPewxy87mYOj3Li SwjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DKkpVxKx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fd21-20020a056402389500b005689f3d6937si4427784edb.349.2024.03.18.06.48.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 06:48:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DKkpVxKx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id ECF3D1F2267E for ; Mon, 18 Mar 2024 13:48:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E39054AED3; Mon, 18 Mar 2024 13:48:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DKkpVxKx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 024A44AED2; Mon, 18 Mar 2024 13:48:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710769719; cv=none; b=Tx5OBXUNTIb8V+g+df3PQtgNqCFMafmxBAEbKsa+vmwBiAJVoUNFTQb3C1lyCJWnbPW65hsQuZ4pAvLeXGSlDuGSg0s9oFjEPj75umRPJio5caRWL23tkr2D9f2PNcXKzi+YbKNS3PPTNUqtPhDxSzx0H5dEGgEN9X3RwC4RCWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710769719; c=relaxed/simple; bh=MHoHwr0eDPD5cgVd1+iwqRgWIVLOzhoSjzj/dQkgH/M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DLQn7ULMrmlVxLRMf4+dM3xQYaq9SPn4ceHuOIldoirkdqnh/VlXfu+KOiJb4aKnsKxLDIELJerXAnzbtgapHvaDQeMNzoO0j71bpaJQTJKBVyc7VbysIMKJ4/JC3KlSppOh4KC2wi+bIhW0qlRxGRnShIOPuRRt3WC4Nnc7NRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DKkpVxKx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1095BC433F1; Mon, 18 Mar 2024 13:48:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710769718; bh=MHoHwr0eDPD5cgVd1+iwqRgWIVLOzhoSjzj/dQkgH/M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DKkpVxKxY7h9v+lH5UT2+3Yhzkji9Pqcx33yJYLYim45vOo92XuYMu+YsHi1ZhZwG fc9Kinal7Gz43JO9X6EBtVPVJCa1KqGDeTMjMwSQb2cw9+nUNz28XZMOze6O1MLI0h 5KMZotzvi/hfqpFn29SDRG0ZiAYMYaMJMcyWl527F8xnrvyortoF9cxBPADf3dH1ek XXUJlYYrGd9CKFAxhjwbp1ORhxlvSc9ZgcC8dEj2fdtNa6b3cfkExJIlFD+vZcTijm M0lnpXAg63TlsHu/H9VvpHn83Ki149ZsnCePdDElv4ZWROEyOXFnYSWSNT6WCSeekd QLkjCGvBD0jXA== Date: Mon, 18 Mar 2024 13:48:31 +0000 From: Mark Brown To: Jan Dakinevich Cc: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Kevin Hilman , Martin Blumenstingl , Liam Girdwood , Linus Walleij , Jaroslav Kysela , Takashi Iwai , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-gpio@vger.kernel.org, kernel@salutedevices.com Subject: Re: [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family Message-ID: <30dadd4c-de10-43a7-baf8-8ddd49f5c80e@sirena.org.uk> References: <20240314232201.2102178-1-jan.dakinevich@salutedevices.com> <20240314232201.2102178-13-jan.dakinevich@salutedevices.com> <5f8e8cd2-f9c4-4961-a85d-a0f3217294e6@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cWXPDKTXShavPzNA" Content-Disposition: inline In-Reply-To: X-Cookie: Alaska: --cWXPDKTXShavPzNA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Mar 17, 2024 at 07:27:14PM +0300, Jan Dakinevich wrote: > Both mic bias and ADC's input mode depends on schematics and should be > configurable. What is the better way to give access to these parameters? > Device tree? Yes. > >> + SOC_SINGLE("ADC Mic Bias Switch", LINEIN_CFG, MICBIAS_EN, 1, 0), > >> + SOC_ENUM("ADC Mic Bias Level", a1_adc_mic_bias_level), > > Why would micbias be user controlled rather than a DAPM widget as > > normal? > Yes, I could use SND_SOC_DAPM_SUPPLY, but it supports only raw values, > and doesn't supports enums. Here, I want to use enum to restrict > possible values, because only these values mentioned in the > documentation that I have. A supply is an on/off switch not an enum. Users should not be selecting values at all. --cWXPDKTXShavPzNA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmX4Ri4ACgkQJNaLcl1U h9DTQAf+Ppr066CVfsvlN/xyNgCUEg1jqhI9r20Nh5lxtnjU+wC1Kcr+iobrATQM TDOweMGu65tzuQZfO6T+CaB8UHXIAHKQStRrDMt60u8hvNbQ1WBBGcNpHZ4aEnH7 dha2+WYeSatRy9dWtHHuumkiG0oMZO93Q9agqdWm0p3dcF/kfp0UsgdfjFXbC0CZ bF5SO0qaSh4sYzmkOWdsGn175ELpN2HMYaAL5R1kaS4QntznG3QCuLXxdOSy6/+7 SByMPu2j+jkFJTHfOQlYZZCDrgZ+czQ4gWszPQuk9LWDTYFrxajuRVwRKXew/GA8 Z0fuEs8wuIMGmSTEXpNJXc/IeEv+nw== =YCeA -----END PGP SIGNATURE----- --cWXPDKTXShavPzNA--