From patchwork Thu Mar 23 16:43:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 666139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E97FDC761AF for ; Thu, 23 Mar 2023 16:45:41 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0F34FECE; Thu, 23 Mar 2023 17:44:49 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0F34FECE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1679589939; bh=j1+rjliOoMwpOo6oBxWTV8LTlVszSnP2Ss4RNNsBvZg=; h=From:To:Subject:Date:CC:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=psUd7veJNoltXJgKU7zKxsFpHN9kMS98fihxuhqbZ5KqY8ktH6NldiFn6DJslsTE9 eP36h+KriOMfyqKwQ5SqHVu+qAbuW778wqDifzR8LXZ8UNgmqLS3wYw73DAu1K5/6n fbwPj/JvaR1WmgCXGsGae8X8qM5jeXTtXQ0jiBkI= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5F054F80482; Thu, 23 Mar 2023 17:44:26 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 71BA6F804FE; Thu, 23 Mar 2023 17:44:21 +0100 (CET) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 18E6BF80254 for ; Thu, 23 Mar 2023 17:44:14 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 18E6BF80254 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=i8j2uvRh Received: by mail-ed1-x52b.google.com with SMTP id ew6so26502393edb.7 for ; Thu, 23 Mar 2023 09:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679589853; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aq8I2aQyBQpQohRa/OmaNRySLUW3o0D8LtVSY1bY2Uk=; b=i8j2uvRhu/5srg+g6xmmwsESyfuQnVDMI5KyBWiLslaiqQL7dU9DU84/TdN0Q+eLzw 6taTI13nhfp2y2YEGn0Hrr4kFVGXb78eIEcExnJVzfYHGz/ZmXYZL020gxxZu8OA7Ocq Sv4XUZJ4SOq1DcAZj7aWgqq1kE6aQX8NQJ3mav4r9NEvrgZ/eY5b1OkgT/1Dl+f4QSfM f/VmnMVblSBhhO9mU28hArJ6fqDOLiGNGTfyVgy9ZK/jFg/ee3YNTUPwHJUgBWAESz67 z49b5h51zWrldIzaGa1AuFx+MI1hQWXSo5yu4yjbndx8fmGpJCt4yuwekJkiQowWtGUO Mfng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679589853; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aq8I2aQyBQpQohRa/OmaNRySLUW3o0D8LtVSY1bY2Uk=; b=Pll8WioqMAe5+re9eTiifhDWAZnXc5+GwBaemnfSRnZzIwKcDsHqpI3iHUm0NyJj6u R2K5p/bV9ST67MwWzYFrq7InbOJxOKlRYzzQn7op0vj4ubbFvMihWPkikOnRBQQAeEdv 9TN3dotv4Lf3dQeLRlS6cVSCVF9ARASScQMP01qQMLH3oWbfPkm4JjrwwUQK2u11NoHQ BGOclk2vKSJEYi3q22WKslR5O68Y0nrJsPrIpNb4OYLVHkkdu8p98RkOCoRIewiAZhtF RD+7wdc/bbKWSorJxdAPw7LaAT+DKzwHwYepN6WjQ8t/KlqkDTOkCvl71SE7GNukCSEb fw0w== X-Gm-Message-State: AO0yUKVqBwdTttBGdjb7LZtGJQnkBBwJXq/gp/m1fk8KflZrZjrOFfjh rKJSTK03WK0d/H866HepOdAvJQ== X-Google-Smtp-Source: AK7set969B/opsIF2lkPrgqWd55/tFs4Pt60GbdmFaX5Rle7aj7sZbfopjrhzqmZAx1xHx5JbfZGVQ== X-Received: by 2002:aa7:d34a:0:b0:4fd:2b05:aa2 with SMTP id m10-20020aa7d34a000000b004fd2b050aa2mr10877110edr.42.1679589853009; Thu, 23 Mar 2023 09:44:13 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id m10-20020a50998a000000b004e48f8df7e2sm9542187edb.72.2023.03.23.09.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 09:44:12 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Subject: [PATCH 0/4] ASoC: qcom: fixes for Click/Pop Noise Date: Thu, 23 Mar 2023 16:43:59 +0000 Message-Id: <20230323164403.6654-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Message-ID-Hash: TZG3DMLO26HDSFUFUY653USLGNEXSKD6 X-Message-ID-Hash: TZG3DMLO26HDSFUFUY653USLGNEXSKD6 X-MailFrom: srinivas.kandagatla@linaro.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, johan+linaro@kernel.org, steev@kali.org, dmitry.baryshkov@linaro.org, Srinivas Kandagatla X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 patches help fix those issues by making sure the PA is Muted/Unmuted inline with the stream start/stop events. Other than this there is a patch to fix DSP graph saturation issue as we never unload playback graph before loading same graph. Srinivas Kandagatla (4): ASoC: qcom: q6apm-lpass-dai: close graphs before opening a new one ASoC: qcom: sdw: do not restart soundwire ports for every prepare ASoC: codecs: wsa883x: mute/unmute PA in correct sequence ASoC: codecs: wsa881x: mute/unmute PA in correct sequence sound/soc/codecs/wsa881x.c | 30 ++++++++++++++++++++- sound/soc/codecs/wsa883x.c | 36 ++++++++++++++++++++----- sound/soc/qcom/qdsp6/q6apm-lpass-dais.c | 3 +++ sound/soc/qcom/sdw.c | 7 ++--- 4 files changed, 63 insertions(+), 13 deletions(-)