Skip to contentSkip to conversation

Davinci ASoC support

PATCH In review Vladimir Barinov 3 participants 5 messages Feb 16, 2008 – Feb 18, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Davinci ASoC support

Add ASoC support for the TI Davinci SoC and the Davicni-EVM reference board. It includes:
- ASoC Davinci DMA driver
- ASoC Davinci I2S (Davinci McBSP module based) driver
- ASoC Davinci-EVM reference board

sound/soc/davinci/Makefile new file +11 -0
Index: linux-2.6.25-rc1/sound/soc/davinci/Makefile
===================================================================
@@ -0,0 +1,11 @@
+# DAVINCI Platform Support
+snd-soc-davinci-objs := davinci-pcm.o
+snd-soc-davinci-i2s-objs := davinci-i2s.o
+
+obj-$(CONFIG_SND_DAVINCI_SOC) += snd-soc-davinci.o
+obj-$(CONFIG_SND_DAVINCI_SOC_I2S) += snd-soc-davinci-i2s.o
+
+# DAVINCI Machine Support
+snd-soc-evm-objs := davinci-evm.o
+
+obj-$(CONFIG_SND_DAVINCI_SOC_EVM) += snd-soc-evm.o
sound/soc/davinci/davinci-evm.c new file +208 -0

208 lines not on this page · raw message

sound/soc/davinci/davinci-i2s.c new file +407 -0

407 lines not on this page · raw message

sound/soc/davinci/davinci-i2s.h new file +17 -0
Index: linux-2.6.25-rc1/sound/soc/davinci/davinci-i2s.h
===================================================================
@@ -0,0 +1,17 @@
+/*
+ * ALSA SoC I2S (McBSP) Audio Layer for TI DAVINCI processor
+ *
+ * Author:      Vladimir Barinov, <[email protected]>
+ * Copyright:   (C) 2007 MontaVista Software, Inc., <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _DAVINCI_I2S_H
+#define _DAVINCI_I2S_H
+
+extern struct snd_soc_cpu_dai davinci_i2s_dai;
+
+#endif
sound/soc/davinci/davinci-pcm.c new file +389 -0

389 lines not on this page · raw message

sound/soc/davinci/davinci-pcm.h new file +29 -0
Index: linux-2.6.25-rc1/sound/soc/davinci/davinci-pcm.h
===================================================================
@@ -0,0 +1,29 @@
+/*
+ * ALSA PCM interface for the TI DAVINCI processor
+ *
+ * Author:      Vladimir Barinov, <[email protected]>
+ * Copyright:   (C) 2007 MontaVista Software, Inc., <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _DAVINCI_PCM_H
+#define _DAVINCI_PCM_H
+
+struct davinci_pcm_dma_params {
+	char *name;		/* stream identifier */
+	int channel;		/* sync dma channel ID */
+	dma_addr_t dma_addr;	/* device physical address for DMA */
+	unsigned int data_type;	/* xfer data type */
+};
+
+struct evm_snd_platform_data {
+	int tx_dma_ch;
+	int rx_dma_ch;
+};
+
+extern struct snd_soc_platform davinci_soc_platform;
+
+#endif
sound/soc/Kconfig +1 -0
Index: linux-2.6.25-rc1/sound/soc/Kconfig
===================================================================
@@ -29,6 +29,7 @@ source "sound/soc/pxa/Kconfig"
 source "sound/soc/s3c24xx/Kconfig"
 source "sound/soc/sh/Kconfig"
 source "sound/soc/fsl/Kconfig"
+source "sound/soc/davinci/Kconfig"
 
 # Supported codecs
 source "sound/soc/codecs/Kconfig"
sound/soc/Makefile +1 -1
Index: linux-2.6.25-rc1/sound/soc/Makefile
===================================================================
@@ -1,4 +1,4 @@
 snd-soc-core-objs := soc-core.o soc-dapm.o
 
 obj-$(CONFIG_SND_SOC)	+= snd-soc-core.o
-obj-$(CONFIG_SND_SOC)	+= codecs/ at91/ pxa/ s3c24xx/ sh/ fsl/
+obj-$(CONFIG_SND_SOC)	+= codecs/ at91/ pxa/ s3c24xx/ sh/ fsl/ davinci/
sound/soc/davinci/Kconfig new file +19 -0
Index: linux-2.6.25-rc1/sound/soc/davinci/Kconfig
===================================================================
@@ -0,0 +1,19 @@
+config SND_DAVINCI_SOC
+	tristate "SoC Audio for the TI DAVINCI chip"
+	depends on ARCH_DAVINCI && SND_SOC
+	help
+	  Say Y or M if you want to add support for codecs attached to
+	  the DAVINCI AC97 or I2S interface. You will also need
+	  to select the audio interfaces to support below.
+
+config SND_DAVINCI_SOC_I2S
+	tristate
+
+config SND_DAVINCI_SOC_EVM
+	tristate "SoC Audio support for DaVinci EVM"
+	depends on SND_DAVINCI_SOC && MACH_DAVINCI_EVM
+	select SND_DAVINCI_SOC_I2S
+	select SND_SOC_TLV320AIC3X
+	help
+	  Say Y if you want to add support for SoC audio on TI
+	  DaVinci EVM platform.
#2 lore raw

At Mon, 18 Feb 2008 09:41:35 +0000,

Quoted 8 lines · Mark Brown
Quoted 5 lines · Vladimir Barinov

Add ASoC support for the TI Davinci SoC and the Davicni-EVM reference board. It includes:
- ASoC Davinci DMA driver
- ASoC Davinci I2S (Davinci McBSP module based) driver
- ASoC Davinci-EVM reference board

Quoted 5 lines
Quoted 1 line

Thanks, I've applied this to the ASoC tree.

Mark, would you like to submit this again with other ASoC stuff or shall I apply it as is now?

Takashi

#3 lore raw
Quoted 2 lines · Takashi Iwai

Mark, would you like to submit this again with other ASoC stuff or shall I apply it as is now?

Please go ahead and apply it now.

#4 lore raw

At Mon, 18 Feb 2008 10:34:40 +0000,

Quoted 7 lines · Mark Brown
Quoted 2 lines · Takashi Iwai

Mark, would you like to submit this again with other ASoC stuff or shall I apply it as is now?

Please go ahead and apply it now.

OK, committed now to ALSA HG tree. Thanks.

Takashi