diff options
-rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 402a1eb7bd3f..2b4a8da09918 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c | |||
@@ -287,6 +287,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream, | |||
287 | regs->srgr2 |= FPER(wlen * channels - 1); | 287 | regs->srgr2 |= FPER(wlen * channels - 1); |
288 | regs->srgr1 |= FWID(wlen - 1); | 288 | regs->srgr1 |= FWID(wlen - 1); |
289 | break; | 289 | break; |
290 | case SND_SOC_DAIFMT_DSP_A: | ||
290 | case SND_SOC_DAIFMT_DSP_B: | 291 | case SND_SOC_DAIFMT_DSP_B: |
291 | regs->srgr2 |= FPER(wlen * channels - 1); | 292 | regs->srgr2 |= FPER(wlen * channels - 1); |
292 | regs->srgr1 |= FWID(wlen * channels - 2); | 293 | regs->srgr1 |= FWID(wlen * channels - 2); |
@@ -330,6 +331,13 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai, | |||
330 | regs->rcr2 |= RDATDLY(1); | 331 | regs->rcr2 |= RDATDLY(1); |
331 | regs->xcr2 |= XDATDLY(1); | 332 | regs->xcr2 |= XDATDLY(1); |
332 | break; | 333 | break; |
334 | case SND_SOC_DAIFMT_DSP_A: | ||
335 | /* 1-bit data delay */ | ||
336 | regs->rcr2 |= RDATDLY(1); | ||
337 | regs->xcr2 |= XDATDLY(1); | ||
338 | /* Invert FS polarity configuration */ | ||
339 | temp_fmt ^= SND_SOC_DAIFMT_NB_IF; | ||
340 | break; | ||
333 | case SND_SOC_DAIFMT_DSP_B: | 341 | case SND_SOC_DAIFMT_DSP_B: |
334 | /* 0-bit data delay */ | 342 | /* 0-bit data delay */ |
335 | regs->rcr2 |= RDATDLY(0); | 343 | regs->rcr2 |= RDATDLY(0); |