dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: xlnx: zynqmp_dpsub: fix Kconfig dependencies for ASoC
@ 2025-02-27 13:20 Arnd Bergmann
  2025-03-12 14:34 ` Tomi Valkeinen
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2025-02-27 13:20 UTC (permalink / raw)
  To: Laurent Pinchart, Tomi Valkeinen, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
	Vishal Sagar
  Cc: Arnd Bergmann, Jani Nikula, Geert Uytterhoeven, Dmitry Baryshkov,
	dri-devel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The new audio code fails to build when sounds support is in a loadable
module but the GPU driver is built-in:

x86_64-linux-ld: zynqmp_dp_audio.c:(.text+0x6a8): undefined reference to `devm_snd_soc_register_card'
x86_64-linux-ld: drivers/gpu/drm/xlnx/zynqmp_dp_audio.o:(.rodata+0x1bc): undefined reference to `snd_soc_info_volsw'
x86_64-linux-ld: drivers/gpu/drm/xlnx/zynqmp_dp_audio.o:(.rodata+0x1f0): undefined reference to `snd_soc_get_volsw'
x86_64-linux-ld: drivers/gpu/drm/xlnx/zynqmp_dp_audio.o:(.rodata+0x1f4): undefined reference to `snd_soc_put_volsw'

Change the Kconfig dependency to disallow the sound support in this
configuration.

Fixes: 3ec5c1579305 ("drm: xlnx: zynqmp_dpsub: Add DP audio support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/gpu/drm/xlnx/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xlnx/Kconfig b/drivers/gpu/drm/xlnx/Kconfig
index dbecca9bdd54..cfabf5e2a0bb 100644
--- a/drivers/gpu/drm/xlnx/Kconfig
+++ b/drivers/gpu/drm/xlnx/Kconfig
@@ -22,6 +22,7 @@ config DRM_ZYNQMP_DPSUB_AUDIO
 	bool "ZynqMP DisplayPort Audio Support"
 	depends on DRM_ZYNQMP_DPSUB
 	depends on SND && SND_SOC
+	depends on SND_SOC=y || DRM_ZYNQMP_DPSUB=m
 	select SND_SOC_GENERIC_DMAENGINE_PCM
 	help
 	  Choose this option to enable DisplayPort audio support in the ZynqMP
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm: xlnx: zynqmp_dpsub: fix Kconfig dependencies for ASoC
  2025-02-27 13:20 [PATCH] drm: xlnx: zynqmp_dpsub: fix Kconfig dependencies for ASoC Arnd Bergmann
@ 2025-03-12 14:34 ` Tomi Valkeinen
  0 siblings, 0 replies; 2+ messages in thread
From: Tomi Valkeinen @ 2025-03-12 14:34 UTC (permalink / raw)
  To: Arnd Bergmann, Laurent Pinchart, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Vishal Sagar
  Cc: Arnd Bergmann, Jani Nikula, Geert Uytterhoeven, Dmitry Baryshkov,
	dri-devel, linux-kernel

Hi Arnd,

On 27/02/2025 15:20, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The new audio code fails to build when sounds support is in a loadable
> module but the GPU driver is built-in:
> 
> x86_64-linux-ld: zynqmp_dp_audio.c:(.text+0x6a8): undefined reference to `devm_snd_soc_register_card'
> x86_64-linux-ld: drivers/gpu/drm/xlnx/zynqmp_dp_audio.o:(.rodata+0x1bc): undefined reference to `snd_soc_info_volsw'
> x86_64-linux-ld: drivers/gpu/drm/xlnx/zynqmp_dp_audio.o:(.rodata+0x1f0): undefined reference to `snd_soc_get_volsw'
> x86_64-linux-ld: drivers/gpu/drm/xlnx/zynqmp_dp_audio.o:(.rodata+0x1f4): undefined reference to `snd_soc_put_volsw'
> 
> Change the Kconfig dependency to disallow the sound support in this
> configuration.
> 
> Fixes: 3ec5c1579305 ("drm: xlnx: zynqmp_dpsub: Add DP audio support")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>   drivers/gpu/drm/xlnx/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/xlnx/Kconfig b/drivers/gpu/drm/xlnx/Kconfig
> index dbecca9bdd54..cfabf5e2a0bb 100644
> --- a/drivers/gpu/drm/xlnx/Kconfig
> +++ b/drivers/gpu/drm/xlnx/Kconfig
> @@ -22,6 +22,7 @@ config DRM_ZYNQMP_DPSUB_AUDIO
>   	bool "ZynqMP DisplayPort Audio Support"
>   	depends on DRM_ZYNQMP_DPSUB
>   	depends on SND && SND_SOC
> +	depends on SND_SOC=y || DRM_ZYNQMP_DPSUB=m
>   	select SND_SOC_GENERIC_DMAENGINE_PCM
>   	help
>   	  Choose this option to enable DisplayPort audio support in the ZynqMP

Thanks, pushing to drm-misc-next.

  Tomi


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-12 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 13:20 [PATCH] drm: xlnx: zynqmp_dpsub: fix Kconfig dependencies for ASoC Arnd Bergmann
2025-03-12 14:34 ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox