diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-04 07:31:46 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 12:24:24 -0400 |
commit | 423761e0cab39c98f0fd9387ea44b98c2a4ca6fa (patch) | |
tree | 0cc76801508a6b058495188209d222e3d9dd7466 | |
parent | ffd950f75dd71f13194b5d5c8ec67926a1996102 (diff) |
ASoC: davinci-mcasp: Support for LEFT_J format
Configuration for LEFT_J format.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index d4d640004bed..2b6722024fbd 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -302,6 +302,13 @@ static int davinci_mcasp_set_dai_fmt(struct snd_soc_dai *cpu_dai, | |||
302 | /* FS need to be inverted */ | 302 | /* FS need to be inverted */ |
303 | inv_fs = true; | 303 | inv_fs = true; |
304 | break; | 304 | break; |
305 | case SND_SOC_DAIFMT_LEFT_J: | ||
306 | /* configure a full-word SYNC pulse (LRCLK) */ | ||
307 | mcasp_set_bits(mcasp, DAVINCI_MCASP_TXFMCTL_REG, FSXDUR); | ||
308 | mcasp_set_bits(mcasp, DAVINCI_MCASP_RXFMCTL_REG, FSRDUR); | ||
309 | /* No delay after FS */ | ||
310 | data_delay = 0; | ||
311 | break; | ||
305 | default: | 312 | default: |
306 | ret = -EINVAL; | 313 | ret = -EINVAL; |
307 | goto out; | 314 | goto out; |