Received: by 10.192.165.148 with SMTP id m20csp1944851imm; Thu, 3 May 2018 07:55:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoBQUn82XM+OIQBstwzrw3SHWs+eW4LaJSIV+MCBknT3nAm0Nzo7nH3Tq7PD6onQPa7kHwq X-Received: by 10.98.200.152 with SMTP id i24mr23573300pfk.35.1525359345335; Thu, 03 May 2018 07:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525359345; cv=none; d=google.com; s=arc-20160816; b=yBsfRKdGwmOOIE9A8A96pleg+s+FdGhNFzvhdFu/zyht1i+XwXS07Li2huJF4byYZr IkNJeYqIzr121EpOB9QSdWFwA4sfJq0jI+/AM6RmrUdTc4m2TkJBiu0vEMoSYOINlK9q 0TH2tAvZIh9Tgc2MQJ3L1NFBrOtl/n+5TB4kiPbgGViWcJcJW9EwiaUCl7GuZiMNeddL xOLqq/g2CuwZS8zVPHVF4IrdmrPZ8Yl5Uxlp5YweMl6w2INSozj+GBDRDdkPlUz4giaP Dvt9KHj3Nmh+iU7+onk6F3XwFs46+NvMUJ3/1clAGnZa1j7j+8lAvh70Rnu6fKV0pRIz GngA== 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=7i5jZUmzkaKszRCIsp0sJlVsF9fTRguaEIpWMqQl7ew=; b=vrMwS9Q7uZjOiHOn5o7hfvmA873Nk7xO5lyUjKwg3zSBgAxIUmU7khlJWOlCsORQeU okaLgsLPY0U/EDYa11Bsz8ndnqpUsH7l4BdzoUcS0DqIHdHrlRUHCsOkj4hukGrglQFW M9XqLCXE3WtVxhnsELowU9Lj5GYfHHKYNP8+aHMs6KSvHfvUHDXWVyR98yngIz1qKYf4 q4pPimZZP8hxr4bbCszFC2NuehPJjhr8qTVcAVIXBskYiK4mrq6lxK7rNRwEIA3TDrgO EGUwOeUmkMdBFFXW8qjwLU3emI76KjsbQ+fIgBPg5waMzA/vPPivQtR6WVDoZfTUu9WQ KIKw== 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 v41-v6si13908151plg.451.2018.05.03.07.55.31; Thu, 03 May 2018 07:55:45 -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 S1751771AbeECOys (ORCPT + 99 others); Thu, 3 May 2018 10:54:48 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57783 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456AbeECOyq (ORCPT ); Thu, 3 May 2018 10:54:46 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 0837720A20; Thu, 3 May 2018 16:54:44 +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 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 D9D6F207D4; Thu, 3 May 2018 16:54:07 +0200 (CEST) Date: Thu, 3 May 2018 16:54:08 +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 8/8] ASoC: sun4i-codec: Add Left Capture Select, Right Capture Select Message-ID: <20180503145408.yymk2ndt4sm2yt4i@flea> References: <20180502210800.1971-1-dannym@scratchpost.org> <20180502210800.1971-9-dannym@scratchpost.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="odizj5wdfscxpmbv" Content-Disposition: inline In-Reply-To: <20180502210800.1971-9-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 --odizj5wdfscxpmbv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, May 02, 2018 at 11:08:00PM +0200, Danny Milosavljevic wrote: > Add Left Capture Select and Right Capture Select for Allwinner A10 and > Allwinner A20. >=20 > Signed-off-by: Danny Milosavljevic > --- > sound/soc/sunxi/sun4i-codec.c | 50 +++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 50 insertions(+) >=20 > diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c > index 45dcb80a1da9..1a4ba3bae5da 100644 > --- a/sound/soc/sunxi/sun4i-codec.c > +++ b/sound/soc/sunxi/sun4i-codec.c > @@ -706,6 +706,25 @@ static DECLARE_TLV_DB_RANGE(sun7i_codec_micin_preamp= _gain_scale, > 0, 0, TLV_DB_SCALE_ITEM(0, 0, 0), > 1, 7, TLV_DB_SCALE_ITEM(2400, 300, 0)); > =20 > +static const char * const sun4i_codec_capture_source[] =3D { > + "Line", > + "FM", > + "Mic1", > + "Mic2", > + "Mic1,Mic2", > + "Mic1+Mic2", > + "Output Mixer", > + "Line,Mic1", > +}; Shouldn't that be defined in a more generic way? As far as I know, there's no way to tell what the difference between "Mic1,Mic2" and "Mic1+Mic2" would be from the userspace. I guess the larger issue is that you'd need to have controls that are common to both channels (ie that would change the routing of both mixers), but aren't sharing the same controls structure since the label would be different. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --odizj5wdfscxpmbv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrrIo8ACgkQ0rTAlCFN r3R4ihAAjeNAv1d3i+hQ8vO6K4uLt/wziSi+/U0/a8axRtU4M0XrmgIdoE2BIAJK clXkJWbn/CU9k5ooKT9c55hUV3oLrgCzmRNzczBTEpfGxN7aJVlOWNZAOMeMn/Mc zDC/pupLe/vXHu7GyGOV4Osw8vON18SUcIy60dN6PcXbqYeujMnaEBQufJ2ny1ld ltn4Q/AAK6GsgIkn4O3dMZeiuadYe6FwEr8SjWgwoqSLyE2/I+7tNfhvdvfPrT9J 1H4euJ+KPjabeBX6tro3lsQjKDZtlJ9N+CmpKOdwvH1Bi0j80Ai8Zi0NRZ698UCy MFJGpk5AxBwnZ2A3lrSvNWjKNa79/Ehwkghx5QxlrKculDTRBp9SxSEZPeTxBHiO fTjpU7rsSv4YhZ/8Rod12nyQIBu8mh7IIiqJKdWnFBXtOp+JEV2hjBgwc2bh+Fkf mxVYHVhbO8EzZ1xGr+ENt24zFw1uvtItcRHzAqGaMlBTEql+wIa2ngMAiQ+oE8Ey 6QBuDWTYHOHz1sIzfDxIhp84aO5HDdhV+eJiJwP28LvtRC1IPRoomoxTNC48LNaX q0ZeMm+4fGgb+ZbOyMNMBS/M5Axj4+vJLG6N5X9PosDbBg6JeNYhoHcAviY8wbpm jjS69VenVoYvGJh2/0wLOdrXwL1uUoZzsSTiYJP3pOPvquD6j1o= =T22u -----END PGP SIGNATURE----- --odizj5wdfscxpmbv--