Hi all,
I've been trying to add the CS5530 (CONFIG_SND_CS5530) kernel module to my build, so I can enable sound output on my machine.
I tried adding it as a selection in menuconfig, by adding
define KernelPackage/sound-cs5530
TITLE:=CS5530 Audio Controller
DEPENDS:=@TARGET_x86_geode +kmod-ac97
KCONFIG:=CONFIG_SND_CS5530
FILES:=$(LINUX_DIR)/sound/pci/snd-cs5530.ko
AUTOLOAD:=$(call AutoLoad,36,snd-cs5530)
$(call AddDepends/sound)
endef
define KernelPackage/sound-cs5530/description
Support for the integrated AC97 sound device on motherboards
with AMD CS5530 chipsets.
endef
$(eval $(call KernelPackage,sound-cs5530))
to target/linux/x86/modules.mk
This seems to work, the kernel module shows up in menuconfig, and I can select it.
But when I compile with "make V=s", I get the message:
Package kmod-sound-cs5530 is missing dependencies for the following libraries:
snd-sb-common.ko
snd-sb16-dsp.ko
So it seems it depends on the Soundblaster 16 kernel module.
I then tried to add the Soundblaster 16 to menuconfig by adding:
define KernelPackage/sound-soundblaster16
TITLE:=Sound Blaster 16 (PnP)
DEPENDS:=@TARGET_x86_geode
KCONFIG:=CONFIG_SND_SB16
FILES:=$(LINUX_DIR)/sound/isa/sb/snd-sb-common.ko
AUTOLOAD:=$(call AutoLoad,31,snd-sb16)
$(call AddDepends/sound)
endef
define KernelPackage/sound-soundblaster16/description
Sound Blaster 16 kmod.
endef
$(eval $(call KernelPackage,sound-soundblaster16))
When I build openwrt with the CS5530 module and the Soundblaster16 module, I get the same error as above (missing dependencies).
When I try to build openwrt with only the Soundblaster module, it succeeds, but Soundblaster package is empty (usr/lib/opkg/info/kmod-sound-soundblaster16.list is empty)
Does anyone have any idea why my Soundblaster16 package is empty?
Or if there's a better way to implement the 2 kernel modules I need?
Thanks!