GNU Linux-libre 4.4.288-gnu1
[releases.git] / sound / soc / atmel / Kconfig
1 config 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
9 if SND_ATMEL_SOC
10
11 config SND_ATMEL_SOC_PDC
12         tristate
13         default m if SND_ATMEL_SOC_SSC_PDC=m && SND_ATMEL_SOC_SSC=m
14         default y if SND_ATMEL_SOC_SSC_PDC=y || (SND_ATMEL_SOC_SSC_PDC=m && SND_ATMEL_SOC_SSC=y)
15
16 config SND_ATMEL_SOC_SSC_PDC
17         tristate
18
19 config SND_ATMEL_SOC_DMA
20         tristate
21         select SND_SOC_GENERIC_DMAENGINE_PCM
22         default m if SND_ATMEL_SOC_SSC_DMA=m && SND_ATMEL_SOC_SSC=m
23         default y if SND_ATMEL_SOC_SSC_DMA=y || (SND_ATMEL_SOC_SSC_DMA=m && SND_ATMEL_SOC_SSC=y)
24
25 config SND_ATMEL_SOC_SSC_DMA
26         tristate
27         select SND_ATMEL_SOC_DMA
28         select SND_ATMEL_SOC_PDC
29
30 config 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
35 config 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
45 config 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
55 config 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
65 config SND_ATMEL_SOC_CLASSD
66         tristate "Atmel ASoC driver for boards using CLASSD"
67         depends on ARCH_AT91 || COMPILE_TEST
68         select SND_ATMEL_SOC_DMA
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 endif