From bb09e9d24b481c1891fd8f9b1a925fd6a16ab020 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Sun, 13 Sep 2020 15:33:56 +0000 Subject: [PATCH] emit warning for calling ac108_set_sysclk() with unexpected arguments Don't know why Seeed Studio staff did not put it in. Conflicts: ac108.c --- ac108.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ac108.c b/ac108.c index 29e0a94..12ab27b 100644 --- a/ac108.c +++ b/ac108.c @@ -810,6 +810,9 @@ static int ac108_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int fr struct ac10x_priv *ac10x = snd_soc_dai_get_drvdata(dai); + if (freq != 24000000 || clk_id != SYSCLK_SRC_PLL) + dev_warn(dai->dev, "ac108_set_sysclk freq = %d clk = %d\n", freq, clk_id); + freq = 24000000; clk_id = SYSCLK_SRC_PLL;