Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp460213imn; Thu, 28 Jul 2022 06:09:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzq595XuCwNMgzNJ+EkrU4/uh9VSIl00GEr9Q9VKyWiB9M3vytn4ORaEDohG37LUpxmzMZ X-Received: by 2002:a17:907:628c:b0:6ee:70cf:d59 with SMTP id nd12-20020a170907628c00b006ee70cf0d59mr20696326ejc.402.1659013776717; Thu, 28 Jul 2022 06:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659013776; cv=none; d=google.com; s=arc-20160816; b=QbZvhZ+Mn9j+9/e5nWd01/utPVKZKctTccr5oQ212HGB2+wc3v/H+17omvwlgRKUOJ CR40G+PYpZxdDTe20Xl95uXSTArKqjDrtqmpEKt34FULn3k6DnETnWGqaIyOLdHPBbFi 8EHF6Ww/OqN+c6MABukP8XamhXdxfnE45Lyj5JjXPZJEtKgZze5pqvmjLgYIBXapwCcw QsuUJsOHkMAOY7dVm/aMJ1OASNk8CbDEDXr5be+IMZwb8XyK7d8e8IAAIoRuZlF0kL8e deEZ6vd3T4CMLx603bKAOroT+teVik3rInOURuz0LBTI7kKALw76K0A+hkaoM/XF7Ops sjzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=b/wEQ01RTadmT60aE0Fd5qVRKAPrU1I1CCnWHz9Go5Y=; b=QGXKFjQ9GA7BTXVR7ODfhIFtf0iFgGhreMVlHA+6ktHm+mf4CskcgSE1yaGhn5eUhC pjRNwpkDdOQA3IjJNCSq8/+YRUGJGJ+qmHfjUpgHNPieGNH6SIPtB4kfrszj2EG23plc TH3vxpsze5SgvweZf0UDuZ9pZUOY4y/SskZ4cetwM/y1vrPw3ssJBf+uAlBxsMhVekar FXKBiw+cUrKadItIa5HHNxSL5hKmYsSPmtRTLoM13Tt1cSujRCfdxNK+tQnkHo7ZtR7g iKolIN7CYycChn0y7c7BpN8hTRDXWCrS5TkoGBldp901YzJyMUcrvgcuVyNJ5TW6eH73 2r8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="Kc8OJY/+"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht8-20020a170907608800b0072b02ef4ad9si655130ejc.307.2022.07.28.06.09.10; Thu, 28 Jul 2022 06:09:36 -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=@quicinc.com header.s=qcdkim header.b="Kc8OJY/+"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238925AbiG1NGY (ORCPT + 99 others); Thu, 28 Jul 2022 09:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238882AbiG1NGW (ORCPT ); Thu, 28 Jul 2022 09:06:22 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC31225E86; Thu, 28 Jul 2022 06:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1659013581; x=1690549581; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=b/wEQ01RTadmT60aE0Fd5qVRKAPrU1I1CCnWHz9Go5Y=; b=Kc8OJY/+AhN68NOxkIrzQIrZjewBuw5yC5qyNgyDpKbsOeKqZw5ZuBBO COcs8tTguxwjjiFMdggfdx91dg0y/RP8gmGU4S2rmAL3ABhaE30ORhllr jtuHREt3toOrKSIREDm58oMbfxxHpcp9W3UY/gH+KIKJDLVEcfQFvEiTy o=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 28 Jul 2022 06:06:21 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2022 06:06:21 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 28 Jul 2022 06:06:20 -0700 Received: from [10.216.53.81] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 28 Jul 2022 06:06:15 -0700 Message-ID: <00cd5620-a276-6e55-8997-fbf8285d9a9a@quicinc.com> Date: Thu, 28 Jul 2022 18:36:12 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] ASoC: qcom: SC7280: Add support for external DMIC bias supply Content-Language: en-US To: Mark Brown CC: , , , , , , , , , , , , , , , References: <1658992233-28372-1-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 7/28/2022 4:19 PM, Mark Brown wrote: Thanks for your time Mark!!! > On Thu, Jul 28, 2022 at 12:40:33PM +0530, Srinivasa Rao Mandadapu wrote: > >> +static int sc7280_dmic_micbias(struct snd_soc_dapm_widget *w, >> + struct snd_kcontrol *kcontrol, int event) >> +{ >> + struct snd_soc_card *card = w->dapm->card; >> + struct sc7280_snd_data *data = snd_soc_card_get_drvdata(card); >> + int ret = 0; >> + > This is open coding SND_SOC_DAPM_REGULATOR_SUPPLY() isn't it? Yes, agree that SND_SOC_DAPM_REGULATOR_SUPPLY can be used here. As I was using two different names for VDD supply property and widget name, got confused. I will re post the patch, with single name for both and replace with above macro .