Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2555061rwl; Mon, 27 Mar 2023 01:42:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bgL7LKQnG0Hhtd1U71T1n6YWDiBmBCf1tjiEDfjgeZdOHVYBSSMUyWVBxrTNU8IQKfvv1/ X-Received: by 2002:a17:903:110d:b0:1a2:4777:b90a with SMTP id n13-20020a170903110d00b001a24777b90amr3864049plh.25.1679906554454; Mon, 27 Mar 2023 01:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906554; cv=none; d=google.com; s=arc-20160816; b=i9T1yiJZonJDERiFI/GnDvpPQ0yoXByXBUMjXm/3BEvdEL8KKyTtqtvUaxCzlJKhAP U8la3UVms1dyZPzdmPG+tENxxbx4UDmIaDSh8FNU2oxAE9Gph4GRSREiZdAzgDFnrsZM dyBYuuP6qutPgsJjFNJuEvbZhfZjQ7F4wdn31yT7A8yWI4UfyXEREH39T8KwonamnQbn Kb1WpjzVQdcKMJThkxjB1RQ2CxBOCDeOd7jWH5eEWwqvta2QQ1kJOzqA12b7NI9RUXqp x6NMMWU3TKqHk55aUAa5YWwZDPwHEj8k9/+i7tPZ9461c2Xbwk/ZUdrH18u2yEy7ELe4 3JAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Po+ae3aSw2GW2FFY1Ex0+XnVhUK7QaDVZZPLKHJDiEc=; b=p2bUjgBLoXHVAQtznTROXp1usVE/tkkFho1jALiaMnL4XOHrVmis0qSzUMt/a9ReQR 1QjPtrNJlsJe84lN1V6zW4vIuiRKA/JG7hJiw4PCs9TP1G/uaJ38rSwJ3Rk3ddO2Rp5z ci5iNmuq7mwEelFk9KdxJiTJKQMlAunJFOqp3LpX2Z+OW3GZ4WphDylCpBz9bQH4aSC6 vUm067yfdIyT6cuwYAfA9GnPmauv8iqtiM8lgoXiVk3d+js2ih1OIerHBFJhnjFFywl2 HRb6ifheA7Hzz9Zsf5bm2LVHoYAViyAFTZ2B7wNkwf1Z+oTf9sVyMoDwUMjF4TQKyrZe 7Kow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=WOlzgGSo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a170903244b00b0019d20f880f2si28219096pls.292.2023.03.27.01.42.22; Mon, 27 Mar 2023 01:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=WOlzgGSo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232836AbjC0Iir (ORCPT + 99 others); Mon, 27 Mar 2023 04:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233144AbjC0IiY (ORCPT ); Mon, 27 Mar 2023 04:38:24 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF76D7AB0 for ; Mon, 27 Mar 2023 01:32:37 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32R7BCOu028059; Mon, 27 Mar 2023 03:32:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=Po+ae3aSw2GW2FFY1Ex0+XnVhUK7QaDVZZPLKHJDiEc=; b=WOlzgGSovcspp7tuNrc+OGO3VEvtxPOZG4YX9o5+BSIQRtczlT71+R2WVLhtM76qlSMo raw+oErun8ugVCBNPhAdjVVCqz9xlsnyYM7S2krcpNogzjTGkVHWo8YPr4ObhhnQyh8T +3fgTekVNZMkNbl/FNcHr48GR+JQo/31ALw9NRWQD4ENLWzPLxwZhB1FFk9oz59IULyO 8P9X/fvaYimW630rXNY9e/PKXOX3juX3UxQe7AONZQ1H0OBVwB63dUCddsEsd6TFF+91 SJX/NLMIXyt21Y07YhwveWnXhbL3i4mfl6nChx+zvtseEMvlyCxJy6fiTVyJSSsdSqZo nw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3phxc2j698-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 03:32:10 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Mon, 27 Mar 2023 03:32:08 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Mon, 27 Mar 2023 03:32:08 -0500 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 82FA611D4; Mon, 27 Mar 2023 08:32:08 +0000 (UTC) Date: Mon, 27 Mar 2023 08:32:08 +0000 From: Charles Keepax To: Svyatoslav Ryhel CC: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxim Schwalm , Dmitry Osipenko , , , Subject: Re: [PATCH v1 1/1] ASoC: wm8903: implement DMIC support Message-ID: <20230327083208.GQ68926@ediswmail.ad.cirrus.com> References: <20230325083643.7575-1-clamor95@gmail.com> <20230325083643.7575-2-clamor95@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230325083643.7575-2-clamor95@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: ChH8pAOo6YN8MZg2uI0OBVWvOIKr7fFB X-Proofpoint-ORIG-GUID: ChH8pAOo6YN8MZg2uI0OBVWvOIKr7fFB X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 25, 2023 at 10:36:43AM +0200, Svyatoslav Ryhel wrote: > Add DMIC input and routing. > > Tested-by: Svyatoslav Ryhel # ASUS TF300T > Signed-off-by: Svyatoslav Ryhel > --- > sound/soc/codecs/wm8903.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c > index 41346e5ec5ad..9c2f0aadcff3 100644 > --- a/sound/soc/codecs/wm8903.c > +++ b/sound/soc/codecs/wm8903.c > @@ -9,7 +9,6 @@ > * > * TODO: > * - TDM mode configuration. > - * - Digital microphone support. > */ > > #include > @@ -816,6 +815,7 @@ SND_SOC_DAPM_INPUT("IN2L"), > SND_SOC_DAPM_INPUT("IN2R"), > SND_SOC_DAPM_INPUT("IN3L"), > SND_SOC_DAPM_INPUT("IN3R"), > +SND_SOC_DAPM_INPUT("DMIC"), > SND_SOC_DAPM_INPUT("DMICDAT"), There is already a datapath for the DMIC here, DMICDAT. Are you sure you don't just need to set the "Left/Right ADC Input" muxes correctly through the ALSA controls? > > SND_SOC_DAPM_OUTPUT("HPOUTL"), > @@ -996,6 +996,9 @@ static const struct snd_soc_dapm_route wm8903_intercon[] = { > { "AIFTXL", NULL, "Left Capture Mux" }, > { "AIFTXR", NULL, "Right Capture Mux" }, > > + { "ADCL", NULL, "DMIC" }, > + { "ADCR", NULL, "DMIC" }, > + And at any rate these should not be directly connected to the ADC you need some muxing to indicate whether the DMIC or AMICs are active. Which the DMICDAT path appears to already have. Thanks, Charles