From: Arun KS Date: Thu, 2 Oct 2008 09:37:06 +0000 (+0530) Subject: ALSA: ASoC: Add DSP DAI format support to the OMAP McBSP driver X-Git-Tag: v2.6.28-rc1~102^2~25 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3336c5b548b71dcc106a0d862675b30fdf58b3f1;p=linux-2.6-omap-h63xx.git ALSA: ASoC: Add DSP DAI format support to the OMAP McBSP driver Enables DSP DAI format for McBSP in OMAP platform driver Signed-off-by: Arun KS Signed-off-by: Mark Brown Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 35310e16d7f..fb920e1b551 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c @@ -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;