aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorArun KS <arunks@mistralsolutions.com>2008-10-02 05:37:06 -0400
committerTakashi Iwai <tiwai@suse.de>2008-10-12 20:16:59 -0400
commit3336c5b548b71dcc106a0d862675b30fdf58b3f1 (patch)
treecbf431c4d010fe18e0d64216057621c42a34ab48 /sound
parent17f9ecf34aaa0ade5c89aba603847309c849297c (diff)
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')
-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 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,
245 regs->rcr2 |= RDATDLY(1); 245 regs->rcr2 |= RDATDLY(1);
246 regs->xcr2 |= XDATDLY(1); 246 regs->xcr2 |= XDATDLY(1);
247 break; 247 break;
248 case SND_SOC_DAIFMT_DSP_A:
249 /* 0-bit data delay */
250 regs->rcr2 |= RDATDLY(0);
251 regs->xcr2 |= XDATDLY(0);
252 break;
248 default: 253 default:
249 /* Unsupported data format */ 254 /* Unsupported data format */
250 return -EINVAL; 255 return -EINVAL;