From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
To: Jonathan Marek <jonathan@marek.ca>, linux-arm-msm@vger.kernel.org
Cc: Srinivas Kandagatla <srini@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
"open list:QCOM AUDIO (ASoC) DRIVERS"
<linux-sound@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/9] ASoC: codecs: lpass-wsa-macro: fix path clock dependencies
Date: Wed, 19 Nov 2025 15:34:40 +0000 [thread overview]
Message-ID: <e20fc1f3-e5dc-4c06-863d-ca306758cbd8@oss.qualcomm.com> (raw)
In-Reply-To: <20251117051523.16462-4-jonathan@marek.ca>
On 11/17/25 5:15 AM, Jonathan Marek wrote:
> "WSA_RX0_CLK",etc. are path clocks, but "WSA RX0",etc. are ports, and there
> isn't a correspondence between the ports and paths.
> For example "WSA RX0" port could be used by the "RX1 MIX" path.
> The problem becomes obvious when RX4,etc. ports are added.
>
> Enabling the path clocks should depend on the path being enabled.
>
> With this fix, the main path clock will be enabled whenever the path is
> active: previously using the mix ports only would only activate the mix
> path clock and no audio would play.
>
> Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
#on T14s
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
> ---
> sound/soc/codecs/lpass-wsa-macro.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/codecs/lpass-wsa-macro.c b/sound/soc/codecs/lpass-wsa-macro.c
> index 06570e474c850..27c8c060cab19 100644
> --- a/sound/soc/codecs/lpass-wsa-macro.c
> +++ b/sound/soc/codecs/lpass-wsa-macro.c
> @@ -2496,10 +2496,8 @@ static const struct snd_soc_dapm_route wsa_audio_map[] = {
> {"WSA RX_MIX0", NULL, "WSA RX_MIX0 MUX"},
> {"WSA RX_MIX1", NULL, "WSA RX_MIX1 MUX"},
>
> - {"WSA RX0", NULL, "WSA_RX0_CLK"},
> - {"WSA RX1", NULL, "WSA_RX1_CLK"},
> - {"WSA RX_MIX0", NULL, "WSA_RX_MIX0_CLK"},
> - {"WSA RX_MIX1", NULL, "WSA_RX_MIX1_CLK"},
> + {"WSA_RX INT0 MIX", NULL, "WSA_RX0_CLK"},
> + {"WSA_RX INT1 MIX", NULL, "WSA_RX1_CLK"},
>
> {"WSA_RX0 INP0", "RX0", "WSA RX0"},
> {"WSA_RX0 INP0", "RX1", "WSA RX1"},
> @@ -2529,6 +2527,8 @@ static const struct snd_soc_dapm_route wsa_audio_map[] = {
> {"WSA_RX0 MIX INP", "RX1", "WSA RX1"},
> {"WSA_RX0 MIX INP", "RX_MIX0", "WSA RX_MIX0"},
> {"WSA_RX0 MIX INP", "RX_MIX1", "WSA RX_MIX1"},
> + {"WSA_RX0 MIX INP", NULL, "WSA_RX0_CLK"},
> + {"WSA_RX0 MIX INP", NULL, "WSA_RX_MIX0_CLK"},
> {"WSA_RX INT0 SEC MIX", NULL, "WSA_RX0 MIX INP"},
>
> {"WSA_RX INT0 SEC MIX", NULL, "WSA_RX INT0 MIX"},
> @@ -2568,6 +2568,8 @@ static const struct snd_soc_dapm_route wsa_audio_map[] = {
> {"WSA_RX1 MIX INP", "RX1", "WSA RX1"},
> {"WSA_RX1 MIX INP", "RX_MIX0", "WSA RX_MIX0"},
> {"WSA_RX1 MIX INP", "RX_MIX1", "WSA RX_MIX1"},
> + {"WSA_RX1 MIX INP", NULL, "WSA_RX1_CLK"},
> + {"WSA_RX1 MIX INP", NULL, "WSA_RX_MIX1_CLK"},
> {"WSA_RX INT1 SEC MIX", NULL, "WSA_RX1 MIX INP"},
>
> {"WSA_RX INT1 SEC MIX", NULL, "WSA_RX INT1 MIX"},
next prev parent reply other threads:[~2025-11-19 15:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-17 5:15 [PATCH 1/9] ASoC: codecs: lpass-wsa-macro: remove unnecessary bounds check Jonathan Marek
2025-11-17 5:15 ` [PATCH 2/9] ASoC: codecs: lpass-wsa-macro: remove useless gain read/write sequence Jonathan Marek
2025-11-19 15:36 ` Srinivas Kandagatla
2025-11-19 15:36 ` Srinivas Kandagatla
2025-11-17 5:15 ` [PATCH 3/9] ASoC: codecs: lpass-wsa-macro: remove mix path event Jonathan Marek
2025-11-19 15:34 ` Srinivas Kandagatla
2025-11-17 5:15 ` [PATCH 4/9] ASoC: codecs: lpass-wsa-macro: fix path clock dependencies Jonathan Marek
2025-11-19 15:34 ` Srinivas Kandagatla [this message]
2025-11-17 5:15 ` [PATCH 5/9] ASoC: codecs: lpass-wsa-macro: add volume controls for mix path Jonathan Marek
2025-11-19 15:34 ` Srinivas Kandagatla
2025-11-17 5:15 ` [PATCH 6/9] ASoC: codecs: lpass-wsa-macro: remove main path event Jonathan Marek
2025-11-19 15:34 ` Srinivas Kandagatla
2025-11-17 5:15 ` [PATCH 7/9] ASoC: codecs: lpass-wsa-macro: add RX4 and RX5 Jonathan Marek
2025-11-19 15:33 ` Srinivas Kandagatla
2025-11-19 17:13 ` Jonathan Marek
2025-11-17 5:15 ` [PATCH 8/9] ASoC: codecs: lpass-wsa-macro: remove unused WSA_MACRO_RX_MIX enum Jonathan Marek
2025-11-19 15:33 ` Srinivas Kandagatla
2025-11-17 5:15 ` [PATCH 9/9] ASoC: codecs: lpass-rx-macro: fix mute_stream affecting all paths Jonathan Marek
2025-11-19 15:33 ` Srinivas Kandagatla
2025-11-19 15:35 ` [PATCH 1/9] ASoC: codecs: lpass-wsa-macro: remove unnecessary bounds check Srinivas Kandagatla
2025-11-20 9:40 ` (subset) " Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e20fc1f3-e5dc-4c06-863d-ca306758cbd8@oss.qualcomm.com \
--to=srinivas.kandagatla@oss.qualcomm.com \
--cc=broonie@kernel.org \
--cc=jonathan@marek.ca \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=srini@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox