]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: stm32: add of dependency for stm32 drivers
authorOlivier Moysan <olivier.moysan@st.com>
Mon, 5 Feb 2018 10:49:45 +0000 (11:49 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Feb 2018 11:19:53 +0000 (11:19 +0000)
Add of dependency for STM32 ASoC drivers.
DFSDM of dependency is already inherited
from STM32_DFSDM_ADC dependency.

Signed-off-by: olivier moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/Kconfig

index 3ad881fc40a16173bec38808d9b6819df9e23557..48f9ddd94016d12cc1b86cbcbee93cba8b6fc214 100644 (file)
@@ -2,7 +2,7 @@ menu "STMicroelectronics STM32 SOC audio support"
 
 config SND_SOC_STM32_SAI
        tristate "STM32 SAI interface (Serial Audio Interface) support"
-       depends on ARCH_STM32 || COMPILE_TEST
+       depends on (ARCH_STM32 && OF) || COMPILE_TEST
        depends on SND_SOC
        select SND_SOC_GENERIC_DMAENGINE_PCM
        select REGMAP_MMIO
@@ -11,7 +11,7 @@ config SND_SOC_STM32_SAI
 
 config SND_SOC_STM32_I2S
        tristate "STM32 I2S interface (SPI/I2S block) support"
-       depends on ARCH_STM32 || COMPILE_TEST
+       depends on (ARCH_STM32 && OF) || COMPILE_TEST
        depends on SND_SOC
        select SND_SOC_GENERIC_DMAENGINE_PCM
        select REGMAP_MMIO
@@ -20,7 +20,7 @@ config SND_SOC_STM32_I2S
 
 config SND_SOC_STM32_SPDIFRX
        tristate "STM32 S/PDIF receiver (SPDIFRX) support"
-       depends on ARCH_STM32 || COMPILE_TEST
+       depends on (ARCH_STM32 && OF) || COMPILE_TEST
        depends on SND_SOC
        select SND_SOC_GENERIC_DMAENGINE_PCM
        select REGMAP_MMIO