xref: /openbmc/linux/sound/soc/atmel/Kconfig (revision ec9b4feb)
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	default m if SND_ATMEL_SOC_SSC_PDC=m && SND_ATMEL_SOC_SSC=m
16	default y if SND_ATMEL_SOC_SSC_PDC=y || (SND_ATMEL_SOC_SSC_PDC=m && SND_ATMEL_SOC_SSC=y)
17
18config SND_ATMEL_SOC_SSC_PDC
19	tristate
20
21config SND_ATMEL_SOC_DMA
22	tristate
23	select SND_SOC_GENERIC_DMAENGINE_PCM
24	default m if SND_ATMEL_SOC_SSC_DMA=m && SND_ATMEL_SOC_SSC=m
25	default y if SND_ATMEL_SOC_SSC_DMA=y || (SND_ATMEL_SOC_SSC_DMA=m && SND_ATMEL_SOC_SSC=y)
26
27config SND_ATMEL_SOC_SSC_DMA
28	tristate
29
30config SND_ATMEL_SOC_SSC
31	tristate
32	default y if SND_ATMEL_SOC_SSC_DMA=y || SND_ATMEL_SOC_SSC_PDC=y
33	default m if SND_ATMEL_SOC_SSC_DMA=m || SND_ATMEL_SOC_SSC_PDC=m
34
35config SND_AT91_SOC_SAM9G20_WM8731
36	tristate "SoC Audio support for WM8731-based At91sam9g20 evaluation board"
37	depends on ARCH_AT91 || COMPILE_TEST
38	depends on ATMEL_SSC && SND_SOC_I2C_AND_SPI
39	select SND_ATMEL_SOC_SSC_PDC
40	select SND_SOC_WM8731
41	help
42	  Say Y if you want to add support for SoC audio on WM8731-based
43	  AT91sam9g20 evaluation board.
44
45config SND_ATMEL_SOC_WM8904
46	tristate "Atmel ASoC driver for boards using WM8904 codec"
47	depends on ARCH_AT91 || COMPILE_TEST
48	depends on ATMEL_SSC && I2C
49	select SND_ATMEL_SOC_SSC_DMA
50	select SND_SOC_WM8904
51	help
52	  Say Y if you want to add support for Atmel ASoC driver for boards using
53	  WM8904 codec.
54
55config SND_AT91_SOC_SAM9X5_WM8731
56	tristate "SoC Audio support for WM8731-based at91sam9x5 board"
57	depends on ARCH_AT91 || COMPILE_TEST
58	depends on ATMEL_SSC && SND_SOC_I2C_AND_SPI
59	select SND_ATMEL_SOC_SSC_DMA
60	select SND_SOC_WM8731
61	help
62	  Say Y if you want to add support for audio SoC on an
63	  at91sam9x5 based board that is using WM8731 codec.
64
65config SND_ATMEL_SOC_CLASSD
66	tristate "Atmel ASoC driver for boards using CLASSD"
67	depends on ARCH_AT91 || COMPILE_TEST
68	select SND_SOC_GENERIC_DMAENGINE_PCM
69	select REGMAP_MMIO
70	help
71	  Say Y if you want to add support for Atmel ASoC driver for boards using
72	  CLASSD.
73
74config SND_ATMEL_SOC_PDMIC
75	tristate "Atmel ASoC driver for boards using PDMIC"
76	depends on OF && (ARCH_AT91 || COMPILE_TEST)
77	select SND_SOC_GENERIC_DMAENGINE_PCM
78	select REGMAP_MMIO
79	help
80	  Say Y if you want to add support for Atmel ASoC driver for boards using
81	  PDMIC.
82
83config SND_ATMEL_SOC_TSE850_PCM5142
84	tristate "ASoC driver for the Axentia TSE-850"
85	depends on ARCH_AT91 && OF
86	depends on ATMEL_SSC && I2C
87	select SND_ATMEL_SOC_SSC_DMA
88	select SND_SOC_PCM512x_I2C
89	help
90	  Say Y if you want to add support for the ASoC driver for the
91	  Axentia TSE-850 with a PCM5142 codec.
92
93config SND_ATMEL_SOC_I2S
94	tristate "Atmel ASoC driver for boards using I2S"
95	depends on OF && (ARCH_AT91 || COMPILE_TEST)
96	select SND_SOC_GENERIC_DMAENGINE_PCM
97	select REGMAP_MMIO
98	help
99	  Say Y or M if you want to add support for Atmel ASoc driver for boards
100	  using I2S.
101
102config SND_SOC_MIKROE_PROTO
103	tristate "Support for Mikroe-PROTO board"
104	depends on OF
105	depends on SND_SOC_I2C_AND_SPI
106	select SND_SOC_WM8731
107	help
108	  Say Y or M if you want to add support for MikroElektronika PROTO Audio
109	  Board. This board contains the WM8731 codec, which can be configured
110	  using I2C over SDA (MPU Data Input) and SCL (MPU Clock Input) pins.
111	  Both playback and capture are supported.
112
113config SND_MCHP_SOC_I2S_MCC
114	tristate "Microchip ASoC driver for boards using I2S MCC"
115	depends on OF && (ARCH_AT91 || COMPILE_TEST)
116	select SND_SOC_GENERIC_DMAENGINE_PCM
117	select REGMAP_MMIO
118	help
119	  Say Y or M if you want to add support for I2S Multi-Channel ASoC
120	  driver on the following Microchip platforms:
121	  - sam9x60
122
123	  The I2SMCC complies with the Inter-IC Sound (I2S) bus specification
124	  and supports a Time Division Multiplexed (TDM) interface with
125	  external multi-channel audio codecs.
126
127endif
128