]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 13 Aug 2014 18:50:21 +0000 (19:50 +0100)
commit12fc792e7905ed3bfe25b0a206af5bd3fc82528e
treef362587cb952cb02048bd623f7d783749de0ebe6
parent23cab0c56a29c1d49795d031620f0edfc52a5937
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