From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Keepax Subject: Re: [PATCH] ASoC: cs4265: Add a MIC pre. switch Date: Fri, 7 Sep 2018 11:55:12 +0100 Message-ID: <20180907105512.GH1653@imbe.wolfsonmicro.main> References: <20180907032729.26532-1-flatmax@flatmax.org> <20180907082626.GF1653@imbe.wolfsonmicro.main> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by alsa0.perex.cz (Postfix) with ESMTP id 5F18026777B for ; Fri, 7 Sep 2018 12:55:16 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Matt Flax Cc: alsa-devel@alsa-project.org, broonie@kernel.org, brian.austin@cirrus.com, paul.handrigan@cirrus.com List-Id: alsa-devel@alsa-project.org On Fri, Sep 07, 2018 at 08:18:05PM +1000, Matt Flax wrote: > On 07/09/18 18:26, Charles Keepax wrote: > >On Fri, Sep 07, 2018 at 01:27:29PM +1000, Matt Flax wrote: > >Which would really make DAPM a better fit, unless there are valid > >use-cases for using the mic with the preamp powered down? > > Agreed, when you switch to the MIC rather then LINEIN it should be > turned on. > > This is the DAPM_MUX : > https://github.com/torvalds/linux/blob/master/sound/soc/codecs/cs4265.c#L178 > This is the ENUM_SINGLE : > https://github.com/torvalds/linux/blob/master/sound/soc/codecs/cs4265.c#L98 > > What is the best way to do this ? Apologies not sure I entirely follow, don't you just want to update the routes such that the existing "Pre-amp MIC" widget is between the MICL,R and the ADC Mux. Something like: { "Pre-amp MIC", NULL, "MICL" }, { "Pre-amp MIC", NULL, "MICR" }, { "ADC Mux", "MIC", "Pre-amp MIC" }, Thanks, Charles