]> 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)
committerMark Brown <broonie@linaro.org>
Sat, 16 Aug 2014 22:06:23 +0000 (17:06 -0500)
commit08fdf65e37d560581233e06a659f73deeb3766f9
treebc00286a0de8e4acaf70a62beb01b83723ad1f3c
parentaf96ff5b7448dc776dc24a5c4313c6ec1ee94e53
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>
Documentation/devicetree/bindings/sound/fsl-sai.txt
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h