[PATCH 05/10] ASoC: mediatek: mt8196: propagate main clock errors

From: phucduc . bui

Date: Tue Sep 29 2026 - 02:12:37 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

Propagate errors from the main clock enable and disable operations
instead of always returning success.

Fixes: 7384ecab34eb ("ASoC: mediatek: mt8196: support audio clock control")
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/mediatek/mt8196/mt8196-afe-clk.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sound/soc/mediatek/mt8196/mt8196-afe-clk.c b/sound/soc/mediatek/mt8196/mt8196-afe-clk.c
index 6198711e01b5..dbfd02d20338 100644
--- a/sound/soc/mediatek/mt8196/mt8196-afe-clk.c
+++ b/sound/soc/mediatek/mt8196/mt8196-afe-clk.c
@@ -598,14 +598,12 @@ int mt8196_afe_disable_reg_rw_clk(struct mtk_base_afe *afe)

int mt8196_afe_enable_main_clock(struct mtk_base_afe *afe)
{
- mt8196_afe_enable_top_cg(afe, MT8196_AUDIO_26M_EN_ON);
- return 0;
+ return mt8196_afe_enable_top_cg(afe, MT8196_AUDIO_26M_EN_ON);
}

int mt8196_afe_disable_main_clock(struct mtk_base_afe *afe)
{
- mt8196_afe_disable_top_cg(afe, MT8196_AUDIO_26M_EN_ON);
- return 0;
+ return mt8196_afe_disable_top_cg(afe, MT8196_AUDIO_26M_EN_ON);
}

int mt8196_init_clock(struct mtk_base_afe *afe)
--
2.43.0