Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1095398rdh; Fri, 27 Oct 2023 04:52:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKCBG8tKHkqIeGbNYXdAV1M0MaRhEkgYlWekVBzRyhIIGYHAabG2Sg7dKhL/Q4p8+gVdRj X-Received: by 2002:a25:ab10:0:b0:d7b:9211:51a5 with SMTP id u16-20020a25ab10000000b00d7b921151a5mr2089725ybi.44.1698407553709; Fri, 27 Oct 2023 04:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698407553; cv=none; d=google.com; s=arc-20160816; b=fm1/wejFNqZHlk8O3RF6gfZrLv/0baLzPhsAylFXSPEZBq+dTGyYtY/HrUrSO2Q1dU FCtLvBV6kPhpUtSkHi9DKJWKbPIfduS3VDpXzA3Ob7Wvo81ZNv2UDJeGR6QtNaZiEat3 kqV/sL+xpIiO+ygVnPEMSjLpnzYZ+39r8Q9yqzXGuUinJic8d5pKNRi8KKCmVWmmuyY4 7KOyfWVN9PSkNfmRqwXWQgUN/KsSX77ihRQ7ayrDcXEWl0pUNVS986/eQYxs87H9vNiD F4T66RXmfIk7SW24F/y1HHS5wDlDWvG8Akmxl6F1qBcOpcFAw8PmVwdLjosTJAIRtJ4w bOTA== 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=tBGOteVrljUHJvm9MEGrjjL6UEAiS20l40rXoFydcE8=; fh=P4OLbdvR5SLDj3uAUqWgEhvUiiNWaRf2zCDE629ic+4=; b=CNA46cukmCVPaHZvH7NnieK9/ot9qmQVDINB9+gn+qir1EyJlIloMX0wDCDZudF8MO Jyrv98jZSLjhc1GouRTy7pVctSGdrG7hhJQlksIwu+dIuIPhyaPcyNsLG++AuoLZU1hs Hwp3UUylF3+9c48LNUjD06oKWBibgqDqMsvuTGvNOdb+FQfmd55Un9kHOY1lsikYP9eS 73KAAisaxmDMEe5OQMdtVL0ML1rc7DPn0/KnoxoHueWKXpejhSosC9NRuqgO0wGZ2Tai 3XSp8h3nW34l18GakWcGk3EB3zg7WGloYr+W7CO+wtYt7wR9YsovgyEhWuzB5vRNaiE2 bFIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lN6z7kMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h204-20020a25d0d5000000b00d7b9fad2573si2537119ybg.213.2023.10.27.04.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 04:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lN6z7kMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 878C281D273E; Fri, 27 Oct 2023 04:51:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231622AbjJ0Lvw (ORCPT + 99 others); Fri, 27 Oct 2023 07:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345783AbjJ0Lvs (ORCPT ); Fri, 27 Oct 2023 07:51:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A631D43 for ; Fri, 27 Oct 2023 04:51:46 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F2CC433C7; Fri, 27 Oct 2023 11:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698407506; bh=F9LC6GHBHY7uAatNHDSxSic7rHVxZ1n+xDOqhkfiSWU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lN6z7kMbFfGnHS0I+C5BALxSNL3/YKgwnGYJo2rNUXMYJNxbh5Ae/FcsrXCicyyqE RAYVpqwZCpGGWRqfC7YXS1W38K3bDdoTGy+Xpli+nFdDYGvRF8+iD5VyxHvElv58Dx aiNEgHnleSU1bVRRPnMcSf8oPmHlx0jpMIjVEWBrKVNdCsgCpBuZBEJ4MYha5QHPur onrewUlId/MpBMbXo14gig4je18qT7GQQelVo7GKQEFxel+yTibWRvG37QKFLxt+ec ao78gN0PYkNi1L+639uiFC9Q7X6WyNxN+pL1I4AqktE8QnlL/4FVWLzi16l1XnUjj1 fB+dXfUCMJRkA== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qwLNr-0005u7-1z; Fri, 27 Oct 2023 13:52:11 +0200 Date: Fri, 27 Oct 2023 13:52:11 +0200 From: Johan Hovold To: Srinivas Kandagatla Cc: broonie@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027105747.32450-1-srinivas.kandagatla@linaro.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 04:51:57 -0700 (PDT) On Fri, Oct 27, 2023 at 11:57:45AM +0100, 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. > > This patchset adds a new flag mute_unmute_on_trigger to dai_ops to let > generic code do the mute/unmute on trigger. > > This patches help fix those issues by making sure the PA is Muted/Unmuted > inline with the stream start/stop events. > > Srinivas Kandagatla (2): > ASoC: soc-dai: add flag to mute and unmute stream during trigger > ASoC: codecs: wsa883x: make use of new mute_unmute_on_trigger flag I've verified that this fixes the pop sounds when starting and stopping a stream on the X13s, even if the click sound when killing pulseaudio (e.g. on reboot) is still there (as with the previous fixes). Tested-by: Johan Hovold If these are accepted, can we get them backported to 6.5 as well? Johan