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:
parent
edddb2fbe4
commit
bb09e9d24b
1 changed files with 3 additions and 0 deletions
3
ac108.c
3
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);
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue