[alsa-devel] [PATCH 6/6] compress: add makefile and kconfig file
Vinod Koul
vinod.koul at linux.intel.com
Tue Nov 22 09:52:00 CET 2011
Signed-off-by: Vinod Koul <vinod.koul at linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
---
sound/Kconfig | 2 ++
sound/Makefile | 3 ++-
sound/compress_offload/Kconfig | 17 +++++++++++++++++
sound/compress_offload/Makefile | 4 ++++
4 files changed, 25 insertions(+), 1 deletions(-)
create mode 100644 sound/compress_offload/Kconfig
create mode 100644 sound/compress_offload/Makefile
diff --git a/sound/Kconfig b/sound/Kconfig
index 1fef141..9b09263 100644
--- a/sound/Kconfig
+++ b/sound/Kconfig
@@ -93,6 +93,8 @@ source "sound/mips/Kconfig"
source "sound/sh/Kconfig"
+source "sound/compress_offload/Kconfig"
+
# the following will depend on the order of config.
# here assuming USB is defined before ALSA
source "sound/usb/Kconfig"
diff --git a/sound/Makefile b/sound/Makefile
index ce9132b..5a54d6c 100644
--- a/sound/Makefile
+++ b/sound/Makefile
@@ -6,7 +6,8 @@ obj-$(CONFIG_SOUND_PRIME) += sound_firmware.o
obj-$(CONFIG_SOUND_PRIME) += oss/
obj-$(CONFIG_DMASOUND) += oss/
obj-$(CONFIG_SND) += core/ i2c/ drivers/ isa/ pci/ ppc/ arm/ sh/ synth/ usb/ \
- firewire/ sparc/ spi/ parisc/ pcmcia/ mips/ soc/ atmel/
+ firewire/ sparc/ spi/ parisc/ pcmcia/ mips/ soc/ atmel/ \
+ compress_offload/
obj-$(CONFIG_SND_AOA) += aoa/
# This one must be compilable even if sound is configured out
diff --git a/sound/compress_offload/Kconfig b/sound/compress_offload/Kconfig
new file mode 100644
index 0000000..8e12a66
--- /dev/null
+++ b/sound/compress_offload/Kconfig
@@ -0,0 +1,17 @@
+#
+# compressed offload config
+#
+
+menuconfig SND_COMPRESS_OFFLOAD
+ tristate "ALSA Compressed audio offload support"
+ default n
+ help
+ If you want support for offloading compressed audio and have such
+ a hardware, then you should say Y here and also to the DSP driver
+ of your platform.
+
+if SND_COMPRESS_OFFLOAD
+
+source "sound/compress_offload/mid-x86/Kconfig"
+
+endif #SND_COMPRESS_OFFLOAD
diff --git a/sound/compress_offload/Makefile b/sound/compress_offload/Makefile
new file mode 100644
index 0000000..c1ccecb
--- /dev/null
+++ b/sound/compress_offload/Makefile
@@ -0,0 +1,4 @@
+snd-compress-objs := core.o
+
+obj-$(CONFIG_SND_COMPRESS_OFFLOAD) += snd-compress.o
+obj-$(CONFIG_SND_COMPRESS_OFFLOAD) += mid-x86/
--
1.7.0.4
More information about the Alsa-devel
mailing list