1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

fix bcm-2711-cm4

This commit is contained in:
suyuan168 2022-01-04 14:21:48 +08:00
parent 5a0cd3cd6c
commit 11e9c46c36
2 changed files with 72 additions and 0 deletions

View file

@ -386,6 +386,16 @@ if [ "$OMR_KERNEL" = "5.4" ] && ([ "$OMR_TARGET" = "x86_64" ] || [ "$OMR_TARGET"
echo "Done"
fi
# Add fix bcm2711-rpi-cm4 patch, only working on 64bits images for now
if [ "$OMR_KERNEL" = "5.4" ] && ([ "$OMR_TARGET" = "rpi4" ]); then
echo "Checking if bcm2711-rpi-cm4 patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/950-0785-fixcm4soundboss2.patch; then
echo "apply..."
patch -N -p1 -s < ../../patches/950-0785-fixcm4soundboss2.patch
fi
echo "Done"
fi
echo "Checking if smsc75xx patch is set or not"
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/smsc75xx.patch; then
echo "apply..."

View file

@ -0,0 +1,62 @@
--- a/target/linux/bcm27xx/modules/sound.mk 2022-01-04 05:35:20.202715290 +0800
+++ b/target/linux/bcm27xx/modules/sound.mk 2022-01-04 05:35:16.419898622 +0800
@@ -130,29 +130,6 @@
$(eval $(call KernelPackage,sound-soc-allo-boss-dac))
-
-define KernelPackage/sound-soc-allo-boss2-dac
- TITLE:=Support for Allo Boss2 DAC
- KCONFIG:= \
- CONFIG_SND_AUDIO_GRAPH_CARD \
- CONFIG_SND_BCM2708_SOC_ALLO_BOSS2_DAC
- FILES:= \
- $(LINUX_DIR)/sound/soc/bcm/snd-soc-allo-boss2-dac.ko
- AUTOLOAD:=$(call AutoLoad,68,snd-soc-allo-boss2-dac)
- DEPENDS:= \
- kmod-sound-soc-bcm2835-i2s \
- +kmod-i2c-bcm2835 \
- +kmod-regmap-i2c
- $(call AddDepends/sound)
-endef
-
-define KernelPackage/sound-soc-allo-boss2-dac/description
- This package contains support for Allo Boss2 DAC
-endef
-
-$(eval $(call KernelPackage,sound-soc-allo-boss2-dac))
-
-
define KernelPackage/sound-soc-allo-digione
TITLE:=Support for Allo Piano DigiOne
KCONFIG:= \
@@ -867,29 +844,6 @@
$(eval $(call KernelPackage,sound-soc-justboom-digi))
-
-define KernelPackage/sound-soc-pifi-40-amp
- TITLE:=Support for PiFi-40 amp
- KCONFIG:= \
- CONFIG_SND_BCM2708_SOC_PIFI_40 \
- CONFIG_SND_PIFI_40 \
- CONFIG_SND_SOC_TAS571X
- FILES:= \
- $(LINUX_DIR)/sound/soc/bcm/snd-soc-pifi-40.ko \
- $(LINUX_DIR)/sound/soc/codecs/snd-soc-tas571x.ko
- AUTOLOAD:=$(call AutoLoad,68,snd-soc-tas571x)
- DEPENDS:= \
- kmod-sound-soc-bcm2835-i2s
- $(call AddDepends/sound)
-endef
-
-define KernelPackage/sound-soc-pifi-40-amp/description
- This package contains support for PiFi-40 amp
-endef
-
-$(eval $(call KernelPackage,sound-soc-pifi-40-amp))
-
-
define KernelPackage/sound-soc-pisound
TITLE:=Support for Blokas Labs PiSound
KCONFIG:= \