All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: SOF: build compression interface into snd_sof.ko
@ 2021-11-08 11:11 ` Arnd Bergmann
  0 siblings, 0 replies; 16+ messages in thread
From: Arnd Bergmann @ 2021-11-08 11:11 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Liam Girdwood, Ranjani Sridharan,
	Kai Vehmanen, Daniel Baluta
  Cc: Arnd Bergmann, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Colin Ian King, Peter Ujfalusi, Randy Dunlap,
	Bud Liviu-Alexandru, Paul Olaru, sound-open-firmware, alsa-devel,
	linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

With CONFIG_SND_SOC_SOF_COMPRESS=m, the compression code is
not built into a the main SOF driver when that is built-in:

x86_64-linux-ld: sound/soc/sof/ipc.o: in function `ipc_stream_message':
ipc.c:(.text+0x5a2): undefined reference to `snd_sof_compr_fragment_elapsed'
x86_64-linux-ld: sound/soc/sof/topology.o: in function `sof_dai_load':
topology.c:(.text+0x32d1): undefined reference to `snd_sof_compr_init_elapsed_work'
x86_64-linux-ld: topology.c:(.text+0x32e1): undefined reference to `snd_sof_compr_init_elapsed_work'

Make this a 'bool' symbol so it just decides whether the
code gets built at all.

Fixes: 858f7a5c45ca ("ASoC: SOF: Introduce fragment elapsed notification API")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 sound/soc/sof/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sof/Kconfig b/sound/soc/sof/Kconfig
index 6bb4db87af03..041c54639c4d 100644
--- a/sound/soc/sof/Kconfig
+++ b/sound/soc/sof/Kconfig
@@ -47,7 +47,7 @@ config SND_SOC_SOF_OF
 	  Say Y if you need this option. If unsure select "N".
 
 config SND_SOC_SOF_COMPRESS
-	tristate
+	bool
 	select SND_SOC_COMPRESS
 
 config SND_SOC_SOF_DEBUG_PROBES
-- 
2.29.2


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

end of thread, other threads:[~2021-11-12 21:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08 11:11 [PATCH] ASoC: SOF: build compression interface into snd_sof.ko Arnd Bergmann
2021-11-08 11:11 ` Arnd Bergmann
2021-11-08 13:39 ` Pierre-Louis Bossart
2021-11-08 13:39   ` Pierre-Louis Bossart
2021-11-08 14:13   ` Daniel Baluta
2021-11-08 14:13     ` Daniel Baluta
2021-11-08 16:15     ` Arnd Bergmann
2021-11-08 16:15       ` Arnd Bergmann
2021-11-08 17:18       ` [Sound-open-firmware] " Pierre-Louis Bossart
2021-11-08 17:18         ` Pierre-Louis Bossart
2021-11-08 18:11         ` Arnd Bergmann
2021-11-08 18:11           ` Arnd Bergmann
2021-11-10 15:27 ` Daniel Baluta
2021-11-10 15:27   ` Daniel Baluta
2021-11-12 21:27 ` Mark Brown
2021-11-12 21:27   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.