[openwrt/openwrt] sunxi: add SND_SIMPLE_CARD to kernel config

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 11 14:27:43 EDT 2020


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/4943d3f14bafc9b6ff798711b676a089eb1051a4

commit 4943d3f14bafc9b6ff798711b676a089eb1051a4
Author: Andre Heider <a.heider at gmail.com>
AuthorDate: Tue Oct 8 21:07:43 2019 +0200

    sunxi: add SND_SIMPLE_CARD to kernel config
    
    This is required to expose an ALSA card for quite some boards:
    
    $ git grep -l simple-audio-card \
            arch/arm/boot/dts/sun?i* \
            arch/arm64/boot/dts/allwinner/*
    
    arch/arm/boot/dts/sun4i-a10-a1000.dts
    arch/arm/boot/dts/sun5i-gr8-evb.dts
    arch/arm/boot/dts/sun6i-a31-i7.dts
    arch/arm/boot/dts/sun6i-a31s-sina31s.dts
    arch/arm/boot/dts/sun7i-a20-cubietruck.dts
    arch/arm/boot/dts/sun7i-a20-itead-ibox.dts
    arch/arm/boot/dts/sun8i-a33-olinuxino.dts
    arch/arm/boot/dts/sun8i-a33.dtsi
    arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
    arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
    arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts
    arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
    arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts
    
    The compressed 32bit kernel increases less than 1K:
    Before: 3230768 zImage
    After:  3231664 zImage
    
    Signed-off-by: Andre Heider <a.heider at gmail.com>
---
 target/linux/sunxi/config-4.19 | 2 ++
 target/linux/sunxi/config-5.4  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/target/linux/sunxi/config-4.19 b/target/linux/sunxi/config-4.19
index e3ac9f4f2d..1e2ba0520c 100644
--- a/target/linux/sunxi/config-4.19
+++ b/target/linux/sunxi/config-4.19
@@ -496,6 +496,8 @@ CONFIG_SND_COMPRESS_OFFLOAD=y
 CONFIG_SND_JACK=y
 CONFIG_SND_JACK_INPUT_DEV=y
 CONFIG_SND_PCM=y
+CONFIG_SND_SIMPLE_CARD=y
+CONFIG_SND_SIMPLE_CARD_UTILS=y
 CONFIG_SND_SOC=y
 CONFIG_SND_SOC_I2C_AND_SPI=y
 # CONFIG_SND_SUN4I_I2S is not set
diff --git a/target/linux/sunxi/config-5.4 b/target/linux/sunxi/config-5.4
index fa765b31f8..41aca503b5 100644
--- a/target/linux/sunxi/config-5.4
+++ b/target/linux/sunxi/config-5.4
@@ -484,6 +484,8 @@ CONFIG_SND_COMPRESS_OFFLOAD=y
 CONFIG_SND_JACK=y
 CONFIG_SND_JACK_INPUT_DEV=y
 CONFIG_SND_PCM=y
+CONFIG_SND_SIMPLE_CARD=y
+CONFIG_SND_SIMPLE_CARD_UTILS=y
 CONFIG_SND_SOC=y
 CONFIG_SND_SOC_I2C_AND_SPI=y
 # CONFIG_SND_SUN4I_I2S is not set



More information about the lede-commits mailing list