aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-18 13:22:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-18 13:22:34 +0000
commitb18b0bb6fd65264238c1a328cc53040d0ff75f10 (patch)
tree715ed1131cb84bd143fd8d7acd58f4b606a406b9 /target/linux
parent0f093ff58b41977ebd8008d1aef205dc7b8b0848 (diff)
downloadmaster-187ad058-b18b0bb6fd65264238c1a328cc53040d0ff75f10.tar.gz
master-187ad058-b18b0bb6fd65264238c1a328cc53040d0ff75f10.tar.bz2
master-187ad058-b18b0bb6fd65264238c1a328cc53040d0ff75f10.zip
ramips: fix kernel config handling for mt7620/mt7628 sound module
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48316 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/modules.mk39
1 files changed, 35 insertions, 4 deletions
diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk
index bfb9bcd826..66a7f68145 100644
--- a/target/linux/ramips/modules.mk
+++ b/target/linux/ramips/modules.mk
@@ -75,23 +75,54 @@ endef
$(eval $(call KernelPackage,sound-mt7620))
+define KernelPackage/sound-mtk-mt7620
+ TITLE:=Mediatek I2S Alsa Driver (MT7620)
+ HIDDEN:=1
+ KCONFIG:= \
+ CONFIG_SND_MT76XX_SOC \
+ CONFIG_SND_MT76XX_SOC_MT7620=y \
+ CONFIG_SND_MT76XX_SOC_MT7628=n
+ FILES:= \
+ $(LINUX_DIR)/sound/soc/mtk/ralink_gdma.ko
+ AUTOLOAD:=$(call AutoLoad,90,ralink_gdma)
+ $(call AddDepends/sound)
+endef
+$(eval $(call KernelPackage,sound-mtk-mt7620))
+
+define KernelPackage/sound-mtk-mt7628
+ TITLE:=Mediatek I2S Alsa Driver (MT7628)
+ HIDDEN:=1
+ KCONFIG:= \
+ CONFIG_SND_MT76XX_SOC \
+ CONFIG_SND_MT76XX_SOC_MT7620=n \
+ CONFIG_SND_MT76XX_SOC_MT7628=y
+ FILES:= \
+ $(LINUX_DIR)/sound/soc/mtk/ralink_gdma.ko
+ AUTOLOAD:=$(call AutoLoad,90,ralink_gdma)
+ $(call AddDepends/sound)
+endef
+$(eval $(call KernelPackage,sound-mtk-mt7628))
+
define KernelPackage/sound-mtk
TITLE:=Mediatek I2S Alsa Driver
- DEPENDS:= +kmod-sound-soc-core +kmod-regmap +kmod-i2c-ralink @(TARGET_ramips_mt7628||TARGET_ramips_mt7688||TARGET_ramips_mt7620)
+ DEPENDS:= \
+ +kmod-sound-soc-core +kmod-regmap +kmod-i2c-ralink \
+ @(TARGET_ramips_mt7628||TARGET_ramips_mt7688||TARGET_ramips_mt7620) \
+ +TARGET_ramips_mt7620:kmod-sound-mtk-mt7620 \
+ +TARGET_ramips_mt7628:kmod-sound-mtk-mt7628 \
+ +TARGET_ramips_mt7688:kmod-sound-mtk-mt7628
KCONFIG:= \
- CONFIG_SND_MT76XX_SOC \
CONFIG_SND_MT76XX_I2S \
CONFIG_SND_MT76XX_PCM \
CONFIG_SND_SOC_WM8960
FILES:= \
- $(LINUX_DIR)/sound/soc/mtk/ralink_gdma.ko \
$(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-i2s-ctl.ko \
$(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-i2s.ko \
$(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-pcm.ko \
$(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-machine.ko \
$(LINUX_DIR)/sound/soc/mtk/i2c_wm8960.ko \
$(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
- AUTOLOAD:=$(call AutoLoad,90,ralink_gdma snd-soc-wm8960 i2c_wm8960 snd-soc-mt76xx-i2s-ctl snd-soc-mt76xx-i2s snd-soc-mt76xx-pcm snd-soc-mt76xx-machine)
+ AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 i2c_wm8960 snd-soc-mt76xx-i2s-ctl snd-soc-mt76xx-i2s snd-soc-mt76xx-pcm snd-soc-mt76xx-machine)
$(call AddDepends/sound)
endef