ASoC: fsl_sai: add sai master mode support
authorZidan Wang <zidan.wang@freescale.com>
Mon, 11 May 2015 10:24:41 +0000 (18:24 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2015 18:43:51 +0000 (19:43 +0100)
When sai works on master mode, set its bit clock and frame clock.

SAI has 4 MCLK source, bus clock, MCLK1, MCLK2 and MCLK3. fsl_sai_set_bclk
will select proper MCLK source, then calculate and set the bit clock divider.

After fsl_sai_set_bclk, enable the selected mclk in hw_params(), and add
hw_free() to disable the mclk.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

No differences found