Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2647403rwl; Mon, 27 Mar 2023 03:20:23 -0700 (PDT) X-Google-Smtp-Source: AK7set+gu+6YZnw2TrAm9rR6n7UX8AKRqJbcZvIrl+3QEeWpXyYA4sJtZpEOMTM2sXcHRJUud/rE X-Received: by 2002:a05:6a20:b288:b0:d9:237e:9d08 with SMTP id ei8-20020a056a20b28800b000d9237e9d08mr9677632pzb.3.1679912423547; Mon, 27 Mar 2023 03:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679912423; cv=none; d=google.com; s=arc-20160816; b=nzqaoO/26LQg7l4M2MEgMQTTG1Ow40PXOe1lutcl5f8o70CsUdVNLlEOj6qheGBoRH MhfWPY3gfiTSY2uKT9hD9R5qT+HRM2hXprjhY9iv2pFFVEL/wFgR1mZFXjC5P1PGhNjS OX98g2sbfeub03HniMbVfHWR7VDHNF+EwVYJ8C54f2Ul6U2N6vYxqQyV/0oZhwfkml4a LbQW7RpJTC3Sq/SFpx0I35tjPSIWWDb6KlGhteniN9I7+AIYPbh6GqyV/snuwFg+9Vvj siqbu3mv9sRsxx4QnAdEvEpYXHuQqN63EcLur6GBT2go03E4BrsKyWk6pDS/AGsLl/qO rjCg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lB4wPvCSPW/RRZ/pdUUluaD+fYp3twNkFPxciT+tSrg=; b=hQT1V1KuPQXgneqJk/h2l/9gPySgNxz0ISetgKgjB0c7/0lDVU29fX4QqpwEU6WTE0 xM+GUkUo2XZu+0UPyHpq374iKazUsNgC1xtbLC0SbpRWie5gf8QSBCjvtHvRiHD8ocz/ uYGb6OgGK7ahwg7EnGjTbn9XXgNfgj5mKlmf4CiURJS/37o1j8hJ8pqRjIPPxfk0h/AY +oMlVB1cr7MAPtw9xrOnlqkoApHqpwi/u4pSdu5K2RUVXJm0BdXK/jMKmdR9VHTt84PT kgQjxh94Ov5L0kfQDcVUrqchhLL1ScZP/8H500AMGpq5W2c9lN1fsiePtxBkO9ZD9xiR fTRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=PRSK8Qpj; 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 c17-20020a056a00249100b00623e7faaf20si29201499pfv.192.2023.03.27.03.20.11; Mon, 27 Mar 2023 03:20:23 -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=PRSK8Qpj; 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 S233542AbjC0KOt (ORCPT + 99 others); Mon, 27 Mar 2023 06:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233506AbjC0KOr (ORCPT ); Mon, 27 Mar 2023 06:14:47 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8BC212F for ; Mon, 27 Mar 2023 03:14:46 -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 32R8Apo2028398; Mon, 27 Mar 2023 05:14:32 -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 : content-transfer-encoding : in-reply-to; s=PODMain02222019; bh=lB4wPvCSPW/RRZ/pdUUluaD+fYp3twNkFPxciT+tSrg=; b=PRSK8QpjMTP7rMU5a241DPeTMmySZaxOGqFFjlpJnA/c5wVtzXh/1zsfy5gCVYjT8yQp po4XVqNEgjWNRwtteUqZ7iZr20H1o272L33aiy5EaesEJvocPklobcbXq+WZWR7bI/fY zr/r5wZCDHmuqG+gnNsmsqnKDsuDSQja481KOqYqVb2bTTHtIkBa69kFymiI+T+XYfwq jbh9p8CUxIT8ET3olZ7b3SIHvD77ewARjDNeKo6/j8N+y9RQ2YOM/SxAN2OpsDQLY8E4 Nwv34YMUisJVbbZE8uJtB0SDC9eRLwzwIeGN7idYhF0ljtUYsfEGx5Js4VGDAjQWiKI4 Tg== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3phxc2j9dg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Mar 2023 05:14:31 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) 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 05:14:29 -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 05:14:29 -0500 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 4A7C4B06; Mon, 27 Mar 2023 10:14:29 +0000 (UTC) Date: Mon, 27 Mar 2023 10:14:29 +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: <20230327101429.GT68926@ediswmail.ad.cirrus.com> References: <20230325083643.7575-1-clamor95@gmail.com> <20230325083643.7575-2-clamor95@gmail.com> <20230327083208.GQ68926@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: f3V4cmNTfEwP3xVtN6uAgmK1las7Or1l X-Proofpoint-ORIG-GUID: f3V4cmNTfEwP3xVtN6uAgmK1las7Or1l 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 Mon, Mar 27, 2023 at 11:37:05AM +0300, Svyatoslav Ryhel wrote: > пн, 27 бер. 2023 р. о 11:32 Charles Keepax пише: > > > > 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? > > > > I will check once more, but so far I was not able to set the mic to > work with DMICDAT. Only with this patch. > The two should be basically equivalent when the controls are set right, your patch has: DMIC -> ADCL The current code has DMIC -> Left ADC Input -> ADCL The only difference is that Left ADC Input sets the ADC_DIG_MIC bit, but the datasheet clearly indicates that should be necessary for digital mics to work. Does your system definitely have DMICs? Without that bit set the decimator should still be connected to the analogue front end. Thanks, Charles