Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3101721iog; Mon, 20 Jun 2022 11:16:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1siqHMZrMz3CgSkQ2tO5DBCtyneMsCNBGa4MaLL/gQsSxKX6WolsHnJvNbn83TEw9Rb0l0o X-Received: by 2002:a17:907:72c9:b0:722:d5ef:6dea with SMTP id du9-20020a17090772c900b00722d5ef6deamr2288234ejc.551.1655749017903; Mon, 20 Jun 2022 11:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655749017; cv=none; d=google.com; s=arc-20160816; b=fmHS4zo566UfAHKs3g8ZDy+szakbQE34KA9IG53kRgQzVgZObs2uN/uF85Zp+sfIsi xIBmKpe2FR2tnpPu/pDxyIH5lWJykU7+9KrHS0jq5i57MDQ6pS4GyVzP9PB/YXBxPWP6 xzQYEoKy7l22o2mHtBTXjKS/Dga6wcxajL/fggBjW82EYG5vxXIXOIDmXFMvQ7+xLoBo IXQtDpIYLDL2Gkd3Lp3TSGV8w2+3pB35wJbCg52yGW39Vd9CfD6xJ3vNm5LjGV0UgxAB qRt0Bm+kZRttdCHxnekF5YrI/X7MSf3hDM0VCleHv/by9+I6h4eepclUkPKfjF4EGhsH T9qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w6vacAfaqohw95S+mHKQgM+EKeWnz+yRbKl9pZAYgT4=; b=I+AodWSAOmrVkQxqs6wckVwo/gm5aKbSTiXNj9h+Y3j05Nlv3pD8XdDsCVi07pTw+t XQTFFOACVvM6rTu54TSt9mbROTJQmjAh+gRDI+2Gg0GOLwCyTHj8d4gV1dZreRbOQkye Y0N3MN7XXxmBpoU7bNHUlkYnvGY1th6q4ClVUjm4R2en+rtUBLJ130BauUKzspiIYQPl EtgtzBbyAxLR/e/SDhr7E0Xd54KCRStd/ydjFLdgiP1m1M19dCQ1S3Sh/+J+jNabYJGH p+xnrrQCcDT0GB7JpuVP/LSxcvH70hd1HCGd/S28sFz3Gd106t1HlXfQrJy2946yocy/ +bBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PDbsfohM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020aa7dd0b000000b004356c0d7435si7865875edv.508.2022.06.20.11.16.32; Mon, 20 Jun 2022 11:16:57 -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=@kernel.org header.s=k20201202 header.b=PDbsfohM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244951AbiFTSEq (ORCPT + 99 others); Mon, 20 Jun 2022 14:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244936AbiFTSEo (ORCPT ); Mon, 20 Jun 2022 14:04:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F95318E3C; Mon, 20 Jun 2022 11:04:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C14416156D; Mon, 20 Jun 2022 18:04:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8716C3411B; Mon, 20 Jun 2022 18:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655748282; bh=w6vacAfaqohw95S+mHKQgM+EKeWnz+yRbKl9pZAYgT4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PDbsfohMbYv3MffqWofo0S7UAM3OWif/Gh/rKbWiB5wStzqG5O9JTSUqCxbcdE0QC R/gf2j1b5t9kZBUtQHuHnZCby4kToF6ZQz8v25NCzG35JTNUA9cascUN+S073vlodc 747BGINyYhkum55MlnQPY8NgidJYQETduCBfJE5A9qcQLGtD/NX5B3SDxToS08R8zW QczCMm7/qmod4Dj1zd4PhHwZxjs0ft4iu8z/zXspS/6BzPCOojI/0tjp4NrGKMyer5 Yn4WJ/mWub0Pq9N6Cf4r5eu01pjH3Bh2o/AVSJBcJ8HwigExQEsdjrModduyoJzPRf 7e8dlrFn6tAOQ== Date: Mon, 20 Jun 2022 19:04:36 +0100 From: Mark Brown To: Pierluigi Passaro Cc: Alifer Willians de Moraes , "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" , Eran Matityahu , "festevam@gmail.com" , "lgirdwood@gmail.com" , "linuxppc-dev@lists.ozlabs.org" , "nicoleotsuka@gmail.com" , "patches@opensource.cirrus.com" , "perex@perex.cz" , "robh+dt@kernel.org" , "shengjiu.wang@gmail.com" , "tiwai@suse.com" , "Xiubo.Lee@gmail.com" Subject: Re: [PATCH 4/4] ASoC: wm8904: add DMIC support Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VOCVAPjBvueWLvm9" Content-Disposition: inline In-Reply-To: X-Cookie: Good day to avoid cops. Crawl to work. X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org --VOCVAPjBvueWLvm9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 20, 2022 at 05:52:43PM +0000, Pierluigi Passaro wrote: > > > Just for my understanding, are you suggesting to set a device tree > > > property to force a fixed behavior in the driver ? > > Yes. > Why should we use a fixed behavior ? The things that are fixed by the design should be fixed. > > The device shares pins between the line inputs and the DMIC inputs so at > > least some of the configuration is going to be determinted at system > > design time, that will fix the usable values of at least one of the > > controls which ought to be reflected in the runtime behaviour. > In our design we use: > - pin 1: DMIC_CLK > - pin 24: LINEIN2R > - pin 26: LINEIN2L > - pin 27: DMIC_DATA > we have no pins shared among DMIC and LINEIN. This means that DMICDAT2 is not usefully selectable at runtime, you've got IN1 as digital and IN2 as analogue, so while the DMIC/ADC switch is useful the DMIC1/2 switch is not. --VOCVAPjBvueWLvm9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKwtrMACgkQJNaLcl1U h9AVVAf8CNJ1pKU5n40o+hAHDCPrpMkjTpft6KOXuI6XY7ImplHB1hCdT7Q6WATf aBd0+QPrVbh1F8JPhUXGwsovT2NTqxO3mnuv8rf3W6/q+sBvebRFd6JFtqPixkRx it74je2CMTZXE5dCFp/IC6RfN1A73ommQqkSbMHv/ISFBDJXFwCtBXCkip3sHmIu ogp7fB7pZYgfsxh24nHeREBI+HAiwbqefgu7wDTBQ3DEIbWYq3xRffqucidYnUwp yenPU0ysSpOEBZXcU9QxvKxlh+H3dPNF4xNKNHXzqIt3IPWJF2WFF4JLdxKGzvoF pAKrexCNszAQZt19PrBca61dzOHDeg== =G8Fe -----END PGP SIGNATURE----- --VOCVAPjBvueWLvm9--