Commit 1f1b6579 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mark Brown

ASoC: kirkwood: prefer external clock over internal clock

When there is an external clock, always use this one.
This prevents the two Dove audio devices to use the same DCO clock
at different rates.
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent e2c9917b
...@@ -103,7 +103,7 @@ static void kirkwood_set_rate(struct snd_soc_dai *dai, ...@@ -103,7 +103,7 @@ static void kirkwood_set_rate(struct snd_soc_dai *dai,
{ {
uint32_t clks_ctrl; uint32_t clks_ctrl;
if (rate == 44100 || rate == 48000 || rate == 96000) { if (IS_ERR(priv->extclk)) {
/* use internal dco for the supported rates /* use internal dco for the supported rates
* defined in kirkwood_i2s_dai */ * defined in kirkwood_i2s_dai */
dev_dbg(dai->dev, "%s: dco set rate = %lu\n", dev_dbg(dai->dev, "%s: dco set rate = %lu\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment