]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite6dc12d7198eddba2e3e7a13feab5c7edde7ba1d
tree0caa2620728565c9cbec51b2b2068445ebf36f99
parent4e3a99f5b004b30bc604d82e5498700649148e0d
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