]> 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)
commit7571c8fb4b8fff16614520265a57392421838b5f
treeab1286cbed64158c8ab405885bd0c5bf444ab953
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
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