summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2011-05-31 09:22:54 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:03:07 +0100
commit67ade104e7cde82a3900e310fda4fea205d32ea2 (patch)
tree5d400a1db67207bd5f3eb9bc5ed5f574630ad2db /sound
parentbab1a4de91fd4478d9b2904748987014441497ef (diff)
ASoC: ABE: Add support for OMAP4 ABE
Add support for the OMAP4 Audio Backend Engine. Change-Id: I0a8e367ce1858e07de6eca1da2f2b15299bea936 Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/omap/Kconfig3
-rw-r--r--sound/soc/omap/Makefile2
-rw-r--r--sound/soc/omap/omap-abe.h59
3 files changed, 64 insertions, 0 deletions
diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig
index 0571589f939..b9cbd7c46f7 100644
--- a/sound/soc/omap/Kconfig
+++ b/sound/soc/omap/Kconfig
@@ -9,6 +9,9 @@ config SND_OMAP_SOC_MCBSP
config SND_OMAP_SOC_MCPDM
tristate
+config SND_OMAP_SOC_ABE
+ tristate
+
config SND_OMAP_SOC_DMIC
tristate
diff --git a/sound/soc/omap/Makefile b/sound/soc/omap/Makefile
index bc337d5e415..958f8621bb1 100644
--- a/sound/soc/omap/Makefile
+++ b/sound/soc/omap/Makefile
@@ -1,9 +1,11 @@
# OMAP Platform Support
+snd-soc-omap-abe-objs := omap-abe.o
snd-soc-omap-objs := omap-pcm.o
snd-soc-omap-dmic-objs := omap-dmic.o
snd-soc-omap-mcbsp-objs := omap-mcbsp.o
snd-soc-omap-mcpdm-objs := omap-mcpdm.o mcpdm.o
+obj-$(CONFIG_SND_OMAP_SOC_ABE) += snd-soc-omap-abe.o
obj-$(CONFIG_SND_OMAP_SOC) += snd-soc-omap.o
obj-$(CONFIG_SND_OMAP_SOC_DMIC) += snd-soc-omap-dmic.o
obj-$(CONFIG_SND_OMAP_SOC_MCBSP) += snd-soc-omap-mcbsp.o
diff --git a/sound/soc/omap/omap-abe.h b/sound/soc/omap/omap-abe.h
new file mode 100644
index 00000000000..bc33ad18818
--- /dev/null
+++ b/sound/soc/omap/omap-abe.h
@@ -0,0 +1,59 @@
+/*
+ * omap-abe.h
+ *
+ * Copyright (C) 2010 Texas Instruments
+ *
+ * Contact: Liam Girdwood <lrg@slimlogic.co.uk>
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#ifndef __OMAP_ABE_H__
+#define __OMAP_ABE_H__
+
+#define ABE_FRONTEND_DAI_MEDIA 0
+#define ABE_FRONTEND_DAI_MEDIA_CAPTURE 1
+#define ABE_FRONTEND_DAI_VOICE 2
+#define ABE_FRONTEND_DAI_TONES 3
+#define ABE_FRONTEND_DAI_VIBRA 4
+#define ABE_FRONTEND_DAI_MODEM 5
+#define ABE_FRONTEND_DAI_LP_MEDIA 6
+
+/* This must currently match the BE order in DSP */
+#define OMAP_ABE_DAI_PDM_UL 0
+#define OMAP_ABE_DAI_PDM_DL1 1
+#define OMAP_ABE_DAI_PDM_DL2 2
+#define OMAP_ABE_DAI_PDM_VIB 3
+#define OMAP_ABE_DAI_BT_VX 4
+#define OMAP_ABE_DAI_MM_FM 5
+#define OMAP_ABE_DAI_MODEM 6
+#define OMAP_ABE_DAI_DMIC0 7
+#define OMAP_ABE_DAI_DMIC1 8
+#define OMAP_ABE_DAI_DMIC2 9
+
+#define OMAP_ABE_BE_PDM_DL1 "(Backend) PDM-DL1"
+#define OMAP_ABE_BE_PDM_UL1 "(Backend) PDM-UL1"
+#define OMAP_ABE_BE_PDM_DL2 "(Backend) PDM-DL2"
+#define OMAP_ABE_BE_PDM_VIB "(Backend) PDM-VIB"
+#define OMAP_ABE_BE_BT_VX "(Backend) BT-VX"
+#define OMAP_ABE_BE_MM_EXT0 "(Backend) FM-EXT"
+#define OMAP_ABE_BE_MM_EXT1 "(Backend) MODEM-EXT"
+#define OMAP_ABE_BE_DMIC0 "(Backend) DMIC0"
+#define OMAP_ABE_BE_DMIC1 "(Backend) DMIC1"
+#define OMAP_ABE_BE_DMIC2 "(Backend) DMIC2"
+
+
+#endif /* End of __OMAP_MCPDM_H__ */