Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3797610iog; Tue, 21 Jun 2022 06:16:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vCxrSXujAzK74dobKHFRtKhcv+Hz6DKr9LJ07+LUn0e6dHS6sJZCVZPtLmQcztOSSPKC1n X-Received: by 2002:a17:906:9b96:b0:711:d21c:1b0b with SMTP id dd22-20020a1709069b9600b00711d21c1b0bmr25995064ejc.365.1655817369077; Tue, 21 Jun 2022 06:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655817369; cv=none; d=google.com; s=arc-20160816; b=gbN/8o6xNBEhWyoEMQCyjsbMIX+0l2LbiIc43A/+4M7PvyI9Qx/WNzU0nSP/i94SSS 7d0Z9+L/lmykmuvwtRt6AJ1Bon2fKYjSC7jFKzhbpnPu8zVIYzMX+me8tRzfy1fMEnbJ O6xdNGRdWDCzpDHQZrvDIC1LFGP+oyk18IQ+22suZEjlKlWGvqe08wFuoiFVV29fwxEY cK+fRhYTORlDwspRJiDMNRU92FmFkFqCLTcu/MSxjYAIP+t3MVhjUfujMEc8tkiJMEqi m55JiNpX1+x4DUWFoulXgxriSgVIQocXgTD2ReXXde+AnILjwjgbVwO9NdOuoSglT7xh GqLg== 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=kTB/OozacwIwHBz4bHqw4cWeE9sZuWwKXWXbm7F0YnI=; b=bc/Cvgouj9hQ8GoRcXMmoI+HbPvsjiwI7XL55KYR6n61csNpaWyFhWyEGuT4T6iaWz LIaRcUsMt6bn+RYSInMxlt5yb6WVMT9g9CrD2+ZzC1+Sf45h+dCtLxk7xAVZ6yDlulaA cJ5NsPnsnCWAvCVJAC2seBjVRqSU04vQqyKIJymBh3tuSQlMS3KXPljC323nvIo4KPXJ 0DowUT9huH74UQcqF0T60Xd6f3grnbg3fDu2hWrYHQcRCSUOev+LlANxH/N9yQrQmd6n OJb2NvVkoXJAtTkjXTOoR2JVf1NPjYbtypdoZAtbBUcFZ3dPnJZMICGAiSx3YoySnOGi Gb7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eUVPXq0o; 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 m29-20020a17090672dd00b0071058830c11si15350750ejl.294.2022.06.21.06.15.43; Tue, 21 Jun 2022 06:16:09 -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=eUVPXq0o; 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 S1350323AbiFUNLo (ORCPT + 99 others); Tue, 21 Jun 2022 09:11:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbiFUNLn (ORCPT ); Tue, 21 Jun 2022 09:11:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2065B1DA6D; Tue, 21 Jun 2022 06:11:43 -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 B13B7614FC; Tue, 21 Jun 2022 13:11:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAA18C341C4; Tue, 21 Jun 2022 13:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655817102; bh=4xEME0PJkdFrWYpmGq18CjMHFdjMkxkM8iVMwtol8e0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eUVPXq0oGf0ynQ+mmppKszQbX0ExCvwwwyzClTkcVE2WThQMGV7mvgtdtLwZi9kpe dDtkTM9jnjSnDNtlRJewWC2apC09nfHB0duGnIXX0vqBCDd2TgvrAQUuRzZP/zIVMI Qpxjuj6zkn5CTumFR0+GSS6TqhPfsPduG/ILTsZ028IBm564m0B90BDHOesyPEfIDJ lgcjqomPUoKP17Xs6KIlERtTK2y7LLH3NVb06Zrn7GoO6wqzZKmX5zptHYXZ/71NYW AIei+ef2lro1GS4HLIqKo7DmO+D52U9EVKbAKnLXvmtcoi3VNenn9OmHeZRQM95nvV l6dTKpR7L08qQ== Date: Tue, 21 Jun 2022 14:11:35 +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: <20220307141041.27538-1-alifer.m@variscite.com> <20220307141041.27538-4-alifer.m@variscite.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zPDn0Yp+KJI2UZco" Content-Disposition: inline In-Reply-To: X-Cookie: Edited for television. 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 --zPDn0Yp+KJI2UZco Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 20, 2022 at 07:53:56PM +0000, Pierluigi Passaro wrote: > > 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. > A customer could have the following working configuration > - pin 1: DMIC_CLK > - pin 24: LINEIN2R > - pin 25: DMICDAT2 > - pin 26: LINEIN2L > - pin 27: DMICDAT1 > with no shared pins: here there's the chance to select DMIC1, DMIC2 and > LINEIN2 at runtime: I can't find a reason for a fixed behavior. > Can you please elaborate ? So in that case the driver should offer the DMIC1/2 selection. The driver should be looking at which pins are wired up as DMICs and only registering controls that can actually be used in the system based on the pins that are wired up. --zPDn0Yp+KJI2UZco Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKxw4YACgkQJNaLcl1U h9BfeAf/UZDQPNisaKHZIdpACSlbsSETLopyOjBB/groSLMQsNWcxbfkFhXkhdZS mASQEVcOrYDiXD7yh6dcIeBAys+tfFZkrbX5YVBy+3sMm9jufXa7k3gbcJ6fA5rx ARo7N0DMY9I2YqAkQ6dtTOxIicnYMxWJibPLagGEc6WiGGbi1CfnlZJ8UmHKTy7T CFIAQes0bK4R26y7dZW7ogoSAClxlwImn9pLvrkwEh9VppUsP7XR/SauygBUsl3g 8gR9o1PjcVI3heKldnX1mQrzN13oJfBm2Vjd+7VGl8cLs3ZaQ8cx4dAgt+zj1JTF 7EXAU2zpt9gbnFQhQXfk+PuFpldzwA== =5L+0 -----END PGP SIGNATURE----- --zPDn0Yp+KJI2UZco--