ALSA: ASoC: Add DSP DAI format support to the OMAP McBSP driver
authorArun KS <arunks@mistralsolutions.com>
Thu, 2 Oct 2008 09:37:06 +0000 (15:07 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Oct 2008 00:16:59 +0000 (02:16 +0200)
Enables DSP DAI format for McBSP in OMAP platform driver

Signed-off-by: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/omap/omap-mcbsp.c

index 35310e16d7f3658623fdf9755ae6df7190688a1e..fb920e1b551eaa0737be58a6e277cba8950cef34 100644 (file)
@@ -245,6 +245,11 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
                regs->rcr2      |= RDATDLY(1);
                regs->xcr2      |= XDATDLY(1);
                break;
+       case SND_SOC_DAIFMT_DSP_A:
+               /* 0-bit data delay */
+               regs->rcr2      |= RDATDLY(0);
+               regs->xcr2      |= XDATDLY(0);
+               break;
        default:
                /* Unsupported data format */
                return -EINVAL;