Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp425535pxj; Fri, 14 May 2021 06:51:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWB+XqecAIi0FXyspzD4Ud0uH3+zEQ9tNzjjBegbWYIrTdJhsIJz60+7kZTIqxKSs/J4TU X-Received: by 2002:a02:764b:: with SMTP id z72mr43275698jab.144.1621000266099; Fri, 14 May 2021 06:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621000266; cv=none; d=google.com; s=arc-20160816; b=dgYHsC7igR6vy65T5nZZHCGchxz93PV+ObRnMIp26u7Dmz1Y223nmtRpUXgi5mBvRI K7ckTD3BeckwS4j2IxCDLNRCmzgujWolDUUDJrRKq9R16QAIDWLpsSbedvbeMZgO1BYe 4+Q5P/ik8YxDh+hmZGUwaFTO1A2hDNT8yY53GQ+//dGbn2zMU1TzZmSI2eauFB/IzsEy Gu6sW8MZGmXMW3Tbr7va7F9uHrkMYTaStToITLqNOBzNdvBXUCoqeWqXdZ7is1SB13K9 qbQz4Uer6+GQhl8fUzT6+ZFetM8nnFbQREbUr1xFKeuUQGHF8fMFv96oOz8sAIUW0vCK 9NQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dmarc-filter:sender:dkim-signature; bh=d51erDtkha1RR6bdcED15Fv71pub36quAgP8GlBGWEc=; b=Jl58fFxFV+EBeYTUO1KmZ3CUSIExzV8646A1biTuhGFfj30/phnVT7vDNRHRXjc04c Cq3uBgmjhZ88oy+3kD2sEh+JgK3tRpJbps+peA24peMrk7xYFbQZVMvTRY5nBCwADt+9 WyY4/hoGLjdSSmAwGzLo3xPdhdYjSE3pMHthkIgne4+9NXusETK5P4yWnbNGGng4cYlG b8jfjkvP4kimsyUkDLo0StVl8F7ohv7oqQyKoOm86DGaROd+ZKBmywse9CrDzfi+52e/ DCyopk9Bl1WRpJvqlgyK0ssoAgAkNuyd9+ToA9da6TSpdGYc0lGQXt4Smaz2zdeLeOxt 5u4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BzNKgoMw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si7073427iln.153.2021.05.14.06.50.51; Fri, 14 May 2021 06:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BzNKgoMw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231336AbhENGwJ (ORCPT + 99 others); Fri, 14 May 2021 02:52:09 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:43015 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbhENGwI (ORCPT ); Fri, 14 May 2021 02:52:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1620975058; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=d51erDtkha1RR6bdcED15Fv71pub36quAgP8GlBGWEc=; b=BzNKgoMwYouCC+lbEX6uyFkBILCdCoxAXqlu240kHs4xPnBX7hRPu3ZNphCrDd84DJDKvW6v 18WtfVhFH4Rew2vqxFuE2ZRzIe2fUWAdp8VM9YSNt441qEHhMvLNOzYazo2JOmoU7KdHNGkE 4g6MOlGAPULnJV9MzHjfQ+oC6pU= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 609e1dd0c7220f8fd36165c7 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 14 May 2021 06:50:56 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CE409C43144; Fri, 14 May 2021 06:50:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.100] (unknown [157.48.128.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 399BFC433F1; Fri, 14 May 2021 06:50:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 399BFC433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=srivasam@codeaurora.org Subject: Re: [PATCH] ASoC: qcom: lpass-cpu: Fix pop noise during audio capture begin To: Mark Brown Cc: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org References: <20210513114539.4813-1-srivasam@codeaurora.org> <20210513133132.GC5813@sirena.org.uk> From: Srinivasa Rao Mandadapu Organization: Qualcomm India Private Limited. Message-ID: Date: Fri, 14 May 2021 12:20:46 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210513133132.GC5813@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Brown, Thanks for your review comments!!! On 5/13/2021 7:01 PM, Mark Brown wrote: > On Thu, May 13, 2021 at 05:15:39PM +0530, Srinivasa Rao Mandadapu wrote: > >> + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { >> + ret = regmap_fields_write(i2sctl->spken, id, >> + LPAIF_I2SCTL_SPKEN_ENABLE); >> + } else { >> + ret = regmap_fields_write(i2sctl->micen, id, >> + LPAIF_I2SCTL_MICEN_ENABLE); >> + } > This commit doesn't remove the matching update in triger() so we'd have > two redundant updates. I guess it's unlikely to be harmful but it looks > wrong/confusing. Yes, It's not harmful, as clk_prepare_enable is enabling clock only once but maintaining count. As Some times in Suspend/resume Sequence not hitting startup/shutdown, but Trigger, so for maintaining consistency not removed in trigger. -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.