ASoC: kirkwood: prefer external clock over internal clock
PATCH RESEND 1/1 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 Jean-Francois Moine <[email protected]>
---
This patch was initialy proposed by Russell, but with an erroneous 'else if'.
--- sound/soc/kirkwood/kirkwood-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/kirkwood/kirkwood-i2s.c +1 -1
@@ -103,7 +103,7 @@ static void kirkwood_set_rate(struct snd_soc_dai *dai, {uint32_t clks_ctrl; -if (rate ==44100 || rate ==48000 || rate ==96000 ) { +if (IS_ERR (priv->extclk)) {/* use internal dco for the supported rates * defined in kirkwood_i2s_dai */ dev_dbg(dai->dev, "%s: dco set rate = %lu\n",
Signature · 7 lines
Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/ _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Mark Brown
maintainerQuoted 3 lines · Jean-Francois Moine
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.
Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131020/b17dabc8/attachment.sig>