xref: /linux/sound/soc/atmel/Kconfig (revision 4e0ae876f77bc01a7e77724dea57b4b82bd53244)
1config SND_ATMEL_SOC
2	tristate "SoC Audio for the Atmel System-on-Chip"
3	depends on HAS_IOMEM
4	help
5	  Say Y or M if you want to add support for codecs attached to
6	  the ATMEL SSC interface. You will also need
7	  to select the audio interfaces to support below.
8
9if SND_ATMEL_SOC
10
11config SND_ATMEL_SOC_PDC
12	tristate
13	depends on HAS_DMA
14	default m if SND_ATMEL_SOC_SSC_PDC=m && SND_ATMEL_SOC_SSC=m
15	default y if SND_ATMEL_SOC_SSC_PDC=y || (SND_ATMEL_SOC_SSC_PDC=m && SND_ATMEL_SOC_SSC=y)
16
17config SND_ATMEL_SOC_SSC_PDC
18	tristate
19
20config SND_ATMEL_SOC_DMA
21	tristate
22	select SND_SOC_GENERIC_DMAENGINE_PCM
23	default m if SND_ATMEL_SOC_SSC_DMA=m && SND_ATMEL_SOC_SSC=m
24	default y if SND_ATMEL_SOC_SSC_DMA=y || (SND_ATMEL_SOC_SSC_DMA=m && SND_ATMEL_SOC_SSC=y)
25
26config SND_ATMEL_SOC_SSC_DMA
27	tristate
28
29config SND_ATMEL_SOC_SSC
30	tristate
31	default y if SND_ATMEL_SOC_SSC_DMA=y || SND_ATMEL_SOC_SSC_PDC=y
32	default m if SND_ATMEL_SOC_SSC_DMA=m || SND_ATMEL_SOC_SSC_PDC=m
33
34config SND_AT91_SOC_SAM9G20_WM8731
35	tristate "SoC Audio support for WM8731-based At91sam9g20 evaluation board"
36	depends on ARCH_AT91 || COMPILE_TEST
37	depends on ATMEL_SSC && SND_SOC_I2C_AND_SPI
38	select SND_ATMEL_SOC_SSC_PDC
39	select SND_SOC_WM8731
40	help
41	  Say Y if you want to add support for SoC audio on WM8731-based
42	  AT91sam9g20 evaluation board.
43
44config SND_ATMEL_SOC_WM8904
45	tristate "Atmel ASoC driver for boards using WM8904 codec"
46	depends on ARCH_AT91 || COMPILE_TEST
47	depends on ATMEL_SSC && I2C
48	select SND_ATMEL_SOC_SSC_DMA
49	select SND_SOC_WM8904
50	help
51	  Say Y if you want to add support for Atmel ASoC driver for boards using
52	  WM8904 codec.
53
54config SND_AT91_SOC_SAM9X5_WM8731
55	tristate "SoC Audio support for WM8731-based at91sam9x5 board"
56	depends on ARCH_AT91 || COMPILE_TEST
57	depends on ATMEL_SSC && SND_SOC_I2C_AND_SPI
58	select SND_ATMEL_SOC_SSC_DMA
59	select SND_SOC_WM8731
60	help
61	  Say Y if you want to add support for audio SoC on an
62	  at91sam9x5 based board that is using WM8731 codec.
63
64config SND_ATMEL_SOC_CLASSD
65	tristate "Atmel ASoC driver for boards using CLASSD"
66	depends on ARCH_AT91 || COMPILE_TEST
67	select SND_SOC_GENERIC_DMAENGINE_PCM
68	select REGMAP_MMIO
69	help
70	  Say Y if you want to add support for Atmel ASoC driver for boards using
71	  CLASSD.
72
73config SND_ATMEL_SOC_PDMIC
74	tristate "Atmel ASoC driver for boards using PDMIC"
75	depends on OF && (ARCH_AT91 || COMPILE_TEST)
76	select SND_SOC_GENERIC_DMAENGINE_PCM
77	select REGMAP_MMIO
78	help
79	  Say Y if you want to add support for Atmel ASoC driver for boards using
80	  PDMIC.
81
82config SND_ATMEL_SOC_TSE850_PCM5142
83	tristate "ASoC driver for the Axentia TSE-850"
84	depends on ARCH_AT91 && OF
85	depends on ATMEL_SSC && I2C
86	select SND_ATMEL_SOC_SSC_DMA
87	select SND_SOC_PCM512x_I2C
88	help
89	  Say Y if you want to add support for the ASoC driver for the
90	  Axentia TSE-850 with a PCM5142 codec.
91
92config SND_ATMEL_SOC_I2S
93	tristate "Atmel ASoC driver for boards using I2S"
94	depends on OF && (ARCH_AT91 || COMPILE_TEST)
95	select SND_SOC_GENERIC_DMAENGINE_PCM
96	select REGMAP_MMIO
97	help
98	  Say Y or M if you want to add support for Atmel ASoc driver for boards
99	  using I2S.
100
101config SND_SOC_MIKROE_PROTO
102	tristate "Support for Mikroe-PROTO board"
103	depends on OF
104	depends on SND_SOC_I2C_AND_SPI
105	select SND_SOC_WM8731
106	help
107	  Say Y or M if you want to add support for MikroElektronika PROTO Audio
108	  Board. This board contains the WM8731 codec, which can be configured
109	  using I2C over SDA (MPU Data Input) and SCL (MPU Clock Input) pins.
110	  Both playback and capture are supported.
111
112endif
113