[PATCH v2 07/19] ASoC: codecs: lpass-wsa-macro: handle the macro & dcodec power domains

From: Neil Armstrong

Date: Tue Nov 24 2026 - 12:32:51 EST


When the LPASS is not handled by the ADSP firmware, the WSA macro lies
in the LPASS core and audio power domains like the RX, TX and VA
macros, so attach and power them with lpass_macro_pds_init() like
the other macro drivers.

Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
---
sound/soc/codecs/lpass-wsa-macro.c | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/sound/soc/codecs/lpass-wsa-macro.c b/sound/soc/codecs/lpass-wsa-macro.c
index 2b63954f783b..254b8faaa8a1 100644
--- a/sound/soc/codecs/lpass-wsa-macro.c
+++ b/sound/soc/codecs/lpass-wsa-macro.c
@@ -419,6 +419,7 @@ struct wsa_macro {
struct clk *macro;
struct clk *dcodec;
struct clk *fsgen;
+ struct lpass_macro *pds;
struct clk_hw hw;
};
#define to_wsa_macro(_hw) container_of(_hw, struct wsa_macro, hw)
@@ -2769,6 +2770,14 @@ static int wsa_macro_probe(struct platform_device *pdev)
if (IS_ERR(wsa->fsgen))
return dev_err_probe(dev, PTR_ERR(wsa->fsgen), "unable to get fsgen clock\n");

+ wsa->pds = lpass_macro_pds_init(dev);
+ if (IS_ERR(wsa->pds))
+ return PTR_ERR(wsa->pds);
+
+ ret = devm_add_action_or_reset(dev, lpass_macro_pds_exit_action, wsa->pds);
+ if (ret)
+ return ret;
+
base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);

--
2.34.1