OSDN Git Service

ASoC: fsl_esai: refine esai for TDM support
authorShengjiu Wang <shengjiu.wang@freescale.com>
Fri, 8 Aug 2014 06:47:21 +0000 (14:47 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 16 Aug 2014 22:06:15 +0000 (17:06 -0500)
commitde0d712a6dd1eed097dc6aa4f97ee461949414fe
treecb3dcac44a83910df695c77121c4cfdec93de9fa
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
ASoC: fsl_esai: refine esai for TDM support

Original driver didn't store the number of slots, just fix the slot number
to 2, use this default number to calculate bclk and pins for TX/RX.
In this patch, add one parameter for slots, and update the calculation of
bclk and pins of TX/RX. Then driver will be compatible with slots > 2 in
TDM mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_esai.c
sound/soc/fsl/fsl_esai.h