]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/soc/omap/omap-mcbsp.c
ALSA: ASoC: Add DSP DAI format support to the OMAP McBSP driver
[linux-2.6-omap-h63xx.git] / 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;