Skip to contentSkip to conversation

ASoC: fsl: add COMPILE_TEST for SND_SOC_FSL_ASRC

PATCH In review Randy Dunlap 2 participants 2 messages Oct 3, 2021 – Oct 4, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: fsl: add COMPILE_TEST for SND_SOC_FSL_ASRC

Geert pointed out that since sound/soc has the soc_dummy_driver for NO_DMA platforms, it is possible (desirable) to have drivers that depend on HAS_DMA to alternately depend on COMPILE_TEST.

This means that SND_ATMEL_FSL_ASRC can depend on HAS_DMA || COMPIE_TEST.

Fixes 121a01521b1e ("ASoC: fsl: fix build failure")
Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Nicolin Chen <[email protected]>
Cc Xiubo Li <[email protected]>
Cc Sudip Mukherjee <[email protected]>
Cc Shengjiu Wang <[email protected]>
Cc Fabio Estevam <[email protected]>
---
 sound/soc/fsl/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/Kconfig +1 -1
@@ -5,7 +5,7 @@ comment "Common SoC Audio options for Fr
 
 config SND_SOC_FSL_ASRC
 	tristate "Asynchronous Sample Rate Converter (ASRC) module support"
-	depends on HAS_DMA
+	depends on HAS_DMA || COMPILE_TEST
 	select REGMAP_MMIO
 	select SND_SOC_GENERIC_DMAENGINE_PCM
 	help
Reviewed-by on v1 1/1
#1 lore raw

Hi Randy,

Quoted 3 lines · Randy Dunlap

Geert pointed out that since sound/soc has the soc_dummy_driver for NO_DMA platforms, it is possible (desirable) to have drivers that depend on HAS_DMA to alternately depend on COMPILE_TEST.

Actually I had never heard about the soc_dummy_driver before ;-) I did know about the dummies in include/linux/dma-mapping.h.

Quoted 1 line

This means that SND_ATMEL_FSL_ASRC can depend on HAS_DMA || COMPIE_TEST.

COMPILE_TEST

Quoted 7 lines
Fixes 121a01521b1e ("ASoC: fsl: fix build failure")

sound/soc/fsl/Kconfig comment "Common SoC Audio options for Fr · line 11

Quoted 8 lines
sound/soc/fsl/Kconfig +1 -1
@@ -5,7 +5,7 @@ comment "Common SoC Audio options for Fr
 
 config SND_SOC_FSL_ASRC
        tristate "Asynchronous Sample Rate Converter (ASRC) module support"
-       depends on HAS_DMA
+       depends on HAS_DMA || COMPILE_TEST
        select REGMAP_MMIO
        select SND_SOC_GENERIC_DMAENGINE_PCM
        help

The actual change LGTM, so

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds