[alsa-devel] [PATCH 5/5 v2] ASoC Adds DSP DAI format support for platform driver

Arun KS arunks at mistralsolutions.com
Thu Oct 2 11:37:06 CEST 2008


Enables DSP DAI format for mcbsp in omap platform driver

Signed-off-by: Arun KS <arunks at mistralsolutions.com>
---
 sound/soc/omap/omap-mcbsp.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 35310e1..fb920e1 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;
-- 
1.5.3.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-ASoC-Adds-DSP-DAI-format-support-for-platform-driver.patch
Type: text/x-patch
Size: 965 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20081002/cf4b8b5e/attachment.patch 


More information about the Alsa-devel mailing list