Received: by 10.192.165.148 with SMTP id m20csp1936919imm; Thu, 3 May 2018 07:47:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrsFUtJzdePrl2X8D1byF2NgYfiAUO8AGUBQA1IRo3HDo7bylDJIS/IvqG0Cqb4NVQ5ZgTu X-Received: by 2002:a63:7f59:: with SMTP id p25-v6mr19449926pgn.440.1525358855721; Thu, 03 May 2018 07:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525358855; cv=none; d=google.com; s=arc-20160816; b=agfydnLWVhHGaPvezyIYXaRTXkOymT1I9bQXvYMNBzeHbFYa9zLRiqHxDnWoVzCL9z wWliuUuB0RlC+pxCz7vHgQ+y4ibL7OxPn1YaOr474y1L0wOqZUKz99QhJHHSxzGPtW78 Idy45R8hF5S0HAX8gALcacZBN75WRydCuBHkF0DLJ+lCXe2umTeeW+zO4bKe4nYA9UAh 3WuNC7SmG7BZhxYiIygDH1ol4AVPacnnnrZx89D7kYLzZit7jI2puVcQY5hPrpO7eeAh X1ZSWE7vV9O5HXkPN4//WtgSR6O6DgK3YyFwD6fQU+2V7GU1lzEYpMPty/3POuPUSDRW mcuA== 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=K5KUAB5Y2+WOXx6Qb0qeeLbjdOiocw9nr9k1Eqwgu+w=; b=jhIMiednHHzkFlp4f/qzhkYOaS5A+/e4trMY/T4Lm+63NU3K0PxAdg9GHK0GTKQ/Mq kS3WgSqeY61ddcmmhmCjB1BPIxtNS7+BUHw86CPBW3n9bc9F29hfjPRcpZuYDemBu4Ge RUSCcqIkjQFcZCTFBwJ0V4/syIBcZKtieHjf6QsssH6LfZ1MAWeddPsglODzzuVE2QhB CEKuMACr9ZkvB8KK3C+qdyQvsrg1LyIMxZkuIhwuOpVMpcU37qHThdNmmlauZ98VHHa1 uDnmchjpCKA46UDKgWiKQPpjbY6o8mLkKX42Mdq8zljcl7Fmswq1bMOs7eqj+yXcjahF UaNw== 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 s22-v6si14490270plp.216.2018.05.03.07.47.21; Thu, 03 May 2018 07:47:35 -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 S1751590AbeECOqg (ORCPT + 99 others); Thu, 3 May 2018 10:46:36 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57393 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbeECOqa (ORCPT ); Thu, 3 May 2018 10:46:30 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id A08E4206FB; Thu, 3 May 2018 16:46:28 +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 6DA922036F; Thu, 3 May 2018 16:46:18 +0200 (CEST) Date: Thu, 3 May 2018 16:46:19 +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 3/8] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls Message-ID: <20180503144618.oojhvmey44dtg5fa@flea> References: <20180502210800.1971-1-dannym@scratchpost.org> <20180502210800.1971-4-dannym@scratchpost.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vpntmtxfbglbi65s" Content-Disposition: inline In-Reply-To: <20180502210800.1971-4-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 --vpntmtxfbglbi65s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 02, 2018 at 11:07:55PM +0200, Danny Milosavljevic wrote: > Since it's now possible to have a DAPM mixer control with multiple channe= ls, > use it to cut down the total number of controls. >=20 > Keep "Left Mixer Left DAC Playback Switch" and "Right Mixer Right DAC Pla= yback > Switch" name & layout the same as before for compatibility. >=20 > Signed-off-by: Danny Milosavljevic > --- > sound/soc/sunxi/sun4i-codec.c | 32 ++++++++++++++++---------------- > 1 file changed, 16 insertions(+), 16 deletions(-) >=20 > diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c > index 4af286f44a67..b62af407967f 100644 > --- a/sound/soc/sunxi/sun4i-codec.c > +++ b/sound/soc/sunxi/sun4i-codec.c > @@ -715,15 +715,15 @@ static const struct snd_kcontrol_new sun7i_codec_ex= tra_controls[] =3D { > sun7i_codec_micin_preamp_gain_scale), > }; > =20 > -static const struct snd_kcontrol_new sun4i_codec_left_mixer_controls[] = =3D { > - SOC_DAPM_SINGLE("Left DAC Playback Switch", SUN4I_CODEC_DAC_ACTL, > - SUN4I_CODEC_DAC_ACTL_LDACLMIXS, 1, 0), > -}; > - > -static const struct snd_kcontrol_new sun4i_codec_right_mixer_controls[] = =3D { > - SOC_DAPM_SINGLE("Right DAC Playback Switch", SUN4I_CODEC_DAC_ACTL, > - SUN4I_CODEC_DAC_ACTL_RDACRMIXS, 1, 0), > - SOC_DAPM_SINGLE("Left DAC Playback Switch", SUN4I_CODEC_DAC_ACTL, > +static const struct snd_kcontrol_new sun4i_codec_mixer_controls[] =3D { > + SOC_DAPM_SINGLE("Left Mixer Left DAC Playback Switch", > + SUN4I_CODEC_DAC_ACTL, SUN4I_CODEC_DAC_ACTL_LDACLMIXS, > + 1, 0), > + SOC_DAPM_SINGLE("Right Mixer Right DAC Playback Switch", > + SUN4I_CODEC_DAC_ACTL, SUN4I_CODEC_DAC_ACTL_RDACRMIXS, > + 1, 0), > + SOC_DAPM_SINGLE("Right Mixer Left DAC Playback Switch", > + SUN4I_CODEC_DAC_ACTL, > SUN4I_CODEC_DAC_ACTL_LDACRMIXS, 1, 0), > }; > =20 > @@ -759,11 +759,11 @@ static const struct snd_soc_dapm_widget sun4i_codec= _codec_dapm_widgets[] =3D { > =20 > /* Mixers */ > SND_SOC_DAPM_MIXER("Left Mixer", SND_SOC_NOPM, 0, 0, > - sun4i_codec_left_mixer_controls, > - ARRAY_SIZE(sun4i_codec_left_mixer_controls)), > + sun4i_codec_mixer_controls, > + ARRAY_SIZE(sun4i_codec_mixer_controls)), > SND_SOC_DAPM_MIXER("Right Mixer", SND_SOC_NOPM, 0, 0, > - sun4i_codec_right_mixer_controls, > - ARRAY_SIZE(sun4i_codec_right_mixer_controls)), > + sun4i_codec_mixer_controls, > + ARRAY_SIZE(sun4i_codec_mixer_controls)), Doesn't that mean that the controls will be shared between the right and left mixers now, which wasn't the case before? And also, wouldn't the controls be called "Left Mixer Left Mixer Left DAC Playback Switch" (for the first one) now? --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --vpntmtxfbglbi65s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrrILoACgkQ0rTAlCFN r3TWvw/+OdojCTMHIDnyXC2gE1Kd8V6SyYMWF7uF0xVOwS3fGk4FS3qZEGJtqEZ/ v/h57ZzyYPiRZDtg9g3RhYuaefne6kC9EIFuUWkC4I2956UTubynKDFFUSufFIyC 7+E6M0BEe9mtThsBhdOg6Tdj8seoMSqO30rihY8fAcLPnnUN3X2Hpjnn8speCG48 4sDX79tEYMYk5Ih6zxeLe3wtu3P/mCWX5cuNKun2peUgjmVKLzatzL8WpxL6bZiJ nHRT0/uy1Jz6EVgYcZ1aIZEqkC0kgRcXf61veRY9i7FUPmD2qbN4hbV2iQNFaAsd yb4987dc/pwdEWphwuStfjm6Z4rYdqXpKxwIvGGl2Ho1csjczPPSipBiNbe2h9xQ 8CQgZFmAqIh7vh1cKATvj/3sAFWsuEvLZs88sSau1ip0e/0NnIuF69BU537L0pxk wAMlx5PkpXfrJTV51p2izkw2dkmiLWDcy2U6eG/WrHYd8EU1CM53QxGpm570Z4DC X+KBC7l6a+WGgc+OhLMS+g88WOAM81iNLdQCFVzvhbIi7DVitcjzeXyR3RXIHWH8 YMb100EsW0oh1pIkMo86TQYCfMID297S8kU2WZznAoMQpNYnOnG7quJpRUIadKzU 3Byh6cDmcj1bsQqSX0+aVMvAig+FLgY3egOu0iiBNAbWGvYuqZw= =/x6S -----END PGP SIGNATURE----- --vpntmtxfbglbi65s--