[PATCH 10/14] ASoC: mediatek: mt8195: Fix ETDM MCLK error handling
From: phucduc . bui
Date: Fri Sep 25 2026 - 00:52:23 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Propagate errors from mt8195_afe_enable_clk() when enabling the
ETDM MCLK instead of always returning success.
This allows callers to properly handle failures when enabling the
MCLK.
Fixes: 1de9a54acafb ("ASoC: mediatek: mt8195: support etdm in platform driver")
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
index 1a20adb2cbf5..fba51c552eec 100644
--- a/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
+++ b/sound/soc/mediatek/mt8195/mt8195-dai-etdm.c
@@ -1549,9 +1549,7 @@ static int mtk_dai_etdm_enable_mclk(struct mtk_base_afe *afe, int dai_id)
if (clkdiv_id < 0)
return -EINVAL;
- mt8195_afe_enable_clk(afe, afe_priv->clk[clkdiv_id]);
-
- return 0;
+ return mt8195_afe_enable_clk(afe, afe_priv->clk[clkdiv_id]);
}
static int mtk_dai_etdm_disable_mclk(struct mtk_base_afe *afe, int dai_id)
--
2.43.0