blob: da1f7a16605b44c4d74beddb25a5f119fc9b40be [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
olivier moysan5561b662017-06-19 11:09:55 +02002menu "STMicroelectronics STM32 SOC audio support"
3
4config SND_SOC_STM32_SAI
5 tristate "STM32 SAI interface (Serial Audio Interface) support"
Olivier Moysan276d70f2018-02-05 11:49:45 +01006 depends on (ARCH_STM32 && OF) || COMPILE_TEST
Olivier Moysane6d79422018-10-22 17:10:45 +02007 depends on COMMON_CLK
olivier moysan3e086ed2017-04-10 17:19:56 +02008 depends on SND_SOC
9 select SND_SOC_GENERIC_DMAENGINE_PCM
10 select REGMAP_MMIO
olivier moysan187e01d2018-06-11 17:13:59 +020011 select SND_PCM_IEC958
olivier moysan3e086ed2017-04-10 17:19:56 +020012 help
olivier moysan5561b662017-06-19 11:09:55 +020013 Say Y if you want to enable SAI for STM32
14
15config SND_SOC_STM32_I2S
16 tristate "STM32 I2S interface (SPI/I2S block) support"
Olivier Moysan276d70f2018-02-05 11:49:45 +010017 depends on (ARCH_STM32 && OF) || COMPILE_TEST
Krzysztof Kozlowski82ceffc2020-11-16 18:51:32 +010018 depends on COMMON_CLK
olivier moysan5561b662017-06-19 11:09:55 +020019 depends on SND_SOC
20 select SND_SOC_GENERIC_DMAENGINE_PCM
21 select REGMAP_MMIO
22 help
23 Say Y if you want to enable I2S for STM32
24
olivier moysan03e4d5d2017-06-20 11:58:47 +020025config SND_SOC_STM32_SPDIFRX
26 tristate "STM32 S/PDIF receiver (SPDIFRX) support"
Olivier Moysan276d70f2018-02-05 11:49:45 +010027 depends on (ARCH_STM32 && OF) || COMPILE_TEST
olivier moysan03e4d5d2017-06-20 11:58:47 +020028 depends on SND_SOC
29 select SND_SOC_GENERIC_DMAENGINE_PCM
30 select REGMAP_MMIO
31 select SND_SOC_SPDIF
32 help
33 Say Y if you want to enable S/PDIF capture for STM32
34
Arnaud Pouliquen55da0942018-01-10 11:13:15 +010035config SND_SOC_STM32_DFSDM
36 tristate "SoC Audio support for STM32 DFSDM"
Arnd Bergmann9cee7972018-01-11 11:33:26 +010037 depends on ARCH_STM32 || COMPILE_TEST
Arnaud Pouliquen55da0942018-01-10 11:13:15 +010038 depends on SND_SOC
Arnd Bergmann9cee7972018-01-11 11:33:26 +010039 depends on STM32_DFSDM_ADC
Arnaud Pouliquen55da0942018-01-10 11:13:15 +010040 select SND_SOC_GENERIC_DMAENGINE_PCM
41 select SND_SOC_DMIC
42 select IIO_BUFFER_CB
43 help
44 Select this option to enable the STM32 Digital Filter
45 for Sigma Delta Modulators (DFSDM) driver used
46 in various STM32 series for digital microphone capture.
olivier moysan5561b662017-06-19 11:09:55 +020047endmenu