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
This commit is contained in:
Hin-Tak Leung 2020-09-13 15:33:56 +00:00
parent edddb2fbe4
commit bb09e9d24b
1 changed files with 3 additions and 0 deletions

View File

@ -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); 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; freq = 24000000;
clk_id = SYSCLK_SRC_PLL; clk_id = SYSCLK_SRC_PLL;