mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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: 3ec5c15793
("drm: xlnx: zynqmp_dpsub: Add DP audio support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250227132036.1136600-1-arnd@kernel.org
29 lines
903 B
Text
29 lines
903 B
Text
config DRM_ZYNQMP_DPSUB
|
|
tristate "ZynqMP DisplayPort Controller Driver"
|
|
depends on ARCH_ZYNQMP || COMPILE_TEST
|
|
depends on COMMON_CLK && DRM && OF
|
|
depends on DMADEVICES
|
|
depends on PHY_XILINX_ZYNQMP
|
|
depends on XILINX_ZYNQMP_DPDMA
|
|
select DMA_ENGINE
|
|
select DRM_CLIENT_SELECTION
|
|
select DRM_DISPLAY_DP_HELPER
|
|
select DRM_DISPLAY_HELPER
|
|
select DRM_BRIDGE_CONNECTOR
|
|
select DRM_GEM_DMA_HELPER
|
|
select DRM_KMS_HELPER
|
|
select GENERIC_PHY
|
|
help
|
|
This is a DRM/KMS driver for ZynqMP DisplayPort controller. Choose
|
|
this option if you have a Xilinx ZynqMP SoC with DisplayPort
|
|
subsystem.
|
|
|
|
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
|
|
DisplayPort driver.
|