xref: /linux/sound/soc/loongson/Kconfig (revision a9e6060bb2a6cae6d43a98ec0794844ad01273d3)
1d84881e0SYingkun Meng# SPDX-License-Identifier: GPL-2.0
2d84881e0SYingkun Mengmenu "SoC Audio for Loongson CPUs"
3d84881e0SYingkun Meng
4d2402860SYingkun Mengconfig SND_SOC_LOONGSON_CARD
5d2402860SYingkun Meng	tristate "Loongson Sound Card Driver"
6ba4c5fadSBinbin Zhou	depends on LOONGARCH || COMPILE_TEST
7ba4c5fadSBinbin Zhou	select SND_SOC_LOONGSON_I2S_PCI if PCI
8ba4c5fadSBinbin Zhou	select SND_SOC_LOONGSON_I2S_PLATFORM if OF
9d2402860SYingkun Meng	help
10d2402860SYingkun Meng	  Say Y or M if you want to add support for SoC audio using
11d2402860SYingkun Meng	  loongson I2S controller.
12d2402860SYingkun Meng
13d2402860SYingkun Meng	  The driver add support for ALSA SoC Audio support using
14d2402860SYingkun Meng	  loongson I2S controller.
15d2402860SYingkun Meng
16ba4c5fadSBinbin Zhouconfig SND_SOC_LOONGSON_I2S_PCI
17ba4c5fadSBinbin Zhou	tristate "Loongson I2S-PCI Device Driver"
18ba4c5fadSBinbin Zhou	depends on LOONGARCH || COMPILE_TEST
1945b36050SBinbin Zhou	depends on PCI
20ba4c5fadSBinbin Zhou	select REGMAP_MMIO
21ba4c5fadSBinbin Zhou	help
22ba4c5fadSBinbin Zhou	  Say Y or M if you want to add support for I2S driver for
23ba4c5fadSBinbin Zhou	  Loongson I2S controller.
24ba4c5fadSBinbin Zhou
25ba4c5fadSBinbin Zhou	  The controller is found in loongson bridge chips or SoCs,
26ba4c5fadSBinbin Zhou	  and work as a PCI device.
27ba4c5fadSBinbin Zhou
28ba4c5fadSBinbin Zhouconfig SND_SOC_LOONGSON_I2S_PLATFORM
29ba4c5fadSBinbin Zhou	tristate "Loongson I2S-PLAT Device Driver"
30ba4c5fadSBinbin Zhou	depends on LOONGARCH || COMPILE_TEST
31ba4c5fadSBinbin Zhou	select REGMAP_MMIO
32ba4c5fadSBinbin Zhou	select SND_SOC_GENERIC_DMAENGINE_PCM
33ba4c5fadSBinbin Zhou	help
34ba4c5fadSBinbin Zhou	  Say Y or M if you want to add support for I2S driver for
35ba4c5fadSBinbin Zhou	  Loongson I2S controller.
36ba4c5fadSBinbin Zhou
37ba4c5fadSBinbin Zhou	  The controller work as a platform device, we can found it in
38ba4c5fadSBinbin Zhou	  Loongson-2K1000 SoCs.
39d84881e0SYingkun Mengendmenu
40*1fc55a2bSKeguang Zhang
41*1fc55a2bSKeguang Zhangconfig SND_LOONGSON1_AC97
42*1fc55a2bSKeguang Zhang	tristate "Loongson1 AC97 Support"
43*1fc55a2bSKeguang Zhang	depends on LOONGSON1_APB_DMA
44*1fc55a2bSKeguang Zhang	select SND_SOC_AC97_CODEC
45*1fc55a2bSKeguang Zhang	select SND_SOC_GENERIC_DMAENGINE_PCM
46*1fc55a2bSKeguang Zhang	select REGMAP_MMIO
47*1fc55a2bSKeguang Zhang	help
48*1fc55a2bSKeguang Zhang	  Say Y or M if you want to add support for codecs attached to
49*1fc55a2bSKeguang Zhang	  the Loongson1 AC97 controller.
50