Message ID | 20230217124151.236216-3-claudiu.beznea@microchip.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp873974wrn; Fri, 17 Feb 2023 05:06:13 -0800 (PST) X-Google-Smtp-Source: AK7set849Lymc6Ow6mo3VhEDB6XL5FFT0Gn257hAirBb5gbieQ9nVZvFbn9cEOUNdhS7rEYIoi/S X-Received: by 2002:a17:906:f14a:b0:8b1:7e88:c20f with SMTP id gw10-20020a170906f14a00b008b17e88c20fmr3075560ejb.15.1676639173203; Fri, 17 Feb 2023 05:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676639173; cv=none; d=google.com; s=arc-20160816; b=dN7WZzxEBh7UFTMVJrD2I6pgrUqOAJfR7voiisNR23NLQvWFDTMN6N8XNobtWCxR0Z 6JwK3e2T2xtZRfaCZpo3g8pyETJjor0keTxVCgexalcwfrVH53ru/Ujxi+VFdqfi2Sa7 vOa+JpwoGUssv7ns0A6oVJoD14WXOm3lCw1xOU3f6/tpXkmZlbcG5f53C6p6mANBgbb8 zCzlUAQVxOHDExj+7H3uwLm0xHvyu0/y1zE7HsaG2dMOekqPHGhN4iiVH4jxEvR4/vJz AIt9PRw4riJCIaot1HlKmFVfGUuwhxoQpavtTJm8NJkVQX+fXuLzRi6Jjl7PUwSafymr 3dDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mqJpdgtCMkkxmKbCwbRRMVz0JN1eKRvKJy7ftxgQrrE=; b=MjSI2G3xrx5nQZXC0/b8CnRTGbYFcEsGElVhOpNI3P13skVVmGYnXX1TaVqqU9E6jn w+zjvL2qtMalnvvpk8gCLmtQrnObuC7q2MrtAgMcjdjYxgISdt/v9mdlgDj+uSHUhdBr l/w5+Tt9AbW2Xi2J4BWHo5ijMUc52V3n2RvZWfHo0tGavWeEEVD1mYjyXAzYLobl1IG+ 524cKRvh+lTxwuh/jdomF6Z4/aAkrjSg0evBly0xKow9XY1QIo2OrLSpj0s6+pal4X7m p+HMZW3veXSsZEEh5IkeU0kH3Z/7M069Eb3SZT1nX2zTKXeavhsEPtTEljo9k3V6Umi8 FmgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=m1bKx1am; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fb16-20020a1709073a1000b008b132afc9f0si4008472ejc.83.2023.02.17.05.05.48; Fri, 17 Feb 2023 05:06:13 -0800 (PST) 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=@microchip.com header.s=mchp header.b=m1bKx1am; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbjBQMmS (ORCPT <rfc822;aimixsaka@gmail.com> + 99 others); Fri, 17 Feb 2023 07:42:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbjBQMmP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Feb 2023 07:42:15 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32A7A6607E; Fri, 17 Feb 2023 04:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1676637734; x=1708173734; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=egnooPJpNM4o/gc+8fNo8gZUG2pwChKFBH3+nnb+9yo=; b=m1bKx1amD5fEm9qfWXuoocpz/fnVBHt4RVdm9XjjnCMPBI9IGju2Fq59 lB3cPCViNstj0cZkFXwLrzGCHlh5RU+PZm4ibFl1eJd8NkDD+1u49F1T4 3Kuo+K8qzKyR+yQJDE6tGzEAhVzHOcY+S4+vHwhRaaVQrNGB4kqJqXTj5 44/sQy6NP75LX3mZGr+JZXAEQM8tWmUdxHfijseU4N8szJRN7iFrZVZLQ zpppazZ2BErsZLTmyImoCgDn8Uv4mKtnLJmAg1MKbzgyBE0f6H/H57DNU 2fZc0DrP363cTB5g9CQ6V4QJrKeGM/6N8sAJOL9kzgyw3/L/+QG+OVWeU w==; X-IronPort-AV: E=Sophos;i="5.97,304,1669100400"; d="scan'208";a="212504683" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Feb 2023 05:42:13 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 17 Feb 2023 05:42:13 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Fri, 17 Feb 2023 05:42:08 -0700 From: Claudiu Beznea <claudiu.beznea@microchip.com> To: <lgirdwood@gmail.com>, <broonie@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <perex@perex.cz>, <tiwai@suse.com>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com> CC: <alsa-devel@alsa-project.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, Claudiu Beznea <claudiu.beznea@microchip.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH v2 2/3] ASoC: dt-bindings: sama7g5-pdmc: add microchip,startup-delay-us binding Date: Fri, 17 Feb 2023 14:41:50 +0200 Message-ID: <20230217124151.236216-3-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230217124151.236216-1-claudiu.beznea@microchip.com> References: <20230217124151.236216-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758083598119104931?= X-GMAIL-MSGID: =?utf-8?q?1758083598119104931?= |
Series |
ASoC: mchp-pdmc: fix poc noises when starting capture
|
|
Commit Message
Claudiu Beznea
Feb. 17, 2023, 12:41 p.m. UTC
Add microchip,startup-delay-us binding to let PDMC users to specify startup delay. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- .../devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Comments
On Fri, Feb 17, 2023 at 02:41:50PM +0200, Claudiu Beznea wrote: > Add microchip,startup-delay-us binding to let PDMC users to specify > startup delay. The diff tells me all this. Why does this need to be per platform? > > Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml > index c4cf1e5ab84b..9b40268537cb 100644 > --- a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml > +++ b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml > @@ -67,6 +67,12 @@ properties: > maxItems: 4 > uniqueItems: true > > + microchip,startup-delay-us: > + description: | > + Specifies the delay in microseconds that needs to be applied after > + enabling the PDMC microphones to avoid unwanted noise due to microphones > + not being ready. > + > required: > - compatible > - reg > -- > 2.34.1 >
On 21.02.2023 00:56, Rob Herring wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On Fri, Feb 17, 2023 at 02:41:50PM +0200, Claudiu Beznea wrote: >> Add microchip,startup-delay-us binding to let PDMC users to specify >> startup delay. > > The diff tells me all this. Why does this need to be per platform? PDMC can work with different kind of microphones, thus different boards could have different microphones. Depending on microphone type the PDMC would need to wait longer or shorter period than the default chosen period to filter unwanted noise. Thus the need of having this specified though device tree. Would you prefer to have this in commit message? Thank you, Claudiu > >> >> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> >> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> .../devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml >> index c4cf1e5ab84b..9b40268537cb 100644 >> --- a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml >> +++ b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml >> @@ -67,6 +67,12 @@ properties: >> maxItems: 4 >> uniqueItems: true >> >> + microchip,startup-delay-us: >> + description: | >> + Specifies the delay in microseconds that needs to be applied after >> + enabling the PDMC microphones to avoid unwanted noise due to microphones >> + not being ready. >> + >> required: >> - compatible >> - reg >> -- >> 2.34.1 >>
On 21/02/2023 09:10, Claudiu.Beznea@microchip.com wrote: > On 21.02.2023 00:56, Rob Herring wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> On Fri, Feb 17, 2023 at 02:41:50PM +0200, Claudiu Beznea wrote: >>> Add microchip,startup-delay-us binding to let PDMC users to specify >>> startup delay. >> >> The diff tells me all this. Why does this need to be per platform? > > PDMC can work with different kind of microphones, thus different boards > could have different microphones. Depending on microphone type the PDMC > would need to wait longer or shorter period than the default chosen period > to filter unwanted noise. Thus the need of having this specified though > device tree. Would you prefer to have this in commit message? I believe you also had explain it to me, thus as you can see having it in commit msg would spare you two questions... Best regards, Krzysztof
On 21.02.2023 11:23, Krzysztof Kozlowski wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On 21/02/2023 09:10, Claudiu.Beznea@microchip.com wrote: >> On 21.02.2023 00:56, Rob Herring wrote: >>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >>> >>> On Fri, Feb 17, 2023 at 02:41:50PM +0200, Claudiu Beznea wrote: >>>> Add microchip,startup-delay-us binding to let PDMC users to specify >>>> startup delay. >>> >>> The diff tells me all this. Why does this need to be per platform? >> >> PDMC can work with different kind of microphones, thus different boards >> could have different microphones. Depending on microphone type the PDMC >> would need to wait longer or shorter period than the default chosen period >> to filter unwanted noise. Thus the need of having this specified though >> device tree. Would you prefer to have this in commit message? > > I believe you also had explain it to me, thus as you can see having it > in commit msg would spare you two questions... Right, I'll add it in the next version. Thank you, Claudiu > > Best regards, > Krzysztof >
On Tue, Feb 21, 2023 at 10:52:54AM +0000, Claudiu.Beznea@microchip.com wrote: > On 21.02.2023 11:23, Krzysztof Kozlowski wrote: > >> PDMC can work with different kind of microphones, thus different boards > >> could have different microphones. Depending on microphone type the PDMC > >> would need to wait longer or shorter period than the default chosen period > >> to filter unwanted noise. Thus the need of having this specified though > >> device tree. Would you prefer to have this in commit message? > > I believe you also had explain it to me, thus as you can see having it > > in commit msg would spare you two questions... > Right, I'll add it in the next version. TBH this is really standard stuff for audio hardware, having to leave board specific settling delays is very normal.
diff --git a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml index c4cf1e5ab84b..9b40268537cb 100644 --- a/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml +++ b/Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml @@ -67,6 +67,12 @@ properties: maxItems: 4 uniqueItems: true + microchip,startup-delay-us: + description: | + Specifies the delay in microseconds that needs to be applied after + enabling the PDMC microphones to avoid unwanted noise due to microphones + not being ready. + required: - compatible - reg