Received: by 10.192.165.148 with SMTP id m20csp1042847imm; Sat, 5 May 2018 03:41:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqoZNLeiwz/d2zVyYULVPXR3nQ9w53DBGwA0CbTxZXZDf5TFLiu9A9cq8eRmAmYdwASXgjS X-Received: by 2002:a17:902:548f:: with SMTP id e15-v6mr25125694pli.314.1525516888259; Sat, 05 May 2018 03:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525516888; cv=none; d=google.com; s=arc-20160816; b=uMNuHv6GEhi7XgDCJlytcyJNbzxWGEl/gr3oUCWnlgZM0wGquQhBxn7oVu0IqxioZ6 +QreHUWeSCb7EUV1+c2yckK93DHFvydCL2SmPyVThUfnD1D+KkyM7O7prIXZNu5i4UFD K2f3RAkEAocEpAAhQGcfrAFusKKtDGeJodxPIb7J7Nok5YHX8YhLaA0hwYvT0nxvySIH MWRaEVPm3QDE8834el71V/bxCf9vMekJm2kNSW6/IFHrex8xZSfAfzKu3jK3oICBQow3 UvBso0B+hGFiJH7HpsSjnf2OlqoqGGgibF975/N2mODWuy3M3+nQCOxy588KjpiPHOPz bqpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=GkvusZtTNjF1Nu+mKyDEI5gIs59yl6pAYfO/76A47Fk=; b=UlpfVbwHjGH1aFWEfljrqbaEHnBA/PKkAOIehaAvaIY6vqI+lOOz75yM7lr8LUTFXt 8ZJODQbT2CSKfMc5XHURNHyS3EjHiR1bik+eQf022B5AIenPoXoiXHc/9T18E4JVlXzQ Mdut11SbXv0YF80ETQMn9lAIV8aJu0dFfNiQGbs9rfKnhABMAE6WpDpiK8/HKUyaRHZ7 cJlBzB49tpiTaCWQ4CaaTsJcDyEDLPC15KC9ovfkNtbzIw7PTsEF6kfjfNpu54rr/T9/ PsngBw9qFtSq+5SJCSz/KuAdNyx2gsvy9L+BFlQatnF4Dy1ChcD/qa4zL8xQJsOc1QVi usaA== 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 t20-v6si578813pgu.183.2018.05.05.03.41.13; Sat, 05 May 2018 03:41:28 -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 S1751747AbeEEKk7 (ORCPT + 99 others); Sat, 5 May 2018 06:40:59 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:38366 "EHLO dd26836.kasserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbeEEKk6 (ORCPT ); Sat, 5 May 2018 06:40:58 -0400 Received: from localhost (77.118.255.67.wireless.dyn.drei.com [77.118.255.67]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 69D823360DA7; Sat, 5 May 2018 12:40:55 +0200 (CEST) Date: Sat, 5 May 2018 12:40:50 +0200 From: Danny Milosavljevic To: Maxime Ripard 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: <20180505124050.66f74999@scratchpost.org> In-Reply-To: <20180503145408.yymk2ndt4sm2yt4i@flea> References: <20180502210800.1971-1-dannym@scratchpost.org> <20180502210800.1971-9-dannym@scratchpost.org> <20180503145408.yymk2ndt4sm2yt4i@flea> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Exol.Wno/UhQybeCm87A+jH"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Exol.Wno/UhQybeCm87A+jH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Maxime, On Thu, 3 May 2018 16:54:08 +0200 Maxime Ripard wrote: > > +static const char * const sun4i_codec_capture_source[] =3D { > > + "Line", > > + "FM", > > + "Mic1", > > + "Mic2", > > + "Mic1,Mic2", > > + "Mic1+Mic2", > > + "Output Mixer", > > + "Line,Mic1", > > +}; =20 >=20 > 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. Sounds good - but how? Here, "Mic1,Mic2" means the left channel captured is Mic1 and the right channel captured is Mic2. On the other hand, "Mic1+Mic2" means that the signals from Mic1 and Mic2 are added together and that is captured (both as left and as right). "Mic1" means both the left channel and the right channel captured is from Mic1. Likewise "Mic2". --Sig_/Exol.Wno/UhQybeCm87A+jH Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlrtijIACgkQ5xo1VCww uqXnrAf/Xd0Yk0vL15fJLA/PwoWkuJBoKcYEX9enzceDXe+c63KP2DnPzRchI+Au qmPk3pQg/1DmcgYuKINKf8iaynvJHprovYFWlc3/paYTa/Nf8buucOJvLaSpGX4d 4+WzB3XTSmHz/VXtYyBKPMof1/yUutS8JC8UYfKsAqQ2VfCzmYsS49TfYwRTAZmx QHn7mC2VOLJNMURGUDs2YnQGykwaLaAQEgzD5cwHYZ9Sf6qADXcBEdOhWFGBVo8w 1hsl+lCQmM64ncbudP6eiZ8dZO0SDZgrTDKpSWrUlVXE8SGLzORaRZIZkf3OcttG 00X1m3gBGbb0pXEoZwUyXuE8dpgLSg== =d3Hv -----END PGP SIGNATURE----- --Sig_/Exol.Wno/UhQybeCm87A+jH--