ASoC: Blackfin: allow SPI for SSM2602 parts
[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         select SND_BF5XX_SOC_SPORT
5         help
6           Say Y or M if you want to add support for codecs attached to
7           the Blackfin SPORT (synchronous serial ports) interface in I2S
8           mode (supports single stereo In/Out).
9           You will also need to select the audio interfaces to support below.
10
11 config SND_BF5XX_SOC_SSM2602
12         tristate "SoC SSM2602 Audio support for BF52x ezkit"
13         depends on SND_BF5XX_I2S && (SPI_MASTER || I2C)
14         select SND_BF5XX_SOC_I2S
15         select SND_SOC_SSM2602
16         help
17           Say Y if you want to add support for SoC audio on BF527-EZKIT.
18
19 config SND_SOC_BFIN_EVAL_ADAU1701
20         tristate "Support for the EVAL-ADAU1701MINIZ board on Blackfin eval boards"
21         depends on SND_BF5XX_I2S
22         select SND_BF5XX_SOC_I2S
23         select SND_SOC_ADAU1701
24         select I2C
25         help
26           Say Y if you want to add support for the Analog Devices EVAL-ADAU1701MINIZ
27           board connected to one of the Blackfin evaluation boards like the
28           BF5XX-STAMP or BF5XX-EZKIT.
29
30 config SND_BF5XX_SOC_AD73311
31         tristate "SoC AD73311 Audio support for Blackfin"
32         depends on SND_BF5XX_I2S
33         select SND_BF5XX_SOC_I2S
34         select SND_SOC_AD73311
35         help
36           Say Y if you want to add support for AD73311 codec on Blackfin.
37
38 config SND_BFIN_AD73311_SE
39         int "PF pin for AD73311L Chip Select"
40         depends on SND_BF5XX_SOC_AD73311
41         default 4
42         help
43           Enter the GPIO used to control AD73311's SE pin. Acceptable
44           values are 0 to 7
45
46 config SND_BF5XX_TDM
47         tristate "SoC I2S(TDM mode) Audio for the ADI BF5xx chip"
48         depends on (BLACKFIN && SND_SOC)
49         select SND_BF5XX_SOC_SPORT
50         help
51           Say Y or M if you want to add support for codecs attached to
52           the Blackfin SPORT (synchronous serial ports) interface in TDM
53           mode.
54           You will also need to select the audio interfaces to support below.
55
56 config SND_BF5XX_SOC_AD1836
57         tristate "SoC AD1836 Audio support for BF5xx"
58         depends on SND_BF5XX_TDM
59         select SND_BF5XX_SOC_TDM
60         select SND_SOC_AD1836
61         help
62           Say Y if you want to add support for SoC audio on BF5xx STAMP/EZKIT.
63
64 config SND_BF5XX_SOC_AD193X
65         tristate "SoC AD193X Audio support for Blackfin"
66         depends on SND_BF5XX_TDM
67         select SND_BF5XX_SOC_TDM
68         select SND_SOC_AD193X
69         help
70           Say Y if you want to add support for AD193X codec on Blackfin.
71           This driver supports AD1936, AD1937, AD1938 and AD1939.
72
73 config SND_BF5XX_AC97
74         tristate "SoC AC97 Audio for the ADI BF5xx chip"
75         depends on BLACKFIN
76         select AC97_BUS
77         select SND_SOC_AC97_BUS
78         select SND_BF5XX_SOC_SPORT
79         select SND_BF5XX_SOC_AC97
80         help
81           Say Y or M if you want to add support for codecs attached to
82           the Blackfin SPORT (synchronous serial ports) interface in slot 16
83           mode (pseudo AC97 interface).
84           You will also need to select the audio interfaces to support below.
85
86           Note:
87           AC97 codecs which do not implement the slot-16 mode will not function
88           properly with this driver. This driver is known to work with the
89           Analog Devices line of AC97 codecs.
90
91 config SND_BF5XX_MMAP_SUPPORT
92         bool "Enable MMAP Support"
93         depends on SND_BF5XX_AC97
94         default y
95         help
96           Say y if you want AC97 driver to support mmap mode.
97           We introduce an intermediate buffer to simulate mmap.
98
99 config SND_BF5XX_MULTICHAN_SUPPORT
100         bool "Enable Multichannel Support"
101         depends on SND_BF5XX_AC97
102         default n
103         help
104           Say y if you want AC97 driver to support up to 5.1 channel audio.
105           this mode will consume much more memory for DMA.
106
107 config SND_BF5XX_HAVE_COLD_RESET
108         bool "BOARD has COLD Reset GPIO"
109         depends on SND_BF5XX_AC97
110         default y if BFIN548_EZKIT
111         default n if !BFIN548_EZKIT
112
113 config SND_BF5XX_RESET_GPIO_NUM
114         int "Set a GPIO for cold reset"
115         depends on SND_BF5XX_HAVE_COLD_RESET
116         range 0 159
117         default 19 if BFIN548_EZKIT
118         default 5 if BFIN537_STAMP
119         default 0
120         help
121           Set the correct GPIO for RESET the sound chip.
122
123 config SND_BF5XX_SOC_AD1980
124         tristate "SoC AD1980/1 Audio support for BF5xx (Obsolete)"
125         depends on SND_BF5XX_AC97
126         select SND_BF5XX_SOC_AC97
127         select SND_SOC_AD1980
128         help
129           Say Y if you want to add support for SoC audio on BF5xx STAMP/EZKIT.
130
131           Warning:
132           Because Analog Devices Inc. discontinued the ad1980 sound chip since
133           Sep. 2009, this ad1980 driver is not maintained, tested and supported
134           by ADI now.
135
136 config SND_BF5XX_SOC_SPORT
137         tristate
138
139 config SND_BF5XX_SOC_I2S
140         tristate
141
142 config SND_BF5XX_SOC_TDM
143         tristate
144
145 config SND_BF5XX_SOC_AC97
146         tristate
147
148 config SND_BF5XX_SPORT_NUM
149         int "Set a SPORT for Sound chip"
150         depends on (SND_BF5XX_I2S || SND_BF5XX_AC97 || SND_BF5XX_TDM)
151         range 0 3 if BF54x
152         range 0 1 if !BF54x
153         default 0
154         help
155           Set the correct SPORT for sound chip.