xref: /openbmc/linux/sound/soc/stm/Kconfig (revision 7a010c3c)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "STMicroelectronics STM32 SOC audio support"
3
4config SND_SOC_STM32_SAI
5	tristate "STM32 SAI interface (Serial Audio Interface) support"
6	depends on (ARCH_STM32 && OF) || COMPILE_TEST
7	depends on COMMON_CLK
8	depends on SND_SOC
9	select SND_SOC_GENERIC_DMAENGINE_PCM
10	select REGMAP_MMIO
11	select SND_PCM_IEC958
12	help
13	  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"
17	depends on (ARCH_STM32 && OF) || COMPILE_TEST
18	depends on COMMON_CLK
19	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
25config SND_SOC_STM32_SPDIFRX
26	tristate "STM32 S/PDIF receiver (SPDIFRX) support"
27	depends on (ARCH_STM32 && OF) || COMPILE_TEST
28	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
35config SND_SOC_STM32_DFSDM
36	tristate "SoC Audio support for STM32 DFSDM"
37	depends on ARCH_STM32 || COMPILE_TEST
38	depends on SND_SOC
39	depends on STM32_DFSDM_ADC
40	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.
47endmenu
48