xref: /openbmc/linux/sound/soc/cirrus/Kconfig (revision 2f164822)
1# SPDX-License-Identifier: GPL-2.0-only
2config SND_EP93XX_SOC
3	tristate "SoC Audio support for the Cirrus Logic EP93xx series"
4	depends on ARCH_EP93XX || COMPILE_TEST
5	select SND_SOC_GENERIC_DMAENGINE_PCM
6	help
7	  Say Y or M if you want to add support for codecs attached to
8	  the EP93xx I2S or AC97 interfaces.
9
10config SND_EP93XX_SOC_I2S
11	tristate
12
13if SND_EP93XX_SOC_I2S
14
15config SND_EP93XX_SOC_I2S_WATCHDOG
16	bool "IRQ based underflow watchdog workaround"
17	default y
18	help
19	  I2S controller on EP93xx seems to have undocumented HW issue.
20	  Underflow of internal I2S controller FIFO could confuse the
21	  state machine and the whole stream can be shifted by one byte
22	  until I2S is disabled. This option enables IRQ based watchdog
23	  which disables and re-enables I2S in case of underflow and
24	  fills FIFO with zeroes.
25
26	  If you are unsure how to answer this question, answer Y.
27
28endif # if SND_EP93XX_SOC_I2S
29
30config SND_EP93XX_SOC_EDB93XX
31	tristate "SoC Audio support for Cirrus Logic EDB93xx boards"
32	depends on SND_EP93XX_SOC && (MACH_EDB9301 || MACH_EDB9302 || MACH_EDB9302A || MACH_EDB9307A || MACH_EDB9315A)
33	select SND_EP93XX_SOC_I2S
34	select SND_SOC_CS4271_I2C if I2C
35	select SND_SOC_CS4271_SPI if SPI_MASTER
36	help
37	  Say Y or M here if you want to add support for I2S audio on the
38	  Cirrus Logic EDB93xx boards.
39