GNU Linux-libre 6.9.1-gnu
[releases.git] / sound / soc / fsl / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "SoC Audio for Freescale CPUs"
3
4 comment "Common SoC Audio options for Freescale CPUs:"
5
6 config SND_SOC_FSL_ASRC
7         tristate "Asynchronous Sample Rate Converter (ASRC) module support"
8         depends on HAS_DMA
9         select REGMAP_MMIO
10         select SND_SOC_GENERIC_DMAENGINE_PCM
11         help
12           Say Y if you want to add Asynchronous Sample Rate Converter (ASRC)
13           support for the Freescale CPUs.
14           This option is only useful for out-of-tree drivers since
15           in-tree drivers select it automatically.
16
17 config SND_SOC_FSL_SAI
18         tristate "Synchronous Audio Interface (SAI) module support"
19         select REGMAP_MMIO
20         select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
21         select SND_SOC_GENERIC_DMAENGINE_PCM
22         select SND_SOC_FSL_UTILS
23         help
24           Say Y if you want to add Synchronous Audio Interface (SAI)
25           support for the Freescale CPUs.
26           This option is only useful for out-of-tree drivers since
27           in-tree drivers select it automatically.
28
29 config SND_SOC_FSL_MQS
30         tristate "Medium Quality Sound (MQS) module support"
31         depends on SND_SOC_FSL_SAI
32         select REGMAP_MMIO
33         help
34           Say Y if you want to add Medium Quality Sound (MQS)
35           support for the Freescale CPUs.
36           This option is only useful for out-of-tree drivers since
37           in-tree drivers select it automatically.
38
39 config SND_SOC_FSL_AUDMIX
40         tristate "Audio Mixer (AUDMIX) module support"
41         select REGMAP_MMIO
42         help
43           Say Y if you want to add Audio Mixer (AUDMIX)
44           support for the NXP iMX CPUs.
45
46 config SND_SOC_FSL_SSI
47         tristate "Synchronous Serial Interface module (SSI) support"
48         select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
49         select SND_SOC_IMX_PCM_FIQ if SND_IMX_SOC != n && (MXC_TZIC || MXC_AVIC)
50         select REGMAP_MMIO
51         help
52           Say Y if you want to add Synchronous Serial Interface (SSI)
53           support for the Freescale CPUs.
54           This option is only useful for out-of-tree drivers since
55           in-tree drivers select it automatically.
56
57 config SND_SOC_FSL_SPDIF
58         tristate "Sony/Philips Digital Interface (S/PDIF) module support"
59         select REGMAP_MMIO
60         select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
61         select SND_SOC_IMX_PCM_FIQ if SND_IMX_SOC != n && (MXC_TZIC || MXC_AVIC)
62         select BITREVERSE
63         select SND_SOC_FSL_UTILS
64         help
65           Say Y if you want to add Sony/Philips Digital Interface (SPDIF)
66           support for the Freescale CPUs.
67           This option is only useful for out-of-tree drivers since
68           in-tree drivers select it automatically.
69
70 config SND_SOC_FSL_ESAI
71         tristate "Enhanced Serial Audio Interface (ESAI) module support"
72         select REGMAP_MMIO
73         select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
74         help
75           Say Y if you want to add Enhanced Synchronous Audio Interface
76           (ESAI) support for the Freescale CPUs.
77           This option is only useful for out-of-tree drivers since
78           in-tree drivers select it automatically.
79
80 config SND_SOC_FSL_MICFIL
81         tristate "Pulse Density Modulation Microphone Interface (MICFIL) module support"
82         select REGMAP_MMIO
83         select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
84         select SND_SOC_GENERIC_DMAENGINE_PCM
85         select SND_SOC_FSL_UTILS
86         help
87           Say Y if you want to add Pulse Density Modulation microphone
88           interface (MICFIL) support for NXP.
89
90 config SND_SOC_FSL_EASRC
91         tristate "Enhanced Asynchronous Sample Rate Converter (EASRC) module support"
92         depends on SND_SOC_FSL_ASRC
93         select REGMAP_MMIO
94         select SND_SOC_GENERIC_DMAENGINE_PCM
95         help
96           Say Y if you want to add Enhanced ASRC support for NXP. The ASRC is
97           a digital module that converts audio from a source sample rate to a
98           destination sample rate. It is a new design module compare with the
99           old ASRC.
100
101 config SND_SOC_FSL_XCVR
102         tristate "NXP Audio Transceiver (XCVR) module support"
103         select REGMAP_MMIO
104         select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
105         select SND_SOC_GENERIC_DMAENGINE_PCM
106         help
107           Say Y if you want to add Audio Transceiver (XCVR) support for NXP
108           iMX CPUs. XCVR is a digital module that supports HDMI2.1 eARC,
109           HDMI1.4 ARC and SPDIF.
110
111 config SND_SOC_FSL_AUD2HTX
112         tristate "AUDIO TO HDMI TX module support"
113         depends on ARCH_MXC || COMPILE_TEST
114         select SND_SOC_IMX_PCM_DMA if SND_IMX_SOC != n
115         help
116           Say Y if you want to add AUDIO TO HDMI TX support for NXP.
117
118 config SND_SOC_FSL_UTILS
119         tristate
120
121 config SND_SOC_FSL_RPMSG
122         tristate "NXP Audio Base On RPMSG support"
123         depends on COMMON_CLK
124         depends on OF && I2C
125         depends on RPMSG
126         depends on SND_IMX_SOC || SND_IMX_SOC = n
127         select SND_SOC_IMX_RPMSG if SND_IMX_SOC != n
128         help
129           Say Y if you want to add rpmsg audio support for the Freescale CPUs.
130           This option is only useful for out-of-tree drivers since
131           in-tree drivers select it automatically.
132
133 config SND_SOC_IMX_PCM_DMA
134         tristate
135         select SND_SOC_GENERIC_DMAENGINE_PCM
136
137 config SND_SOC_IMX_AUDIO_RPMSG
138         tristate
139         depends on RPMSG
140
141 config SND_SOC_IMX_PCM_RPMSG
142         tristate
143         depends on SND_SOC_IMX_AUDIO_RPMSG
144         select SND_SOC_GENERIC_DMAENGINE_PCM
145
146 config SND_SOC_IMX_AUDMUX
147         tristate "Digital Audio Mux module support"
148         help
149           Say Y if you want to add Digital Audio Mux (AUDMUX) support
150           for the ARM i.MX CPUs.
151           This option is only useful for out-of-tree drivers since
152           in-tree drivers select it automatically.
153
154 config SND_POWERPC_SOC
155         tristate "SoC Audio for Freescale PowerPC CPUs"
156         depends on FSL_SOC || PPC_MPC52xx
157         help
158           Say Y or M if you want to add support for codecs attached to
159           the PowerPC CPUs.
160
161 config SND_IMX_SOC
162         tristate "SoC Audio for Freescale i.MX CPUs"
163         depends on ARCH_MXC || COMPILE_TEST
164         help
165           Say Y or M if you want to add support for codecs attached to
166           the i.MX CPUs.
167
168 if SND_POWERPC_SOC
169
170 config SND_MPC52xx_DMA
171         tristate
172
173 config SND_SOC_POWERPC_DMA
174         tristate
175
176 config SND_SOC_POWERPC_QMC_AUDIO
177         tristate "QMC ALSA SoC support"
178         depends on CPM_QMC
179         help
180           ALSA SoC Audio support using the Freescale QUICC Multichannel
181           Controller (QMC).
182           Say Y or M if you want to add support for SoC audio using Freescale
183           QMC.
184
185 comment "SoC Audio support for Freescale PPC boards:"
186
187 config SND_SOC_P1022_DS
188         tristate "ALSA SoC support for the Freescale P1022 DS board"
189         # I2C is necessary for the WM8776 driver
190         depends on P1022_DS && I2C
191         select SND_SOC_FSL_SSI
192         select SND_SOC_FSL_UTILS
193         select SND_SOC_POWERPC_DMA
194         select SND_SOC_WM8776
195         default y if P1022_DS
196         help
197           Say Y if you want to enable audio on the Freescale P1022 DS board.
198           This will also include the Wolfson Microelectronics WM8776 codec
199           driver.
200
201 config SND_SOC_P1022_RDK
202         tristate "ALSA SoC support for the Freescale / iVeia P1022 RDK board"
203         # I2C is necessary for the WM8960 driver
204         depends on P1022_RDK && I2C
205         select SND_SOC_FSL_SSI
206         select SND_SOC_FSL_UTILS
207         select SND_SOC_POWERPC_DMA
208         select SND_SOC_WM8960
209         default y if P1022_RDK
210         help
211           Say Y if you want to enable audio on the Freescale / iVeia
212           P1022 RDK board.  This will also include the Wolfson
213           Microelectronics WM8960 codec driver.
214
215 config SND_SOC_MPC5200_I2S
216         tristate "Freescale MPC5200 PSC in I2S mode driver"
217         depends on PPC_MPC52xx && PPC_BESTCOMM
218         select SND_MPC52xx_DMA
219         select PPC_BESTCOMM_GEN_BD
220         help
221           Say Y here to support the MPC5200 PSCs in I2S mode.
222
223 config SND_SOC_MPC5200_AC97
224         tristate "Freescale MPC5200 PSC in AC97 mode driver"
225         depends on PPC_MPC52xx && PPC_BESTCOMM
226         select SND_SOC_AC97_BUS
227         select SND_MPC52xx_DMA
228         select PPC_BESTCOMM_GEN_BD
229         help
230           Say Y here to support the MPC5200 PSCs in AC97 mode.
231
232 config SND_MPC52xx_SOC_PCM030
233         tristate "SoC AC97 Audio support for Phytec pcm030 and WM9712"
234         depends on PPC_MPC5200_SIMPLE
235         select SND_SOC_MPC5200_AC97
236         select SND_SOC_WM9712
237         help
238           Say Y if you want to add support for sound on the Phytec pcm030
239           baseboard.
240
241 config SND_MPC52xx_SOC_EFIKA
242         tristate "SoC AC97 Audio support for bbplan Efika and STAC9766"
243         depends on PPC_EFIKA
244         select SND_SOC_MPC5200_AC97
245         select SND_SOC_STAC9766
246         help
247           Say Y if you want to add support for sound on the Efika.
248
249 endif # SND_POWERPC_SOC
250
251 config SND_SOC_IMX_PCM_FIQ
252         tristate
253         default y if (SND_SOC_FSL_SSI=m || SND_SOC_FSL_SPDIF=m) && (MXC_TZIC || MXC_AVIC)
254         select FIQ
255
256 if SND_IMX_SOC
257
258 comment "SoC Audio support for Freescale i.MX boards:"
259
260 config SND_SOC_EUKREA_TLV320
261         tristate "Eukrea TLV320"
262         depends on ARCH_MXC && !ARM64 && I2C
263         select SND_SOC_TLV320AIC23_I2C
264         select SND_SOC_IMX_AUDMUX
265         select SND_SOC_FSL_SSI
266         select SND_SOC_IMX_PCM_DMA
267         help
268           Enable I2S based access to the TLV320AIC23B codec attached
269           to the SSI interface
270
271 config SND_SOC_IMX_ES8328
272         tristate "SoC Audio support for i.MX boards with the ES8328 codec"
273         depends on OF && (I2C || SPI)
274         select SND_SOC_ES8328_I2C if I2C
275         select SND_SOC_ES8328_SPI if SPI_MASTER
276         select SND_SOC_IMX_PCM_DMA
277         select SND_SOC_IMX_AUDMUX
278         select SND_SOC_FSL_SSI
279         help
280           Say Y if you want to add support for the ES8328 audio codec connected
281           via SSI/I2S over either SPI or I2C.
282
283 config SND_SOC_IMX_SGTL5000
284         tristate "SoC Audio support for i.MX boards with sgtl5000"
285         depends on OF && I2C
286         select SND_SOC_SGTL5000
287         select SND_SOC_IMX_PCM_DMA
288         select SND_SOC_IMX_AUDMUX
289         select SND_SOC_FSL_SSI
290         help
291           Say Y if you want to add support for SoC audio on an i.MX board with
292           a sgtl5000 codec.
293
294           Note that this is an old driver. Consider enabling
295           SND_SOC_FSL_ASOC_CARD and SND_SOC_SGTL5000 to use the newer
296           driver.
297
298 config SND_SOC_IMX_SPDIF
299         tristate "SoC Audio support for i.MX boards with S/PDIF"
300         select SND_SOC_IMX_PCM_DMA
301         select SND_SOC_FSL_SPDIF
302         help
303           SoC Audio support for i.MX boards with S/PDIF
304           Say Y if you want to add support for SoC audio on an i.MX board with
305           a S/DPDIF.
306
307 config SND_SOC_FSL_ASOC_CARD
308         tristate "Generic ASoC Sound Card with ASRC support"
309         depends on OF && I2C
310         # enforce SND_SOC_FSL_ASOC_CARD=m if SND_AC97_CODEC=m:
311         depends on SND_AC97_CODEC || SND_AC97_CODEC=n
312         select SND_SIMPLE_CARD_UTILS
313         select SND_SOC_IMX_AUDMUX
314         select SND_SOC_IMX_PCM_DMA
315         select SND_SOC_FSL_ESAI
316         select SND_SOC_FSL_SAI
317         select SND_SOC_FSL_SSI
318         select SND_SOC_TLV320AIC31XX
319         select SND_SOC_WM8994
320         select MFD_WM8994
321         help
322          ALSA SoC Audio support with ASRC feature for Freescale SoCs that have
323          ESAI/SAI/SSI and connect with external CODECs such as WM8962, CS42888,
324          CS4271, CS4272, SGTL5000 and TLV320AIC32x4.
325          Say Y if you want to add support for Freescale Generic ASoC Sound Card.
326
327 config SND_SOC_IMX_AUDMIX
328         tristate "SoC Audio support for i.MX boards with AUDMIX"
329         select SND_SOC_FSL_AUDMIX
330         select SND_SOC_FSL_SAI
331         help
332           SoC Audio support for i.MX boards with Audio Mixer
333           Say Y if you want to add support for SoC audio on an i.MX board with
334           an Audio Mixer.
335
336 config SND_SOC_IMX_HDMI
337         tristate "SoC Audio support for i.MX boards with HDMI port"
338         select SND_SOC_FSL_SAI
339         select SND_SOC_FSL_AUD2HTX
340         select SND_SOC_HDMI_CODEC
341         help
342           ALSA SoC Audio support with HDMI feature for Freescale SoCs that have
343           SAI/AUD2HTX and connect with internal HDMI IP or external module
344           SII902X.
345           Say Y if you want to add support for SoC audio on an i.MX board with
346           IMX HDMI.
347
348 config SND_SOC_IMX_RPMSG
349         tristate "SoC Audio support for i.MX boards with rpmsg"
350         depends on RPMSG
351         depends on OF && I2C
352         select SND_SOC_IMX_PCM_RPMSG
353         select SND_SOC_IMX_AUDIO_RPMSG
354         help
355           SoC Audio support for i.MX boards with rpmsg.
356           There should be rpmsg devices defined in other core (M core)
357           Say Y if you want to add support for SoC audio on an i.MX board with
358           a rpmsg devices.
359
360 config SND_SOC_IMX_CARD
361         tristate "SoC Audio Graph Sound Card support for i.MX boards"
362         depends on OF && I2C
363         select SND_SOC_AK4458
364         select SND_SOC_AK5558
365         select SND_SOC_IMX_PCM_DMA
366         select SND_SOC_FSL_SAI
367         select SND_SIMPLE_CARD_UTILS
368         help
369           This option enables audio sound card support for i.MX boards
370           with OF-graph DT bindings.
371           It also support DPCM of single CPU multi Codec ststem.
372
373 endif # SND_IMX_SOC
374
375 endmenu