$(eval $(call KernelPackage,sun4i-emac))
-
define KernelPackage/sound-soc-sunxi
TITLE:=AllWinner built-in SoC sound support
KCONFIG:=CONFIG_SND_SUN4I_CODEC
endef
$(eval $(call KernelPackage,sound-soc-sunxi))
+
+define KernelPackage/sound-soc-sunxi-spdif
+ TITLE:=Allwinner A10 SPDIF Support
+ KCONFIG:=CONFIG_SND_SUN4I_SPDIF
+ FILES:=$(LINUX_DIR)/sound/soc/sunxi/sun4i-spdif.ko
+ AUTOLOAD:=$(call AutoLoad,65,sun4i-spdif)
+ DEPENDS:=@TARGET_sunxi +kmod-sound-soc-spdif
+ $(call AddDepends/sound)
+endef
+
+define KernelPackage/sound-soc-sunxi-spdif/description
+ Kernel support for Allwinner A10 SPDIF Support
+endef
+
+$(eval $(call KernelPackage,sound-soc-sunxi-spdif))