* [PATCH] soundwire: intel_ace2x: fix SND_SOC_SOF_HDA_MLINK dependency
@ 2023-06-16 9:09 Arnd Bergmann
2023-06-21 10:51 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2023-06-16 9:09 UTC (permalink / raw)
To: Vinod Koul, Bard Liao, Péter Ujfalusi, Ranjani Sridharan,
Pierre-Louis Bossart
Cc: Arnd Bergmann, Sanyog Kale, Vijendar Mukunda, Rander Wang,
alsa-devel, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
The ace2x driver can be build with or without mlink support, but
when SND_SOC_SOF_HDA_MLINK is set to =m and soundwire is built-in,
it fails with a link error:
ld.lld: error: undefined symbol: hdac_bus_eml_sdw_wait_syncpu_unlocked
>>> referenced by intel_ace2x.c
>>> drivers/soundwire/intel_ace2x.o:(intel_link_power_up) in archive vmlinux.a
ld.lld: error: undefined symbol: hdac_bus_eml_sdw_sync_arm_unlocked
>>> referenced by intel_ace2x.c
>>> drivers/soundwire/intel_ace2x.o:(intel_sync_arm) in archive vmlinux.a
Add a Kconfig dependency that prevents that broken configuration but
still allows soundwire to be a loadable module instead.
Fixes: 4d1e2464a1104 ("soundwire: intel_ace2x: add sync_arm/sync_go helpers")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/soundwire/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig
index fa71c9a36df7a..4d8f3b7024ae5 100644
--- a/drivers/soundwire/Kconfig
+++ b/drivers/soundwire/Kconfig
@@ -37,6 +37,7 @@ config SOUNDWIRE_INTEL
select SOUNDWIRE_GENERIC_ALLOCATION
select AUXILIARY_BUS
depends on ACPI && SND_SOC
+ depends on SND_SOC_SOF_HDA_MLINK || !SND_SOC_SOF_HDA_MLINK
help
SoundWire Intel Master driver.
If you have an Intel platform which has a SoundWire Master then
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] soundwire: intel_ace2x: fix SND_SOC_SOF_HDA_MLINK dependency
2023-06-16 9:09 [PATCH] soundwire: intel_ace2x: fix SND_SOC_SOF_HDA_MLINK dependency Arnd Bergmann
@ 2023-06-21 10:51 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2023-06-21 10:51 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Bard Liao, Péter Ujfalusi, Ranjani Sridharan,
Pierre-Louis Bossart, Arnd Bergmann, Sanyog Kale,
Vijendar Mukunda, Rander Wang, alsa-devel, linux-kernel
On 16-06-23, 11:09, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> The ace2x driver can be build with or without mlink support, but
> when SND_SOC_SOF_HDA_MLINK is set to =m and soundwire is built-in,
> it fails with a link error:
>
> ld.lld: error: undefined symbol: hdac_bus_eml_sdw_wait_syncpu_unlocked
> >>> referenced by intel_ace2x.c
> >>> drivers/soundwire/intel_ace2x.o:(intel_link_power_up) in archive vmlinux.a
>
> ld.lld: error: undefined symbol: hdac_bus_eml_sdw_sync_arm_unlocked
> >>> referenced by intel_ace2x.c
> >>> drivers/soundwire/intel_ace2x.o:(intel_sync_arm) in archive vmlinux.a
>
> Add a Kconfig dependency that prevents that broken configuration but
> still allows soundwire to be a loadable module instead.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-21 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16 9:09 [PATCH] soundwire: intel_ace2x: fix SND_SOC_SOF_HDA_MLINK dependency Arnd Bergmann
2023-06-21 10:51 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox