xref: /openbmc/linux/sound/soc/atmel/Kconfig (revision 20e2fc42)
1# SPDX-License-Identifier: GPL-2.0-only
2config SND_ATMEL_SOC
3	tristate "SoC Audio for the Atmel System-on-Chip"
4	depends on HAS_IOMEM
5	help
6	  Say Y or M if you want to add support for codecs attached to
7	  the ATMEL SSC interface. You will also need
8	  to select the audio interfaces to support below.
9
10if SND_ATMEL_SOC
11
12config SND_ATMEL_SOC_PDC
13	tristate
14	depends on HAS_DMA
15
16config SND_ATMEL_SOC_DMA
17	tristate
18	select SND_SOC_GENERIC_DMAENGINE_PCM
19
20config SND_ATMEL_SOC_SSC
21	tristate
22
23config SND_ATMEL_SOC_SSC_PDC
24	tristate "SoC PCM DAI support for AT91 SSC controller using PDC"
25	depends on ATMEL_SSC
26	select SND_ATMEL_SOC_PDC
27	select SND_ATMEL_SOC_SSC
28	help
29	  Say Y or M if you want to add support for Atmel SSC interface
30	  in PDC mode configured using audio-graph-card in device-tree.
31
32config SND_ATMEL_SOC_SSC_DMA
33	tristate "SoC PCM DAI support for AT91 SSC controller using DMA"
34	depends on ATMEL_SSC
35	select SND_ATMEL_SOC_DMA
36	select SND_ATMEL_SOC_SSC
37	help
38	  Say Y or M if you want to add support for Atmel SSC interface
39	  in DMA mode configured using audio-graph-card in device-tree.
40
41config SND_AT91_SOC_SAM9G20_WM8731
42	tristate "SoC Audio support for WM8731-based At91sam9g20 evaluation board"
43	depends on ARCH_AT91 || COMPILE_TEST
44	depends on ATMEL_SSC && SND_SOC_I2C_AND_SPI
45	select SND_ATMEL_SOC_SSC_PDC
46	select SND_SOC_WM8731
47	help
48	  Say Y if you want to add support for SoC audio on WM8731-based
49	  AT91sam9g20 evaluation board.
50
51config SND_ATMEL_SOC_WM8904
52	tristate "Atmel ASoC driver for boards using WM8904 codec"
53	depends on ARCH_AT91 || COMPILE_TEST
54	depends on ATMEL_SSC && I2C
55	select SND_ATMEL_SOC_SSC_DMA
56	select SND_SOC_WM8904
57	help
58	  Say Y if you want to add support for Atmel ASoC driver for boards using
59	  WM8904 codec.
60
61config SND_AT91_SOC_SAM9X5_WM8731
62	tristate "SoC Audio support for WM8731-based at91sam9x5 board"
63	depends on ARCH_AT91 || COMPILE_TEST
64	depends on ATMEL_SSC && SND_SOC_I2C_AND_SPI
65	select SND_ATMEL_SOC_SSC_DMA
66	select SND_SOC_WM8731
67	help
68	  Say Y if you want to add support for audio SoC on an
69	  at91sam9x5 based board that is using WM8731 codec.
70
71config SND_ATMEL_SOC_CLASSD
72	tristate "Atmel ASoC driver for boards using CLASSD"
73	depends on ARCH_AT91 || COMPILE_TEST
74	select SND_SOC_GENERIC_DMAENGINE_PCM
75	select REGMAP_MMIO
76	help
77	  Say Y if you want to add support for Atmel ASoC driver for boards using
78	  CLASSD.
79
80config SND_ATMEL_SOC_PDMIC
81	tristate "Atmel ASoC driver for boards using PDMIC"
82	depends on OF && (ARCH_AT91 || COMPILE_TEST)
83	select SND_SOC_GENERIC_DMAENGINE_PCM
84	select REGMAP_MMIO
85	help
86	  Say Y if you want to add support for Atmel ASoC driver for boards using
87	  PDMIC.
88
89config SND_ATMEL_SOC_TSE850_PCM5142
90	tristate "ASoC driver for the Axentia TSE-850"
91	depends on ARCH_AT91 && OF
92	depends on ATMEL_SSC && I2C
93	select SND_ATMEL_SOC_SSC_DMA
94	select SND_SOC_PCM512x_I2C
95	help
96	  Say Y if you want to add support for the ASoC driver for the
97	  Axentia TSE-850 with a PCM5142 codec.
98
99config SND_ATMEL_SOC_I2S
100	tristate "Atmel ASoC driver for boards using I2S"
101	depends on OF && (ARCH_AT91 || COMPILE_TEST)
102	select SND_SOC_GENERIC_DMAENGINE_PCM
103	select REGMAP_MMIO
104	help
105	  Say Y or M if you want to add support for Atmel ASoc driver for boards
106	  using I2S.
107
108config SND_SOC_MIKROE_PROTO
109	tristate "Support for Mikroe-PROTO board"
110	depends on OF
111	depends on SND_SOC_I2C_AND_SPI
112	select SND_SOC_WM8731
113	help
114	  Say Y or M if you want to add support for MikroElektronika PROTO Audio
115	  Board. This board contains the WM8731 codec, which can be configured
116	  using I2C over SDA (MPU Data Input) and SCL (MPU Clock Input) pins.
117	  Both playback and capture are supported.
118
119config SND_MCHP_SOC_I2S_MCC
120	tristate "Microchip ASoC driver for boards using I2S MCC"
121	depends on OF && (ARCH_AT91 || COMPILE_TEST)
122	select SND_SOC_GENERIC_DMAENGINE_PCM
123	select REGMAP_MMIO
124	help
125	  Say Y or M if you want to add support for I2S Multi-Channel ASoC
126	  driver on the following Microchip platforms:
127	  - sam9x60
128
129	  The I2SMCC complies with the Inter-IC Sound (I2S) bus specification
130	  and supports a Time Division Multiplexed (TDM) interface with
131	  external multi-channel audio codecs.
132
133endif
134