[PATCH 14/14] ASoC: mediatek: mt8195: Fix clock parent error handling
From: phucduc . bui
Date: Fri Sep 25 2026 - 00:53:25 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Propagate the error returned by mt8195_afe_set_clk_parent() instead of
ignoring it.
This allows clock parent configuration failures to be properly handled
by the caller.
Fixes: 3de3eba588bb ("ASoC: mediatek: mt8195: support adda in platform driver")
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/mediatek/mt8195/mt8195-dai-adda.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/mediatek/mt8195/mt8195-dai-adda.c b/sound/soc/mediatek/mt8195/mt8195-dai-adda.c
index 94abde15ea09..8a58a142064d 100644
--- a/sound/soc/mediatek/mt8195/mt8195-dai-adda.c
+++ b/sound/soc/mediatek/mt8195/mt8195-dai-adda.c
@@ -262,9 +262,8 @@ static int mtk_audio_hires_event(struct snd_soc_dapm_widget *w,
default:
return 0;
}
- mt8195_afe_set_clk_parent(afe, clk, clk_parent);
- return 0;
+ return mt8195_afe_set_clk_parent(afe, clk, clk_parent);
}
static struct mtk_dai_adda_priv *get_adda_priv_by_name(struct mtk_base_afe *afe,
--
2.43.0