Received: by 10.192.165.148 with SMTP id m20csp1921370imm; Thu, 3 May 2018 07:32:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpzN3D10g2diu+Yom3ENuCVtpmWx6+fpb2aazlEgWK+dCjfNh4NdRFZv4HWiKXoGeki6NtH X-Received: by 10.98.137.219 with SMTP id n88mr23148493pfk.11.1525357938395; Thu, 03 May 2018 07:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525357938; cv=none; d=google.com; s=arc-20160816; b=ZW1Qn68pXyTOylnfvpwjSZ5a4BhtS7Rn454WuGqS40GIBSr4fCtgH6YarOzz4caLWE ZGChIJJdB9GQLYmDFnjTUKup4EP/MjkiFhO9k16f5Jfsix428CyqDTJ5BNsOR7n1iIRs 0M/0CZnqpGvwrhePzS8bQ6p3MFJb6248tNZHPimPT9ge/51bAinepJ7JoOjLCzGJmVo/ uL4CEokxs0Qnmlfcx4vgCxi+GICK2NWuKZg2BzmD7DpkJ4NSSBukl3Kd2g4YOFZwnhRc jxT11ZnHSZgILwVEVfvOXBd754hOjLlMmqelRBQGdPxHQwEeYIJwEqmRsh7cZXMtulEw MwOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=gVIO7nfbQfUhYYNEXvl4sR/EqQFZvl/rBs+tr6CR8+0=; b=LPjMz371JYNYVqm51EsWLdhNOSUZGq6wIpy9YvEehfWrXCQ8GNUm3lxkSrIGyfcW4O +Eml3o/IgX7p/FNU0Oi9eVElwhWKtwv9aTHoJpM2YVKOqks3JCFh88g9l72rJrviR/Ts UZGbKtRsuXZLokk+gJgkCBrBD2Fx5boZz7UBA64VOwAvqh+N0M4iyaaY7VbBRYzuy+OX b0ufhP9iEinwXG+6I3jfXevy4jexcdLBS5a+P/1Jc4HNGXRKD1Xvs8nnoKQZRzJz3gmc s6M4MGHehTIIp73eZAf42RNily0dZan9kGUNQudTMuChpmQWNQNaNCyjbd1AMULCcmeh BYmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh1-v6si8293045plb.481.2018.05.03.07.32.03; Thu, 03 May 2018 07:32:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751234AbeECOaS (ORCPT + 99 others); Thu, 3 May 2018 10:30:18 -0400 Received: from mail.bootlin.com ([62.4.15.54]:56798 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027AbeECOaR (ORCPT ); Thu, 3 May 2018 10:30:17 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 2496D20730; Thu, 3 May 2018 16:30:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id E72EF20702; Thu, 3 May 2018 16:30:14 +0200 (CEST) Date: Thu, 3 May 2018 16:30:15 +0200 From: Maxime Ripard To: Danny Milosavljevic Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Chen-Yu Tsai , Andrea Bondavalli , Fabio Estevam , Icenowy Zheng , Philipp Zabel , Kuninori Morimoto , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v14 1/8] ASoC: sun4i-codec: Add MIC2 Pre-Amplifier, Mic2, Mic Playback Volume Message-ID: <20180503143015.txtwdbt5icpeq4u5@flea> References: <20180502210800.1971-1-dannym@scratchpost.org> <20180502210800.1971-2-dannym@scratchpost.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6kf2zepmquszwjys" Content-Disposition: inline In-Reply-To: <20180502210800.1971-2-dannym@scratchpost.org> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6kf2zepmquszwjys Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 02, 2018 at 11:07:53PM +0200, Danny Milosavljevic wrote: > Add MIC2 Pre-Amplifier, Mic2 input and Mic Playback Volume for Allwinner = A10 > and Allwinner A20. That's a general remark for all your commits here, but you should have more context in your commit logs, for example to define what is the usual use case for these microphones, if the playback volume applies to all mic at once, or just a fraction of them, etc. > Signed-off-by: Danny Milosavljevic > --- > sound/soc/sunxi/sun4i-codec.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) >=20 > diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c > index 9a3cb7704810..060a40b45ab0 100644 > --- a/sound/soc/sunxi/sun4i-codec.c > +++ b/sound/soc/sunxi/sun4i-codec.c > @@ -64,6 +64,7 @@ > #define SUN4I_CODEC_DAC_ACTL_DACAENR (31) > #define SUN4I_CODEC_DAC_ACTL_DACAENL (30) > #define SUN4I_CODEC_DAC_ACTL_MIXEN (29) > +#define SUN4I_CODEC_DAC_ACTL_MICG (20) > #define SUN4I_CODEC_DAC_ACTL_LDACLMIXS (15) > #define SUN4I_CODEC_DAC_ACTL_RDACRMIXS (14) > #define SUN4I_CODEC_DAC_ACTL_LDACRMIXS (13) > @@ -673,11 +674,16 @@ static const struct snd_kcontrol_new sun4i_codec_pa= _mute =3D > SUN4I_CODEC_DAC_ACTL_PA_MUTE, 1, 0); > =20 > static DECLARE_TLV_DB_SCALE(sun4i_codec_pa_volume_scale, -6300, 100, 1); > +static DECLARE_TLV_DB_SCALE(sun4i_codec_micin_loopback_gain_scale, -450,= 150, > + 0); > =20 > static const struct snd_kcontrol_new sun4i_codec_controls[] =3D { > SOC_SINGLE_TLV("Power Amplifier Volume", SUN4I_CODEC_DAC_ACTL, > SUN4I_CODEC_DAC_ACTL_PA_VOL, 0x3F, 0, > sun4i_codec_pa_volume_scale), > + SOC_SINGLE_TLV("Mic Playback Volume", SUN4I_CODEC_DAC_ACTL, > + SUN4I_CODEC_DAC_ACTL_MICG, 7, 0, > + sun4i_codec_micin_loopback_gain_scale), This should probably go in a separate patch, it isn't directly related to the rest of the patch. Looks good otherwise, thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --6kf2zepmquszwjys Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrrHPYACgkQ0rTAlCFN r3RrMBAAgiTZ5QPpaA3dIWexcylnVSMR3cFb9ADeEZ1OPmbmojywMrDEnS8Ob/W0 QcHUDsU27M77wb3VWASSvEhorX7oZMDym39koxoKxOau4Gq1hpQ8SrSgUXu/FlRq zWxxH/5LRrmKld1tj3WKJ21J1Y32UUkM4oU9yVcqXlFkeOu9xToLLPjYbi+BawL/ GktRB4Z6jEZI6/Q8mSY6vVqDuVSgkP0rSvgxh5XH1FqI6SR8FcKJhN8VXmn77Jgm rMyR4mQsgFGNlAN/XQYVBjklZdKiHMBknDB3EYb93BIRySt7DTP6W36Ac/C4vH3G b/5/5v12zVeOr89FF6c7db46by7qHHEFflFRRxhVpPX15fAd33frn5cxHDBcZdBw 2ltIJfc0VA/CzJxMi7IYkdRnqQAZXNCrzavy//NhR5Y74kF+ZBqzc0zseKgbAy3E 0u9PM7Po7ATbpUpc079SmK27oXkBgV9Bg340S9IaRFl5vojEpILgGsTUNi8+ur7E rQgYDyb97H9vUehTCAmlux/XfeUuWja2+9Pvg4CASI2SCAR/Jw2wS1wY6QacVVZk ixmbdfTJ4ZKzV8nNEkfE7ba5WjURfNF+JKKISME87QiObGfUL921mxwhPST6Tqwx Yx2HYopnCdXcSU5QWrfzPadoxvTEg64gK4TOF5smofAzHhQv86A= =fymF -----END PGP SIGNATURE----- --6kf2zepmquszwjys--