From 3336c5b548b71dcc106a0d862675b30fdf58b3f1 Mon Sep 17 00:00:00 2001 From: Arun KS Date: Thu, 2 Oct 2008 15:07:06 +0530 Subject: 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 --- sound/soc/omap/omap-mcbsp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 35310e16d7f3..fb920e1b551e 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; -- cgit v1.2.3