[PATCH v3 16/16] ASoC: mediatek: mt8195: Fix clock parent error handling
phucduc.bui at gmail.com
phucduc.bui at gmail.com
Wed Oct 14 04:27:51 PDT 2026
From: bui duc phuc <phucduc.bui at gmail.com>
mtk_audio_hires_event() ignores the return value of
mt8195_afe_set_clk_parent(), so a failure to set the clock parent
goes unnoticed.
Return the error so that the DAPM core reports it.
Signed-off-by: bui duc phuc <phucduc.bui at gmail.com>
---
Changes in v3:
- Update the commit message for the DAPM error handling.
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
More information about the linux-arm-kernel
mailing list