ASoC: board driver to connect bf5xx with ad1938
[pandora-kernel.git] / sound / soc / blackfin / Kconfig
1 config SND_BF5XX_I2S
2         tristate "SoC I2S Audio for the ADI BF5xx chip"
3         depends on BLACKFIN
4         help
5           Say Y or M if you want to add support for codecs attached to
6           the Blackfin SPORT (synchronous serial ports) interface in I2S
7           mode (supports single stereo In/Out).
8           You will also need to select the audio interfaces to support below.
9
10 config SND_BF5XX_TDM
11         tristate "SoC I2S(TDM mode) Audio for the ADI BF5xx chip"
12         depends on (BLACKFIN && SND_SOC)
13         help
14           Say Y or M if you want to add support for codecs attached to
15           the Blackfin SPORT (synchronous serial ports) interface in TDM
16           mode.
17           You will also need to select the audio interfaces to support below.
18
19 config SND_BF5XX_SOC_SSM2602
20         tristate "SoC SSM2602 Audio support for BF52x ezkit"
21         depends on SND_BF5XX_I2S
22         select SND_BF5XX_SOC_I2S
23         select SND_SOC_SSM2602
24         select I2C
25         help
26           Say Y if you want to add support for SoC audio on BF527-EZKIT.
27
28 config SND_BF5XX_SOC_AD73311
29         tristate "SoC AD73311 Audio support for Blackfin"
30         depends on SND_BF5XX_I2S
31         select SND_BF5XX_SOC_I2S
32         select SND_SOC_AD73311
33         help
34           Say Y if you want to add support for AD73311 codec on Blackfin.
35
36 config SND_BFIN_AD73311_SE
37         int "PF pin for AD73311L Chip Select"
38         depends on SND_BF5XX_SOC_AD73311
39         default 4
40         help
41           Enter the GPIO used to control AD73311's SE pin. Acceptable
42           values are 0 to 7
43
44 config SND_BF5XX_AC97
45         tristate "SoC AC97 Audio for the ADI BF5xx chip"
46         depends on BLACKFIN
47         help
48           Say Y or M if you want to add support for codecs attached to
49           the Blackfin SPORT (synchronous serial ports) interface in slot 16
50           mode (pseudo AC97 interface).
51           You will also need to select the audio interfaces to support below.
52
53           Note:
54           AC97 codecs which do not implement the slot-16 mode will not function
55           properly with this driver. This driver is known to work with the
56           Analog Devices line of AC97 codecs.
57
58 config SND_BF5XX_MMAP_SUPPORT
59         bool "Enable MMAP Support"
60         depends on SND_BF5XX_AC97
61         default y
62         help
63           Say y if you want AC97 driver to support mmap mode.
64           We introduce an intermediate buffer to simulate mmap.
65
66 config SND_BF5XX_MULTICHAN_SUPPORT
67         bool "Enable Multichannel Support"
68         depends on SND_BF5XX_AC97
69         default n
70         help
71           Say y if you want AC97 driver to support up to 5.1 channel audio.
72           this mode will consume much more memory for DMA.
73
74 config SND_BF5XX_SOC_SPORT
75         tristate
76
77 config SND_BF5XX_SOC_I2S
78         tristate
79         select SND_BF5XX_SOC_SPORT
80
81 config SND_BF5XX_SOC_TDM
82         tristate
83         select SND_BF5XX_SOC_SPORT
84
85 config SND_BF5XX_SOC_AC97
86         tristate
87         select AC97_BUS
88         select SND_SOC_AC97_BUS
89         select SND_BF5XX_SOC_SPORT
90
91 config SND_BF5XX_SOC_AD1980
92         tristate "SoC AD1980/1 Audio support for BF5xx"
93         depends on SND_BF5XX_AC97
94         select SND_BF5XX_SOC_AC97
95         select SND_SOC_AD1980
96         help
97           Say Y if you want to add support for SoC audio on BF5xx STAMP/EZKIT.
98
99 config SND_BF5XX_SOC_AD1938
100         tristate "SoC AD1938 Audio support for Blackfin"
101         depends on SND_BF5XX_TDM
102         select SND_BF5XX_SOC_TDM
103         select SND_SOC_AD1938
104         help
105           Say Y if you want to add support for AD1938 codec on Blackfin.
106
107 config SND_BF5XX_SPORT_NUM
108         int "Set a SPORT for Sound chip"
109         depends on (SND_BF5XX_I2S || SND_BF5XX_AC97 || SND_BF5XX_TDM)
110         range 0 3 if BF54x
111         range 0 1 if !BF54x
112         default 0
113         help
114           Set the correct SPORT for sound chip.
115
116 config SND_BF5XX_HAVE_COLD_RESET
117         bool "BOARD has COLD Reset GPIO"
118         depends on SND_BF5XX_AC97
119         default y if BFIN548_EZKIT
120         default n if !BFIN548_EZKIT
121
122 config SND_BF5XX_RESET_GPIO_NUM
123         int "Set a GPIO for cold reset"
124         depends on SND_BF5XX_HAVE_COLD_RESET
125         range 0 159
126         default 19 if BFIN548_EZKIT
127         default 5 if BFIN537_STAMP
128         default 0
129         help
130           Set the correct GPIO for RESET the sound chip.