* [PATCH 1/2] arm64: defconfig: Switch SOUND to module
@ 2025-06-12 13:44 Krzysztof Kozlowski
2025-06-12 13:44 ` [PATCH 2/2] arm64: defconfig: Drop unneeded unselectable sound drivers Krzysztof Kozlowski
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-12 13:44 UTC (permalink / raw)
To: krzk
Cc: Krzysztof Kozlowski, Geert Uytterhoeven, Arnd Bergmann,
linux-arm-kernel, linux-kernel, Sven Peter, Janne Grunau, asahi,
linux-samsung-soc
Sound drivers are not essential to boot boards or mount rootfs,
therefore in effort to reduce the size of kernel image (and boot images)
switch the ASoC drivers to modules to decrease the size:
vmlinux: 152864 kB -> 154528 kB
Image: 39391 kB -> 39067 kB
No difference in resulting include/generated/autoconf.h, except making
modules: SND_SOC_SAMSUNG, SND_SOC_SDCA_OPTIONAL, SND_SOC_APPLE_MCA,
SND_TIMER, SND_COMPRESS_OFFLOAD, SND_PCM, SND_SOC_SOF_OF and
SND_DMAENGINE_PCM.
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
If patches are fine, I will take them via Samsung SoC.
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: Sven Peter <sven@kernel.org>
Cc: Janne Grunau <j@jannau.net>
Cc: asahi@lists.linux.dev
Cc: linux-samsung-soc@vger.kernel.org
---
arch/arm64/configs/defconfig | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 62d3c87858e1..14fcd0a85f5b 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -979,12 +979,12 @@ CONFIG_BACKLIGHT_LP855X=m
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
-CONFIG_SOUND=y
-CONFIG_SND=y
+CONFIG_SOUND=m
+CONFIG_SND=m
CONFIG_SND_ALOOP=m
CONFIG_SND_HDA_TEGRA=m
CONFIG_SND_HDA_CODEC_HDMI=m
-CONFIG_SND_SOC=y
+CONFIG_SND_SOC=m
CONFIG_SND_BCM2835_SOC_I2S=m
CONFIG_SND_SOC_FSL_ASRC=m
CONFIG_SND_SOC_FSL_MICFIL=m
@@ -1021,12 +1021,12 @@ CONFIG_SND_SOC_ROCKCHIP_SAI=m
CONFIG_SND_SOC_ROCKCHIP_SPDIF=m
CONFIG_SND_SOC_ROCKCHIP_RT5645=m
CONFIG_SND_SOC_RK3399_GRU_SOUND=m
-CONFIG_SND_SOC_SAMSUNG=y
CONFIG_SND_SOC_RCAR=m
CONFIG_SND_SOC_MSIOF=m
CONFIG_SND_SOC_RZ=m
+CONFIG_SND_SOC_SAMSUNG=m
CONFIG_SND_SOC_SOF_TOPLEVEL=y
-CONFIG_SND_SOC_SOF_OF=y
+CONFIG_SND_SOC_SOF_OF=m
CONFIG_SND_SOC_SOF_MTK_TOPLEVEL=y
CONFIG_SND_SOC_SOF_MT8186=m
CONFIG_SND_SOC_SOF_MT8195=m
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] arm64: defconfig: Drop unneeded unselectable sound drivers
2025-06-12 13:44 [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
@ 2025-06-12 13:44 ` Krzysztof Kozlowski
2025-06-12 13:45 ` [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-12 13:44 UTC (permalink / raw)
To: krzk
Cc: Krzysztof Kozlowski, Arnd Bergmann, linux-arm-kernel,
linux-kernel, Sven Peter, Janne Grunau, asahi, linux-samsung-soc
SND_SOC_ES8328 is selected by SND_SOC_ES8328_I2C. SND_SOC_WCD939X is
selected by SND_SOC_WCD939X. None of these are user-visible options so
their presence in defconfig is redundant.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: Sven Peter <sven@kernel.org>
Cc: Janne Grunau <j@jannau.net>
Cc: asahi@lists.linux.dev
Cc: linux-samsung-soc@vger.kernel.org
---
arch/arm64/configs/defconfig | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 14fcd0a85f5b..a47e1616b4ef 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1057,7 +1057,6 @@ CONFIG_SND_SOC_DA7213=m
CONFIG_SND_SOC_ES7134=m
CONFIG_SND_SOC_ES7241=m
CONFIG_SND_SOC_ES8316=m
-CONFIG_SND_SOC_ES8328=m
CONFIG_SND_SOC_ES8328_I2C=m
CONFIG_SND_SOC_GTM601=m
CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m
@@ -1075,7 +1074,6 @@ CONFIG_SND_SOC_TLV320AIC32X4_I2C=m
CONFIG_SND_SOC_TLV320AIC3X_I2C=m
CONFIG_SND_SOC_WCD9335=m
CONFIG_SND_SOC_WCD934X=m
-CONFIG_SND_SOC_WCD939X=m
CONFIG_SND_SOC_WCD939X_SDW=m
CONFIG_SND_SOC_WM8524=m
CONFIG_SND_SOC_WM8904=m
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] arm64: defconfig: Switch SOUND to module
2025-06-12 13:44 [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
2025-06-12 13:44 ` [PATCH 2/2] arm64: defconfig: Drop unneeded unselectable sound drivers Krzysztof Kozlowski
@ 2025-06-12 13:45 ` Krzysztof Kozlowski
2025-06-12 14:43 ` Sven Peter
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-12 13:45 UTC (permalink / raw)
To: krzk
Cc: Geert Uytterhoeven, Arnd Bergmann, linux-arm-kernel, linux-kernel,
Sven Peter, Janne Grunau, asahi, linux-samsung-soc
On 12/06/2025 15:44, Krzysztof Kozlowski wrote:
> Sound drivers are not essential to boot boards or mount rootfs,
> therefore in effort to reduce the size of kernel image (and boot images)
> switch the ASoC drivers to modules to decrease the size:
>
> vmlinux: 152864 kB -> 154528 kB
Opposite...
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] arm64: defconfig: Switch SOUND to module
2025-06-12 13:44 [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
2025-06-12 13:44 ` [PATCH 2/2] arm64: defconfig: Drop unneeded unselectable sound drivers Krzysztof Kozlowski
2025-06-12 13:45 ` [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
@ 2025-06-12 14:43 ` Sven Peter
2025-06-12 15:05 ` Arnd Bergmann
2025-06-16 9:11 ` Krzysztof Kozlowski
4 siblings, 0 replies; 6+ messages in thread
From: Sven Peter @ 2025-06-12 14:43 UTC (permalink / raw)
To: Krzysztof Kozlowski, krzk
Cc: Geert Uytterhoeven, Arnd Bergmann, linux-arm-kernel, linux-kernel,
Janne Grunau, asahi, linux-samsung-soc
On 12.06.25 15:44, Krzysztof Kozlowski wrote:
> Sound drivers are not essential to boot boards or mount rootfs,
> therefore in effort to reduce the size of kernel image (and boot images)
> switch the ASoC drivers to modules to decrease the size:
>
> vmlinux: 152864 kB -> 154528 kB
> Image: 39391 kB -> 39067 kB
>
> No difference in resulting include/generated/autoconf.h, except making
> modules: SND_SOC_SAMSUNG, SND_SOC_SDCA_OPTIONAL, SND_SOC_APPLE_MCA,
> SND_TIMER, SND_COMPRESS_OFFLOAD, SND_PCM, SND_SOC_SOF_OF and
> SND_DMAENGINE_PCM.
>
> Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> If patches are fine, I will take them via Samsung SoC.
>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
> Cc: Sven Peter <sven@kernel.org>
> Cc: Janne Grunau <j@jannau.net>
> Cc: asahi@lists.linux.dev
> Cc: linux-samsung-soc@vger.kernel.org
> ---
Acked-by: Sven Peter <sven@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] arm64: defconfig: Switch SOUND to module
2025-06-12 13:44 [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
` (2 preceding siblings ...)
2025-06-12 14:43 ` Sven Peter
@ 2025-06-12 15:05 ` Arnd Bergmann
2025-06-16 9:11 ` Krzysztof Kozlowski
4 siblings, 0 replies; 6+ messages in thread
From: Arnd Bergmann @ 2025-06-12 15:05 UTC (permalink / raw)
To: Krzysztof Kozlowski, Krzysztof Kozlowski
Cc: Geert Uytterhoeven, linux-arm-kernel, linux-kernel, Sven Peter,
Janne Grunau, asahi, linux-samsung-soc
On Thu, Jun 12, 2025, at 15:44, Krzysztof Kozlowski wrote:
> Sound drivers are not essential to boot boards or mount rootfs,
> therefore in effort to reduce the size of kernel image (and boot images)
> switch the ASoC drivers to modules to decrease the size:
>
> vmlinux: 152864 kB -> 154528 kB
> Image: 39391 kB -> 39067 kB
>
> No difference in resulting include/generated/autoconf.h, except making
> modules: SND_SOC_SAMSUNG, SND_SOC_SDCA_OPTIONAL, SND_SOC_APPLE_MCA,
> SND_TIMER, SND_COMPRESS_OFFLOAD, SND_PCM, SND_SOC_SOF_OF and
> SND_DMAENGINE_PCM.
>
> Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> If patches are fine, I will take them via Samsung SoC.
Nice find!
Acked-by: Arnd Bergmann <arnd@arndb.de>
There are some nasty interactions between DRM drivers calling
into sound drivers for HDMI audio, but I checked that this is fine
here because of CONFIG_DRM=m.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] arm64: defconfig: Switch SOUND to module
2025-06-12 13:44 [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
` (3 preceding siblings ...)
2025-06-12 15:05 ` Arnd Bergmann
@ 2025-06-16 9:11 ` Krzysztof Kozlowski
4 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-16 9:11 UTC (permalink / raw)
To: krzk, Krzysztof Kozlowski
Cc: Geert Uytterhoeven, Arnd Bergmann, linux-arm-kernel, linux-kernel,
Sven Peter, Janne Grunau, asahi, linux-samsung-soc
On Thu, 12 Jun 2025 15:44:22 +0200, Krzysztof Kozlowski wrote:
> Sound drivers are not essential to boot boards or mount rootfs,
> therefore in effort to reduce the size of kernel image (and boot images)
> switch the ASoC drivers to modules to decrease the size:
>
> vmlinux: 152864 kB -> 154528 kB
> Image: 39391 kB -> 39067 kB
>
> [...]
Applied, thanks!
[1/2] arm64: defconfig: Switch SOUND to module
https://git.kernel.org/krzk/linux/c/927f1259c517ec0dc589f5014c4edbdc87591cd8
[2/2] arm64: defconfig: Drop unneeded unselectable sound drivers
https://git.kernel.org/krzk/linux/c/a8365bfb249907069fb584a535d03c291157ddbb
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-06-16 9:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-12 13:44 [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
2025-06-12 13:44 ` [PATCH 2/2] arm64: defconfig: Drop unneeded unselectable sound drivers Krzysztof Kozlowski
2025-06-12 13:45 ` [PATCH 1/2] arm64: defconfig: Switch SOUND to module Krzysztof Kozlowski
2025-06-12 14:43 ` Sven Peter
2025-06-12 15:05 ` Arnd Bergmann
2025-06-16 9:11 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox