From 76dc8aba8acc0a5bddbdb6df7fb6766f3e6a0003 Mon Sep 17 00:00:00 2001 From: David Douard Date: Fri, 14 Feb 2020 18:47:55 +0100 Subject: [PATCH] Allow pcm5102 module to be built on sunxi kernels and build the module by default (#1802) * [sunxi] allow pcm5102a codec module to be built for sunxi-current and sunx-dev kernels. Fixes #1798 * [sunxi] build pcm5102a and pcm51xx_(i2s|spi) modules by default on sunxi-current and sunxi-dev kernels. --- config/kernel/linux-sunxi-current.config | 6 ++++-- config/kernel/linux-sunxi-dev.config | 6 ++++-- .../sound-soc-codecs-enable-pcm5102a.patch | 11 +++++++++++ .../sunxi-dev/sound-soc-codecs-enable-pcm5102a.patch | 11 +++++++++++ 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 patch/kernel/sunxi-current/sound-soc-codecs-enable-pcm5102a.patch create mode 100644 patch/kernel/sunxi-dev/sound-soc-codecs-enable-pcm5102a.patch diff --git a/config/kernel/linux-sunxi-current.config b/config/kernel/linux-sunxi-current.config index 027c349fda..263ab759e3 100644 --- a/config/kernel/linux-sunxi-current.config +++ b/config/kernel/linux-sunxi-current.config @@ -4737,8 +4737,10 @@ CONFIG_SND_SOC_PCM3060_I2C=m CONFIG_SND_SOC_PCM3060_SPI=m # CONFIG_SND_SOC_PCM3168A_I2C is not set # CONFIG_SND_SOC_PCM3168A_SPI is not set -# CONFIG_SND_SOC_PCM512x_I2C is not set -# CONFIG_SND_SOC_PCM512x_SPI is not set +CONFIG_SND_SOC_PCM5102A=m +CONFIG_SND_SOC_PCM512x=m +CONFIG_SND_SOC_PCM512x_I2C=m +CONFIG_SND_SOC_PCM512x_SPI=m CONFIG_SND_SOC_RK3328=m # CONFIG_SND_SOC_RT5616 is not set # CONFIG_SND_SOC_RT5631 is not set diff --git a/config/kernel/linux-sunxi-dev.config b/config/kernel/linux-sunxi-dev.config index 7f59d7e4a4..66ff9f6f3a 100644 --- a/config/kernel/linux-sunxi-dev.config +++ b/config/kernel/linux-sunxi-dev.config @@ -4716,8 +4716,10 @@ CONFIG_SND_SOC_PCM3060_I2C=m CONFIG_SND_SOC_PCM3060_SPI=m # CONFIG_SND_SOC_PCM3168A_I2C is not set # CONFIG_SND_SOC_PCM3168A_SPI is not set -# CONFIG_SND_SOC_PCM512x_I2C is not set -# CONFIG_SND_SOC_PCM512x_SPI is not set +CONFIG_SND_SOC_PCM5102A=m +CONFIG_SND_SOC_PCM512x=m +CONFIG_SND_SOC_PCM512x_I2C=m +CONFIG_SND_SOC_PCM512x_SPI=m CONFIG_SND_SOC_RK3328=m # CONFIG_SND_SOC_RT5616 is not set # CONFIG_SND_SOC_RT5631 is not set diff --git a/patch/kernel/sunxi-current/sound-soc-codecs-enable-pcm5102a.patch b/patch/kernel/sunxi-current/sound-soc-codecs-enable-pcm5102a.patch new file mode 100644 index 0000000000..7fab56de6d --- /dev/null +++ b/patch/kernel/sunxi-current/sound-soc-codecs-enable-pcm5102a.patch @@ -0,0 +1,11 @@ +--- a/sound/soc/codecs/Kconfig 2020-02-13 23:44:47.394937509 +0100 ++++ b/sound/soc/codecs/Kconfig 2020-02-13 23:47:11.571103180 +0100 +@@ -880,7 +880,7 @@ + select REGMAP_SPI + + config SND_SOC_PCM5102A +- tristate ++ tristate "Texas Instruments PCM5102A CODEC" + + config SND_SOC_PCM512x + tristate diff --git a/patch/kernel/sunxi-dev/sound-soc-codecs-enable-pcm5102a.patch b/patch/kernel/sunxi-dev/sound-soc-codecs-enable-pcm5102a.patch new file mode 100644 index 0000000000..27f8329874 --- /dev/null +++ b/patch/kernel/sunxi-dev/sound-soc-codecs-enable-pcm5102a.patch @@ -0,0 +1,11 @@ +--- a/sound/soc/codecs/Kconfig 2020-02-13 23:44:47.394937509 +0100 ++++ b/sound/soc/codecs/Kconfig 2020-02-13 23:47:11.571103180 +0100 +@@ -917,7 +917,7 @@ + select REGMAP_SPI + + config SND_SOC_PCM5102A +- tristate ++ tristate "Texas Instruments PCM5102A CODEC" + + config SND_SOC_PCM512x + tristate