xref: /linux/sound/soc/sophgo/Kconfig (revision c17ee635fd3a482b2ad2bf5e269755c2eae5f25e)
1ea0fb91cSAnton D. Stavinskii# SPDX-License-Identifier: GPL-2.0-only
2ea0fb91cSAnton D. Stavinskii#
3ea0fb91cSAnton D. Stavinskii# SoC audio configuration for cv1800b
4ea0fb91cSAnton D. Stavinskii#
5ea0fb91cSAnton D. Stavinskii
6ea0fb91cSAnton D. Stavinskiimenu "Sophgo"
7ea0fb91cSAnton D. Stavinskii	depends on COMPILE_TEST || ARCH_SOPHGO
8ea0fb91cSAnton D. Stavinskii
9ea0fb91cSAnton D. Stavinskiiconfig SND_SOC_CV1800B_TDM
10ea0fb91cSAnton D. Stavinskii	tristate "Sophgo CV1800B I2S/TDM support"
11ea0fb91cSAnton D. Stavinskii	depends on SND_SOC && OF
12ea0fb91cSAnton D. Stavinskii	select SND_SOC_GENERIC_DMAENGINE_PCM
13ea0fb91cSAnton D. Stavinskii	help
14ea0fb91cSAnton D. Stavinskii	  This option enables the I2S/TDM audio controller found in Sophgo
15ea0fb91cSAnton D. Stavinskii	  CV1800B / SG2002 SoCs. The controller supports standard I2S
16ea0fb91cSAnton D. Stavinskii	  audio modes for playback and capture.
17ea0fb91cSAnton D. Stavinskii
18ea0fb91cSAnton D. Stavinskii	  The driver integrates with the ASoC framework and uses the DMA
19ea0fb91cSAnton D. Stavinskii	  engine for audio data transfer. It is intended to be configured
20ea0fb91cSAnton D. Stavinskii	  via Device Tree along with simple-audio-card module.
21ea0fb91cSAnton D. Stavinskii
22ea0fb91cSAnton D. Stavinskii	  To compile the driver as a module, choose M here: the module will
23ea0fb91cSAnton D. Stavinskii	  be called cv1800b_tdm.
24ea0fb91cSAnton D. Stavinskii
254cf8752aSAnton D. Stavinskiiconfig SND_SOC_CV1800B_ADC_CODEC
264cf8752aSAnton D. Stavinskii	tristate "Sophgo CV1800B/SG2002 internal ADC codec"
274cf8752aSAnton D. Stavinskii	depends on SND_SOC
284cf8752aSAnton D. Stavinskii	help
294cf8752aSAnton D. Stavinskii	  This driver provides an ASoC codec DAI for capture and basic
304cf8752aSAnton D. Stavinskii	  control of the RXADC registers.
31*8cf19b19SAnton D. Stavinskii
324cf8752aSAnton D. Stavinskii	  Say Y or M to build support for the Sophgo CV1800B
334cf8752aSAnton D. Stavinskii	  internal analog ADC codec block (RXADC).
344cf8752aSAnton D. Stavinskii	  The module will be called cv1800b-sound-adc
354cf8752aSAnton D. Stavinskii
36b3eb755eSAnton D. Stavinskiiconfig SND_SOC_CV1800B_DAC_CODEC
37b3eb755eSAnton D. Stavinskii	tristate "Sophgo CV1800B/SG2002 internal DAC codec"
38b3eb755eSAnton D. Stavinskii	depends on SND_SOC
39b3eb755eSAnton D. Stavinskii	help
40b3eb755eSAnton D. Stavinskii	  This driver provides an ASoC codec DAI for playback and basic
41b3eb755eSAnton D. Stavinskii	  control of the TXDAC registers.
42b3eb755eSAnton D. Stavinskii
43b3eb755eSAnton D. Stavinskii	  Say Y or M to build support for the Sophgo CV1800B
44b3eb755eSAnton D. Stavinskii	  internal analog DAC codec block (TXDAC).
45b3eb755eSAnton D. Stavinskii	  The module will be called cv1800b-sound-dac
464cf8752aSAnton D. Stavinskii
47ea0fb91cSAnton D. Stavinskiiendmenu
48