diff mbox

[V4,08/10] ASoC: qcom: Add ability to build QCOM drivers

Message ID 1423169626-22166-9-git-send-email-kwestfie@codeaurora.org (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Kenneth Westfield Feb. 5, 2015, 8:53 p.m. UTC
From: Kenneth Westfield <kwestfie@codeaurora.org>

Define the LPASS platform driver and the LPASS
CPU DAI driver configuration, and how to build
them.

Signed-off-by: Kenneth Westfield <kwestfie@codeaurora.org>
Acked-by: Banajit Goswami <bgoswami@codeaurora.org>
---
 sound/soc/qcom/Kconfig  | 27 +++++++++++++++++++++++++++
 sound/soc/qcom/Makefile |  6 ++++++
 2 files changed, 33 insertions(+)
 create mode 100644 sound/soc/qcom/Kconfig
 create mode 100644 sound/soc/qcom/Makefile

Comments

Mark Brown Feb. 6, 2015, 11 p.m. UTC | #1
On Thu, Feb 05, 2015 at 12:53:44PM -0800, Kenneth Westfield wrote:

> +config SND_SOC_IPQ806X
> +	tristate "SoC Audio support for IPQ806x based platforms"
> +	depends on SND_SOC_QCOM || ARCH_QCOM || COMPILE_TEST
> +        select SND_SIMPLE_CARD
> +	select SND_SOC_LPASS_CPU
> +	select SND_SOC_LPASS_PLATFORM
> +        select SND_SOC_MAX98357A

No, we don't have blocks like this selecting simple-card for any other
platforms using simple-card so we shouldn't do that here either.  Just
let all the drivers be individually selectable.

You've also got a mix of tabs and spaces going on.
diff mbox

Patch

diff --git a/sound/soc/qcom/Kconfig b/sound/soc/qcom/Kconfig
new file mode 100644
index 0000000000000000000000000000000000000000..d33fc5db86a34dc2e3f8146a1aea28c0e2ae8839
--- /dev/null
+++ b/sound/soc/qcom/Kconfig
@@ -0,0 +1,27 @@ 
+config SND_SOC_QCOM
+	tristate "SoC Audio support for QCOM platforms"
+	help
+          Support for audio in Qualcomm Technologies SOC-based systems.
+          Say Y if you want to use audio devices such as I2S, PCM,
+          S/PDIF, etc.
+
+config SND_SOC_LPASS_CPU
+	tristate
+	depends on SND_SOC_QCOM
+
+config SND_SOC_IPQ806X
+	tristate "SoC Audio support for IPQ806x based platforms"
+	depends on SND_SOC_QCOM || ARCH_QCOM || COMPILE_TEST
+        select SND_SIMPLE_CARD
+	select SND_SOC_LPASS_CPU
+	select SND_SOC_LPASS_PLATFORM
+        select SND_SOC_MAX98357A
+	help
+          Support for Qualcomm Technologies LPASS audio block in
+          IPQ806X SOC-based systems.
+          Say Y if you want to use audio devices such as I2S, PCM,
+          S/PDIF, etc.
+
+config SND_SOC_LPASS_PLATFORM
+	tristate
+	depends on SND_SOC_QCOM
diff --git a/sound/soc/qcom/Makefile b/sound/soc/qcom/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..2b8b0230eeb53acf36bb333c78abf7e95147ac2a
--- /dev/null
+++ b/sound/soc/qcom/Makefile
@@ -0,0 +1,6 @@ 
+# Platform
+snd-soc-lpass-cpu-objs := lpass-cpu.o
+snd-soc-lpass-platform-objs := lpass-platform.o
+
+obj-$(CONFIG_SND_SOC_LPASS_CPU) += snd-soc-lpass-cpu.o
+obj-$(CONFIG_SND_SOC_LPASS_PLATFORM) += snd-soc-lpass-platform.o