Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp424621lqt; Thu, 18 Apr 2024 22:47:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFDvce9qycKbpWwvVjojF0nuAeWHuwcI3s/hOP1TNeXTtWep+ifLP4Qvt4aAc2srUxfrShjGE6MifjaRh2K8n8Q3J3sNIPjUqbPO4yUg== X-Google-Smtp-Source: AGHT+IFWZIrlvTMbws0e2dF3V1HFUyqTaWihGlUN4C6c6xsHBOA9mrT21kYKgSqUDJ4f7WBiBNTC X-Received: by 2002:a17:906:e254:b0:a55:3662:1d89 with SMTP id gq20-20020a170906e25400b00a5536621d89mr557348ejb.58.1713505633951; Thu, 18 Apr 2024 22:47:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713505633; cv=pass; d=google.com; s=arc-20160816; b=zHELeUN/Q82aqhMXeAdaGxyPoGz04im6wpeXFazWaewppeKDiiNRd/lsXJe0LNBIh9 mX8SPt/oHBplsE/+jm9IVOW1kXcV+JkgDKykH+OXvB8AjlQgN1OWhyGDW7IHb7kkelpg Q1rK8OX1L/Vy077wuZVOodHZkWxc8GVV24yaiu9D4S6PsGrIBxd3iA7gfwFLRxVOYY0B P3eejDGz9PIr5zhynYNdA5nNKZnUf728Okfs0RbK25kzr0RkultIaQA2RB6qnYqVfWrQ q88DnbzhDIEgYMDTCIYwJc3PzGkx0h5AJas6rHLmS1Cd64QRG7TK7ITWzt+ljzJOkRLp QVXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=oqAAIaynXWTmCZkKAS87XgyHGXeDGz4/5vtU3XxRi9k=; fh=VbD0Ji3PL0uDGafwFTwZks+VPiabpx+Q5mSS30OYYb0=; b=ZQ+PNuViaFEdbM2+0K4BsN/bE+dIi+ml2jhTFR94Uq1gZRPDiU0Y72IuwdV10NGWwy ZXVkYPcnU4CS2s3YXdgnqHga2kuyOl9McqnNsS61blzlA+CxqTyCdV+jHPk1Lsttia4f iLSMwvlh2k3krSF1wJMNXUxmEL2+fgImpJY8TPGEG3GExoNb5t3uisAVr3VFidoS7qMg cm9udRSpOCjYbO4qku0kX/O/REBKfNWt1rMW24In0yyWQ+Oj3vJ8l7EdI3EKRxYIzzDB 6FFYhrE/L+GN3kqfw47h7CqIucn2PHz7qp76Rz6Wjv2Qx/PrnArdRF2OO/8F1xh8NT4n /8jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b="nfL/Ogdb"; arc=pass (i=1 spf=pass spfdomain=kali.org dkim=pass dkdomain=kali.org dmarc=pass fromdomain=kali.org); spf=pass (google.com: domain of linux-kernel+bounces-151022-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kz25-20020a17090777d900b00a465f0607bcsi1664471ejc.765.2024.04.18.22.47.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 22:47:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151022-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b="nfL/Ogdb"; arc=pass (i=1 spf=pass spfdomain=kali.org dkim=pass dkdomain=kali.org dmarc=pass fromdomain=kali.org); spf=pass (google.com: domain of linux-kernel+bounces-151022-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151022-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AA8631F21465 for ; Fri, 19 Apr 2024 05:47:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E25FCBE66; Fri, 19 Apr 2024 05:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kali.org header.i=@kali.org header.b="nfL/Ogdb" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 672118BE2 for ; Fri, 19 Apr 2024 05:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713505625; cv=none; b=SzFymL7wsm6F1yBcpnXwnb8qc49kfwJyABfKmdIqlNAGyKpyV2sD39rlKT1NBpxU6YdVe1N1QralnMXMciAERtQ2UP3ZxM+bmFikt1kPJTmb9aWho9e0pl9LqXTIjexA6Z0+7zG6TfMu3NoZtYAWC1uK1B5NQIZedAzSyJTtbiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713505625; c=relaxed/simple; bh=DDv5h5HCNwIchwKdYozppsYyGKsrmtNPVNB+kld7Csk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=cnT7tGwS5DEw248lLpeGHNneYXnoVFIVuHNaTo8lii1//urzW5LwOdH6yfxSIVsnuP8ONXawNP36Zr4aTnfE9MXN497RD5e8IWuIWyh06yk3vXVYGj/Pptrl1FiaIWJbfHltUs5CeBz6XHU5NMSjdK09f/Qh9DFpI5+aFaJRysk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kali.org; spf=pass smtp.mailfrom=kali.org; dkim=pass (2048-bit key) header.d=kali.org header.i=@kali.org header.b=nfL/Ogdb; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kali.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kali.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56e1baf0380so2039067a12.3 for ; Thu, 18 Apr 2024 22:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; t=1713505622; x=1714110422; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oqAAIaynXWTmCZkKAS87XgyHGXeDGz4/5vtU3XxRi9k=; b=nfL/OgdbIoRJnDu60SVDDlmDzVCPjYlzBJHlqCMDFG+gyyc47x2xlL2xPCP/0R7peV QMquifNbzIYgvY8AnW1cWcKwVgll8zDhauEpOKwgTbC12Jv7fvKq5BS9p7ACqGSxt7Z6 UJyb/gDxXkiICBkXrlEAN1V8W1C95FcRAPqc3p43ZYOW7FncmVz0EctmKeoIqFUzUzEE cnLuzNVtUiEpKZQ87fi/ffzconXyrScrBlgIfdBq7Znq+NDh4WYtPrjPT9Ra/ewJgbP8 PF6Daoab3FYKjdkLMTAYL9sPZt2pyxrzxdpP3mBjespiCz8yBy8XeaSuga1l0K7mWunQ Cpow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713505622; x=1714110422; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oqAAIaynXWTmCZkKAS87XgyHGXeDGz4/5vtU3XxRi9k=; b=QHBhmVjAA8Wihye8W0lQLg6/lmsPwhPCR2C8mfCQvsSUad7soo9bF1FbaJ5PzGx0bv Dmko9pBU0pkYXeRo8UcFW0pLXgrVbJD2dH85TGXhaab9i/TCqMx7vC6TucgYyPwrJLG9 oVWrpPOodVqbDtalnsLhK9jOkLzXM9hBnPydUsV9Ev234w3fnIzYxsjYY12tK4/YyCTu 1NOOpl+8sRZwCLCPAFq0m5jEKpGn0dsW1UwneBIH/R3DjNEjISPE5fBNanAmkbwBJzCO 7Tnzc4IAAlX5+FC+e5HeUqMIqmkiRUqtYe/IBs5pLyShu9pFkaSLIqZzBn98KTt6z593 K/Zg== X-Forwarded-Encrypted: i=1; AJvYcCW6gzcSKgoysViEMFMckwgJadaj9JHdwgXMm85heBdJaaV4Lnr87svDlLj+CcqCwlQ8gBDKCJdHNuKggWAqRgNYRIHay9Sz/PnF7iaP X-Gm-Message-State: AOJu0Yxx3EmL8/eYF5mEEuNN53srWrnvXYunBmt8RUIuD2I9DgyBGAiB JCXEWd5uVzZQaFzHymqAhmwVsU04tnz+Va8DiebZzAsmQw2lTxerArTidOqQtlnPjH4yrM9yK+r EssuW8PoE+8OaxNcTjSyjxIIcmWQ12YVgBUGdUQ== X-Received: by 2002:a50:c31c:0:b0:56c:2ef7:f3e6 with SMTP id a28-20020a50c31c000000b0056c2ef7f3e6mr748584edb.0.1713505621565; Thu, 18 Apr 2024 22:47:01 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240413064225.39643-1-jenneron@postmarketos.org> <20240413064225.39643-2-jenneron@postmarketos.org> <3b245ae8-31ee-4576-a123-0dc3aba4ce10@linaro.org> In-Reply-To: <3b245ae8-31ee-4576-a123-0dc3aba4ce10@linaro.org> From: Steev Klimaszewski Date: Fri, 19 Apr 2024 00:46:50 -0500 Message-ID: Subject: Re: [PATCH v1 1/1] soundwire: qcom: disable stop clock on 1.3.0 and below To: Srinivas Kandagatla Cc: Anton Bambura , Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Bard Liao , Pierre-Louis Bossart , Sanyog Kale , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Srini, On Wed, Apr 17, 2024 at 6:43=E2=80=AFAM Srinivas Kandagatla wrote: > > This is not the right fix, this can be determined from codec > clk_stop_mode1 flag. > > can you try this patch: > > ----------------------------->cut<----------------------------- > From: Srinivas Kandagatla > Date: Wed, 17 Apr 2024 12:38:49 +0100 > Subject: [PATCH] ASoC: codecs: wsa881x: set clk_stop_mode1 flag > > WSA881x codecs do not retain the state while clock is stopped, so mark > this with clk_stop_mode1 flag. > > Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support") > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/codecs/wsa881x.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c > index 3c025dabaf7a..1253695bebd8 100644 > --- a/sound/soc/codecs/wsa881x.c > +++ b/sound/soc/codecs/wsa881x.c > @@ -1155,6 +1155,7 @@ static int wsa881x_probe(struct sdw_slave *pdev, > pdev->prop.sink_ports =3D GENMASK(WSA881X_MAX_SWR_PORTS, 0); > pdev->prop.sink_dpn_prop =3D wsa_sink_dpn_prop; > pdev->prop.scp_int1_mask =3D SDW_SCP_INT1_BUS_CLASH | SDW_SCP_INT= 1_PARITY; > + pdev->prop.clk_stop_mode1 =3D true; > gpiod_direction_output(wsa881x->sd_n, !wsa881x->sd_n_val); > > wsa881x->regmap =3D devm_regmap_init_sdw(pdev, &wsa881x_regmap_co= nfig); > -- > 2.21.0 > ----------------------------->cut<----------------------------- > > > thanks, > Srini > > > if (!found) { > > qcom_swrm_set_slave_dev_num(bus, NULL, i); > > sdw_slave_add(bus, &id, NULL); > I tested it here on my c630 and can confirm that your patch does fix the audio as well.