summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorArun KS <arunks@mistralsolutions.com>2008-10-02 15:07:06 +0530
committerTakashi Iwai <tiwai@suse.de>2008-10-13 02:16:59 +0200
commit3336c5b548b71dcc106a0d862675b30fdf58b3f1 (patch)
treecbf431c4d010fe18e0d64216057621c42a34ab48 /sound/soc
parent17f9ecf34aaa0ade5c89aba603847309c849297c (diff)
downloadkernel-crypto-3336c5b548b71dcc106a0d862675b30fdf58b3f1.tar.gz
kernel-crypto-3336c5b548b71dcc106a0d862675b30fdf58b3f1.tar.xz
kernel-crypto-3336c5b548b71dcc106a0d862675b30fdf58b3f1.zip
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 <arunks@mistralsolutions.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/omap/omap-mcbsp.c5
1 files changed, 5 insertions, 0 deletions
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;