Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2330928rwi; Fri, 28 Oct 2022 06:00:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Ca6qNk7vCE3XkL7Mywpj/DgUL5SjrgC/KVvLSEKQEtTDP7G8N3+a/zvGGLqBDSkeceg5o X-Received: by 2002:a17:902:e405:b0:186:b1bb:147a with SMTP id m5-20020a170902e40500b00186b1bb147amr23852787ple.19.1666962031261; Fri, 28 Oct 2022 06:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666962031; cv=none; d=google.com; s=arc-20160816; b=eoxAdneUJuYUb4i0Ngfo5ODfmyPS0BCvc9jdRJp7pLP4UPTz8Z61WPzOV8fapNVNGm enyuoTILwh7ylMt9JflrbBEBqhPlu7LlXWib+pajps7xIV69juhFvxwUym0QoI1ol7+Y 5wOfoCuSoFDysUXCpigt4qQ45r3qnLrmO2g/I81zdHUtfX7Atvsj2eOkujy+QM+Cm/s9 WcggWNQ7q9oI1w4MLSy2P11SvdvwZqIlCdPHBsxinGjfrtRYVETy5Kwgn74W6LYfOX3G 9mQAH9GKvV0Fj2XyqawuD/dupVOF3ANKCxm0l58KSFtenxOPjiNFNt1WGRBW+dvKIZZt pfdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=c4Wa3zuGdPPlhF6BsX0vopA+9xtlRCdSj7XxNypRvgY=; b=YCy1DzHLPMJm91g3/b0Cm5wjEgJ254Wsdky3T0V3TgGEAXVkhphVxIREv5POwVlbZ/ 161gYvNTL5nDWKI+eEWOm2qgV2UbLdIuJ1IfZNR7MZ406S2AETGR4ohPnPRZFXzkQVDJ sH0KIympuobNcXZifuraDMljg6+BRwtXq1w8zit1CPlkjd83ksr42uZzdb4yisVX1dQM qvpktRkVv/HosjtQsIgvnONLMQ0F4mbQloAgh7KyxTo6OP2vwG90I3WT0UXxnvO8na8g XEbU0X9vmJ4QxY1Whuv1pjmcKUSq1/K+RxHaJwK5KIqMMK55KOmtEVKxD4/ZPv3QWSyE wmOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=jEjV12Pk; 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=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64-20020a638543000000b00452bab4de6fsi5158222pgd.749.2022.10.28.06.00.11; Fri, 28 Oct 2022 06:00:31 -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=@google.com header.s=20210112 header.b=jEjV12Pk; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230025AbiJ1Myo (ORCPT + 99 others); Fri, 28 Oct 2022 08:54:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiJ1Myl (ORCPT ); Fri, 28 Oct 2022 08:54:41 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9371B32077 for ; Fri, 28 Oct 2022 05:54:38 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-368edbc2c18so45963047b3.13 for ; Fri, 28 Oct 2022 05:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=c4Wa3zuGdPPlhF6BsX0vopA+9xtlRCdSj7XxNypRvgY=; b=jEjV12PkkhsxOk2320IMxk9cduAJECXQwpyb4R07XWi96fTyT/phvIrEx/uNX5djVf UDGN9rbfjUrXH6v0TDAlll0ZVY9nXNbm4ZwD8wKzo19tsD7f02QleEwfm4lHV29P2dn+ 7U5+eBjTnYHFY2k038NGOig4k9AuLcaW21bnCgHxfypB89aYLpyEo8zJJLbqrGYNdT6q rCaOrkoiHpOhwcV0isM3Dpt+AYe4k3IiRQy6JXBFBfZYRgXsg6WzyxGNMN9BDptB2r8G 3/BzbWiyPOwuuFN+i08HYE9oC1flRzQiva8lOIfo3ZoS0K1O5//nQItTRDXcSnyGHhpd B6NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c4Wa3zuGdPPlhF6BsX0vopA+9xtlRCdSj7XxNypRvgY=; b=D+11ne+g5NSIN5K/glIL86h8CzX41eCZ1DdMzMBOunSaAMezLv1gSQJ3rEyLaGWjvS UPLxpyMCUV+YHS02whlkpPibeMnAX7YvcTLW8VobO7SKgRucseGF1f6/LasmY7DlInyV uHDYwo2BrZ6S23yCnlUE5OX1sNL9Kf8TTXp9jxqhN0y5c0YKy3kB7I82YrbPVtAEI9ZI g2tAFnFs4peaA1CvXJ6qeymHiqJrsa539uPmoXm5M8tPUUeQT4N2ZKQAru4gcZJI3flx LO9fljqABMX266XabGApj5JGww3GYeahh9Hhnvwsqs067r5sfnw0l7Dg7j1PXdj6FT9P mlSw== X-Gm-Message-State: ACrzQf1D9O2/0sgMLPjqqRzjSH5tIDs1t9amcRygvFL6cP+zNVr9SyHR mc3jZYrkIfiEDIBgXFM39mvrIq6dgdUca2NkpV5w7g== X-Received: by 2002:a81:4f89:0:b0:36a:f09f:73fc with SMTP id d131-20020a814f89000000b0036af09f73fcmr31265830ywb.487.1666961677715; Fri, 28 Oct 2022 05:54:37 -0700 (PDT) MIME-Version: 1.0 References: <20221028102450.1161382-1-ajye_huang@compal.corp-partner.google.com> <20221028102450.1161382-3-ajye_huang@compal.corp-partner.google.com> In-Reply-To: From: Ajye Huang Date: Fri, 28 Oct 2022 20:54:31 +0800 Message-ID: Subject: Re: [PATCH v1 2/2] ASoC: dmic: Add optional dmic selection To: =?UTF-8?B?QW1hZGV1c3ogU8WCYXdpxYRza2k=?= Cc: linux-kernel@vger.kernel.org, robh@kernel.org, alsa-devel@alsa-project.org, Charles Keepax , devicetree@vger.kernel.org, angelogioacchino.delregno@collabora.corp-partner.google.com, Shengjiu Wang , Liam Girdwood , Takashi Iwai , Rob Herring , Mark Brown , Krzysztof Kozlowski , Arnaud Pouliquen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amadeusz, Yes, the original version I tried the implementation on audio machine driver, but one person gave me an idea for this dmic.c Do you think it is appropriate on dmic.c? If it isn't, I will add kcontrol into audio machine driver. thanks On Fri, Oct 28, 2022 at 7:44 PM Amadeusz S=C5=82awi=C5=84ski wrote: > > On 10/28/2022 12:24 PM, Ajye Huang wrote: > > Having two DMICs, a front DMIC and a rear DMIC, > > but only host audio input AUX port0 is used for these two Dmics. > > A "dmic_sel-gpios" property is used for a mixer control to switch > > the dmic signal source between the Front and Rear Dmic. > > > > usage: amixer -c0 cset name=3D'Dmic Mux' 'FrontMic' > > usage: amixer -c0 cset name=3D'Dmic Mux' 'RearMic' > > > > Refer to this one as an example, > > commit 3cfbf07c6d27 > > ("ASoC: qcom: sc7180: Modify machine driver for 2mic") > > > > Signed-off-by: Ajye Huang > > --- > > > I'm very suspicious of this patchset. As it is you add kcontrol which > won't take effect on most platforms making use of DMIC. It feels to me > that it is something you want to handle on machine driver side instead. >