xref: /openbmc/linux/sound/soc/stm/Kconfig (revision a5a8cb96)
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 SND_SOC
19	select SND_SOC_GENERIC_DMAENGINE_PCM
20	select REGMAP_MMIO
21	help
22	  Say Y if you want to enable I2S for STM32
23
24config SND_SOC_STM32_SPDIFRX
25	tristate "STM32 S/PDIF receiver (SPDIFRX) support"
26	depends on (ARCH_STM32 && OF) || COMPILE_TEST
27	depends on SND_SOC
28	select SND_SOC_GENERIC_DMAENGINE_PCM
29	select REGMAP_MMIO
30	select SND_SOC_SPDIF
31	help
32	  Say Y if you want to enable S/PDIF capture for STM32
33
34config SND_SOC_STM32_DFSDM
35	tristate "SoC Audio support for STM32 DFSDM"
36	depends on ARCH_STM32 || COMPILE_TEST
37	depends on SND_SOC
38	depends on STM32_DFSDM_ADC
39	select SND_SOC_GENERIC_DMAENGINE_PCM
40	select SND_SOC_DMIC
41	select IIO_BUFFER_CB
42	help
43	  Select this option to enable the STM32 Digital Filter
44	  for Sigma Delta Modulators (DFSDM) driver used
45	  in various STM32 series for digital microphone capture.
46endmenu
47