xref: /linux/sound/soc/atmel/Kconfig (revision f3a8b6645dc2e60d11f20c1c23afd964ff4e55ae)
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_ATMEL_SOC_DMA
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.
81endif
82