]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f6e1d799364cb7a15e8e995153b4741a0b8f50c
treeab1286cbed64158c8ab405885bd0c5bf444ab953
parentdd4a0ac5a66093ba1477238fa2d0e835dd935ff6
ASoC: fsl_sai: add sai master mode support

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>
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h