[PATCH RFC 08/23] ASoC: qcom: lpass-cpu: get the optional codec_mem3 clock

From: Neil Armstrong

Date: Fri Nov 13 2026 - 17:39:13 EST


Some SoCs like SM8650 have a 4th codec LPM block, gated by its own
codec_mem3 clock, which the driver doesn't get.

Get the optional audio_cc_codec_mem3 clock with the other codec DMA clocks.

Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
---
sound/soc/qcom/lpass-cpu.c | 4 ++++
sound/soc/qcom/lpass.h | 1 +
2 files changed, 5 insertions(+)

diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
index ee187eeb7392..ea8b6083529c 100644
--- a/sound/soc/qcom/lpass-cpu.c
+++ b/sound/soc/qcom/lpass-cpu.c
@@ -1071,6 +1071,10 @@ static int of_lpass_cdc_dma_clks_parse(struct device *dev,
if (IS_ERR(data->codec_mem2))
return PTR_ERR(data->codec_mem2);

+ data->codec_mem3 = devm_clk_get_optional(dev, "audio_cc_codec_mem3");
+ if (IS_ERR(data->codec_mem3))
+ return PTR_ERR(data->codec_mem3);
+
data->va_mem0 = devm_clk_get(dev, "aon_cc_va_mem0");
if (IS_ERR(data->va_mem0))
return PTR_ERR(data->va_mem0);
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
index 68b71039b981..4231466928d4 100644
--- a/sound/soc/qcom/lpass.h
+++ b/sound/soc/qcom/lpass.h
@@ -107,6 +107,7 @@ struct lpass_data {
struct clk *codec_mem0;
struct clk *codec_mem1;
struct clk *codec_mem2;
+ struct clk *codec_mem3;
struct clk *va_mem0;

/* MI2S SD lines to use for playback/capture */

--
2.34.1