]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: fsl_sai: Add asynchronous mode support
authorNicolin Chen <Guangyu.Chen@freescale.com>
Tue, 5 Aug 2014 07:32:05 +0000 (15:32 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:35 +0000 (21:18 -0600)
commita83f4d090def316fe862d053de60a1eb94e5e58d
treeb146b40a6eda68c15648aed8acc95f2426d1cc1a
parentf8cc69e56e1f3f535f658eb45945c832720e1b88
ASoC: fsl_sai: Add asynchronous mode support

SAI supports these operation modes:
1) asynchronous mode
   Both Tx and Rx are set to be asynchronous.
2) synchronous mode (Rx sync with Tx)
   Tx is set to be asynchronous, Rx is set to be synchronous.
3) synchronous mode (Tx sync with Rx)
   Rx is set to be asynchronous, Tx is set to be synchronous.
4) synchronous mode (Tx/Rx sync with another SAI's Tx)
5) synchronous mode (Tx/Rx sync with another SAI's Rx)

* 4) and 5) are beyond this patch because they are related with another SAI.

As the initial version of this SAI driver, it supported 2) as default while
the others were totally missing.

So this patch just adds supports for 1) and 3).

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 08fdf65e37d560581233e06a659f73deeb3766f9)
Documentation/devicetree/bindings/sound/fsl-sai.txt
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h