Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755596AbbFQNJX (ORCPT ); Wed, 17 Jun 2015 09:09:23 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:51615 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353AbbFQNJQ (ORCPT ); Wed, 17 Jun 2015 09:09:16 -0400 Date: Wed, 17 Jun 2015 14:09:08 +0100 From: Charles Keepax To: Zidan Wang Cc: broonie@kernel.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.de, lars@metafoo.de, patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [alsa-devel][PATCH v2] ASoC: wm8960: add dapm kcontrols to select left/right ADC input source Message-ID: <20150617130908.GO32730@opensource.wolfsonmicro.com> References: <1434435799-26829-1-git-send-email-zidan.wang@freescale.com> <20150616121839.GM32730@opensource.wolfsonmicro.com> <20150617085828.GA17972@shlinux2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150617085828.GA17972@shlinux2> 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: 1961 Lines: 44 On Wed, Jun 17, 2015 at 04:58:30PM +0800, Zidan Wang wrote: > On Tue, Jun 16, 2015 at 01:18:39PM +0100, Charles Keepax wrote: > > On Tue, Jun 16, 2015 at 02:23:19PM +0800, Zidan Wang wrote: > > > Add dapm kcontrols to select left/right ADC input source, one to select > > > the left ADC input source and one for the right ADC input source. > > > > > > In default, the left ADC will select the left input, and the right ADC will > > > select the right input. When the left(right) ADC select the right(left) input, > > > the left(right) input path will be powered down. > > > > > > Signed-off-by: Zidan Wang > > > --- > > > - { "Left ADC", NULL, "Left Input Mixer" }, > > > - { "Right ADC", NULL, "Right Input Mixer" }, > > > + { "ADCL Source", "Left", "Left Input Mixer" }, > > > + { "ADCL Source", "Right", "Right Input Mixer" }, > > > + > > > + { "ADCR Source", "Left", "Left Input Mixer" }, > > > + { "ADCR Source", "Right", "Right Input Mixer" }, > > > + > > > + { "Left ADC", NULL, "ADCL Source" }, > > > + { "Right ADC", NULL, "ADCR Source" }, > > > > Are you sure this is correct? My reading is that those bits don't > > affect routing at all, they mearly determine how the channel is > > sent out on the AIF. > > > I have tested on my board, it can works, but it has something wrong. > > If set "ADCR Source" to "Left", RINPUT1(RINPUT2 and RINPUT3)->"Right Input Mixer" will > be powered down, but "Right ADC" is still powered up. Do you have some best method to > set the audio route? I think your last patch that didn't touch DAPM for this was closer to correct, I would revert back to something similar to that but fixing up for the other comments on it. Thanks, Charles -- 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/