Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1244730rdh; Fri, 27 Oct 2023 08:32:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEueifYNgmMhwIggime6GI3zi83KJCiMXdJM53hwgsnU777b0L9NuP/mn1/I9Rh3q953HtJ X-Received: by 2002:a25:824e:0:b0:da0:6179:95ac with SMTP id d14-20020a25824e000000b00da0617995acmr2548429ybn.48.1698420773391; Fri, 27 Oct 2023 08:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698420773; cv=none; d=google.com; s=arc-20160816; b=zCZIy0biOuode04BlikTt3aaSVFmk3p33DuCZhaQLY8OlPu0jU5+1yPYJb2Sp4Qovd O5BElwObb1W7c0kRCnOeleqMW23DRq6zq+fNKL1eqYb2Yr0KaG7bVLvLLn36Hb19QEOo Vq1HH5oXhVNuq4XIsvnyzT5x3iSYfdl9gsgQbkXDpAA5SklNEStkU+urieMnLE/7WxdB BlhFCilq1iK6nmgtwpFcwEh/KD/3ajc8kH5LcmiSqLCmztEVmTdds54hiqQ73uaxuDa9 spISd1IJ4unr7NdxBfHoliu3uxVeOWR+KMRv2ZSLUi96ReIXl6xLyO6fItVN2tbOzCF8 0k2Q== 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=7M4Mv/n8O77B84R4HBNSd4NbRyeD61VWwmLx+NofIEo=; fh=FG9yWaSNPMIDtFD7Lm6yoNHDfON+kO3g9WkJaNlRiVk=; b=s9vPv4CsIkczy1+u+RgJcBrbGHRflIke4v3SKCMN3KmxXmThYWAzsb0UGVDfMhurLR Bt7rwnArp3GQ1GaL2onX8LwiP8BH+9mb/KQacnMVoRLPXttFTP+m3Eh5GeI/ngNA8n0X xjkL20T3bN09BuqOlHfpbsDVBGQa9aELmKmUCW+39guaXDbe8mWts1vCQp7C5IjiOTFy +kswgT2PEOFBz2Ybm1MH3rUCCmtGBpKkkXQwG8K4jU5JuTaHP9juVO4Ed0a/gVYrB1oZ LNJa8BdTYBg5cJDBr3xqn1y1ERK4Txu7qvwQqslJNQ07siIMTwKdph7Kc73hq5rOulu+ samA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M1aMFD/p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f12-20020a5b0c0c000000b00d9aed39121dsi3114431ybq.263.2023.10.27.08.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 08:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M1aMFD/p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D8C4E838B3E7; Fri, 27 Oct 2023 08:32:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346269AbjJ0Pct (ORCPT + 99 others); Fri, 27 Oct 2023 11:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235119AbjJ0Pcr (ORCPT ); Fri, 27 Oct 2023 11:32:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D83DE186 for ; Fri, 27 Oct 2023 08:32:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4065C433CC; Fri, 27 Oct 2023 15:32:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698420764; bh=aChtwQGdHEGlL/2vHSMUTmEjJHwKdxF69/sIZezXbkg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M1aMFD/pecquhT5urGcllCPxNxNhhAJ+4z2/3M2sxxhBbVXvc7yJ9VmyhScgBJ7yX 7RWIP1Wf3E6EJrvlyBYkvT5cFH0l677Y5Uz89WoRLJlna37ukA7h786W7n4sIT28UW TuX8Tg7tdBWbvizs8EWM0as6WJTl9RM99yD08BuvFg6TGpsFnYZ4et3B5nVSHmCBA0 mRiYmOxQNwKFvrbzpwMEWy1zTbGivYGTYo6OabXnxzUbnE1tR9ATX5xMq8u705BPUu /b9lACQs1snP+ZThGBH3V5HbfO2S+D3GfSswdkEfQnDXrYvAt6SJd3cg+OpMJMP/6l 9a7imxoufexgA== Date: Fri, 27 Oct 2023 16:32:39 +0100 From: Mark Brown To: Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= Cc: Srinivas Kandagatla , johan@kernel.org, perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [RFC PATCH 0/2] ASoC: soc-dai: add flag to mute and unmute stream during trigger. Message-ID: References: <20231027105747.32450-1-srinivas.kandagatla@linaro.org> <54c44548-c2e4-466d-bfe4-b48db9e5d20c@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9XWll2GzhA2eHJ8H" Content-Disposition: inline In-Reply-To: <54c44548-c2e4-466d-bfe4-b48db9e5d20c@linux.intel.com> X-Cookie: Save energy: Drive a smaller shell. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 08:32:52 -0700 (PDT) --9XWll2GzhA2eHJ8H Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 27, 2023 at 02:00:13PM +0200, Amadeusz S=C5=82awi=C5=84ski wrot= e: > On 10/27/2023 12:57 PM, Srinivas Kandagatla wrote: > > Click/Pop Noise was a long pending issue with WSA Codecs which are prone > > to accumlate DC when ports are active but without any data streams. > > There are multiple places in the current setup, where this could happen > > in both startup as well as shutdown path. > Have you tried something like: > diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c > index e40d583a1ce6..f02362cf95dc 100644 > --- a/sound/soc/codecs/wsa883x.c > +++ b/sound/soc/codecs/wsa883x.c =2E.. > WSA883X_VBAT_ADC_COEF_F_1DIV2); > + snd_soc_component_write_field(component, WSA883X_DRE_CTL_= 1, > + WSA883X_DRE_GAIN_EN_MASK, 0= ); > snd_soc_component_write_field(component, WSA883X_PA_FSM_C= TL, =2E.. > As it is one thing from wsa883x_digital_mute() which seems missing in > SND_SOC_DAPM_PRE_PMD switch case, so it seems to leave GAIN always enable= d? >=20 > Anyway this seems like something that if possible should be fixed on codec > driver side instead of introducing global flag? If the issue is that the device misbehaves as soon as the incoming data stream stops then we need to do something strictly before we do the actual trigger operation which we don't currently have hooks for. Even if we run quickly after the trigger there's going to be a window where there's no incoming audio and no mute. --9XWll2GzhA2eHJ8H Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmU72BcACgkQJNaLcl1U h9BJdAf+MgNS4dzqiUaPAPLBuQUJ8Eds5JgTvgd3LKT+ci6/ihqIo1ohl8ioniwe qDfG8kH2PGHNtVh6V0ZscNaO2Q3tH4CZThajaxH001HBk71wAFIUg+6vI9jt398v gbg42Pvss2VLiDiapocyo9f84icai+r8rB6HKdVogHAuFwzyGL0OBjkF7bEPBleF 6FAY8tkbmGzcvj4/nN9iKnhkD4Sw4uGfGYQ/LPFv4I/62I+3NyIGsExKYDs/c9bP k2rWh8EX/FngG+qXZxxvDjL/OOY5omvv6nTiHe+yWnga2028i2dT09KEdDkhiqm+ Ci1KBcmqgkk17tL/brBL14W5BxkOpA== =vQG3 -----END PGP SIGNATURE----- --9XWll2GzhA2eHJ8H--