ASoC: Add ability to build sti drivers
authorArnaud Pouliquen <arnaud.pouliquen@st.com>
Thu, 16 Jul 2015 09:36:05 +0000 (11:36 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 20:38:24 +0000 (21:38 +0100)
Define the platform and codec drivers, and how to build them.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/Kconfig
sound/soc/Makefile
sound/soc/sti/Kconfig [new file with mode: 0644]
sound/soc/sti/Makefile [new file with mode: 0644]

index 2ae9619443d15dbeaf128cab385347db6bf26369..467ee1a00dd631dac0c93a5cc6e6544ed0074174 100644 (file)
@@ -54,6 +54,7 @@ source "sound/soc/samsung/Kconfig"
 source "sound/soc/sh/Kconfig"
 source "sound/soc/sirf/Kconfig"
 source "sound/soc/spear/Kconfig"
+source "sound/soc/sti/Kconfig"
 source "sound/soc/tegra/Kconfig"
 source "sound/soc/txx9/Kconfig"
 source "sound/soc/ux500/Kconfig"
index e189903fabf42958eff143e487999f0f013b85d7..19fd711034e255dbf00c97cf38fa2f12dd5eee91 100644 (file)
@@ -36,6 +36,7 @@ obj-$(CONFIG_SND_SOC) += samsung/
 obj-$(CONFIG_SND_SOC)  += sh/
 obj-$(CONFIG_SND_SOC)  += sirf/
 obj-$(CONFIG_SND_SOC)  += spear/
+obj-$(CONFIG_SND_SOC)  += sti/
 obj-$(CONFIG_SND_SOC)  += tegra/
 obj-$(CONFIG_SND_SOC)  += txx9/
 obj-$(CONFIG_SND_SOC)  += ux500/
diff --git a/sound/soc/sti/Kconfig b/sound/soc/sti/Kconfig
new file mode 100644 (file)
index 0000000..64a6900
--- /dev/null
@@ -0,0 +1,11 @@
+#
+# STM SoC audio configuration
+#
+menuconfig SND_SOC_STI
+       tristate "SoC Audio support for STI System-On-Chip"
+       depends on SND_SOC
+       depends on ARCH_STI || COMPILE_TEST
+       select SND_SOC_GENERIC_DMAENGINE_PCM
+       help
+               Say Y if you want to enable ASoC-support for
+               any of the STI platforms (e.g. STIH416).
diff --git a/sound/soc/sti/Makefile b/sound/soc/sti/Makefile
new file mode 100644 (file)
index 0000000..4b188d2
--- /dev/null
@@ -0,0 +1,4 @@
+# STI platform support
+snd-soc-sti-objs := sti_uniperif.o uniperif_player.o uniperif_reader.o
+
+obj-$(CONFIG_SND_SOC_STI) += snd-soc-sti.o