]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Move the global registers setting to _dai_probe()
authorXiubo Li <Li.Xiubo@freescale.com>
Wed, 25 Dec 2013 03:20:14 +0000 (11:20 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 30 Dec 2013 12:00:56 +0000 (12:00 +0000)
commit8efb4d948d17fd514990918ff7f38c2b6b0d9430
tree0caa2620728565c9cbec51b2b2068445ebf36f99
parent95ef1276e1154fd768e26b8409dbdc0367cf1526
ASoC: fsl_sai: Move the global registers setting to _dai_probe()

Because we cannot make sure which one of _dai_fmt() and _dai_sysclk()
will be firstly called. So move the RCSR/TCSR and TCR1/RCR1's
initialization to _dai_probe(), and this can make sure that before any
of {T,R}CR{1~5} register to be set the RCSR/TCSR's RE/TE bit has been
cleared for the hareware limitation.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_sai.c