Browse Source

kernel: Add dummy sound driver

Useful when using sound players that can send to icecast, etc. without any sound device attached.

Signed-off-by: Ted Hess <[email protected]>

SVN-Revision: 47852
John Crispin 10 years ago
parent
commit
f03bf608b1
1 changed files with 16 additions and 0 deletions
  1. 16 0
      package/kernel/linux/modules/sound.mk

+ 16 - 0
package/kernel/linux/modules/sound.mk

@@ -273,3 +273,19 @@ define KernelPackage/pcspkr/description
 endef
 
 $(eval $(call KernelPackage,pcspkr))
+
+define KernelPackage/sound-dummy
+  $(call AddDepends/sound)
+  TITLE:=Null sound output driver (sink)
+  KCONFIG:= \
+	CONFIG_SND_DUMMY
+  FILES:= \
+	$(LINUX_DIR)/sound/drivers/snd-dummy.ko
+  AUTOLOAD:=$(call AutoLoad,32,snd-dummy)
+endef
+
+define KernelPackage/sound_dummy/description
+ Dummy sound device for Alsa when no hardware present
+endef
+
+$(eval $(call KernelPackage,sound-dummy))