Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752201AbbEFJYO (ORCPT ); Wed, 6 May 2015 05:24:14 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:47243 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbbEFJYL (ORCPT ); Wed, 6 May 2015 05:24:11 -0400 Date: Wed, 6 May 2015 10:24:05 +0100 From: Richard Fitzgerald To: Mark Brown Cc: lee.jones@linaro.org, linus.walleij@linaro.org, gnurou@gmail.com, cw00.choi@samsung.com, myungjoo.ham@samsung.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, ckeepax@opensource.wolfsonmicro.com Subject: Re: [PATCH v3 7/8] ASoC: wm8998: Initial WM8998 codec driver Message-ID: <20150506092405.GA17710@opensource.wolfsonmicro.com> References: <1430493319-23808-1-git-send-email-rf@opensource.wolfsonmicro.com> <1430493319-23808-8-git-send-email-rf@opensource.wolfsonmicro.com> <20150504113943.GB15510@sirena.org.uk> <20150505092411.GA15549@opensource.wolfsonmicro.com> <20150505105327.GZ22845@sirena.org.uk> <20150505133129.GA26101@opensource.wolfsonmicro.com> <20150505215934.GH15510@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150505215934.GH15510@sirena.org.uk> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2681 Lines: 58 On Tue, May 05, 2015 at 10:59:34PM +0100, Mark Brown wrote: > On Tue, May 05, 2015 at 02:31:29PM +0100, Richard Fitzgerald wrote: > > > We can't really tell people what the selection does because that depends on > > the external hardware. The A setting might be a headset mic, or a line in, > > or a builtin mic... > > > All we can do is say what the selection is called generically by the codec. > > So take the IN1L signal, on the codec it has two inputs "A" and "B". The > > IN1L Mux control has two settings "A" and "B". That seems clear. > > So you're saying that you've got a mux on a single physical input which > has two inputs? Are you sure that this is actually a mux and not some > sort of mode setting that should be in platform data or DT - what do > these settinngs actually correspond to? The routes in the driver look > like there's two physical pins for each one of IN1L/R which the device > can switch between for some reason which does correspond to a mux but > that'd more normally be named IN1AL or similar. > No, I'm just saying I don't see how calling the mux positions "IN1AL" is any clearer than calling them "A" and "B". The "IN1AL" names of the DAPM widgets is purely an internal detail that you wouldn't see through the ALSA interface anyway so they don't relate any more closely to what Joe user is seeing in the control list. The IN1L mux is for IN1L so including that information in the mux position is redundant. For me the real benefit of the "A"/"B" naming is that if you're reading through a configuration script and saw something like 'IN1L Mux' = 'B' 'IN1R Mux' = 'B' It's much more readably obvious that both channels are set the same rather than 'IN1L Mux' = 'IN1BL' 'IN1R Mux' = 'IN1BR' The second version doesn't tell you any more information than the first but makes it harder to scan so you have to read more carefully to check the settings > Though if the left and right side need to be set to the same thing > (which IIRC a previous version had code to check for and you did mention > in your mail) all the time then why are there two separate muxes anyway? They only need to be set the same if the "A" input is set to digital mic mode because that uses pins from both the left and right channel to run the single digital interface. If the A input is analogue the two channels are independant so the left/right muxes can be set to A or B inputs independantly. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/