mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			133 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			133 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			Diff
		
	
	
| diff -drupN a/sound/soc/ingenic/Kconfig b/sound/soc/ingenic/Kconfig
 | |
| --- a/sound/soc/ingenic/Kconfig	1970-01-01 03:00:00.000000000 +0300
 | |
| +++ b/sound/soc/ingenic/Kconfig	2022-06-09 05:02:37.000000000 +0300
 | |
| @@ -0,0 +1,128 @@
 | |
| +menuconfig SND_ASOC_INGENIC
 | |
| +	tristate "ASoC support for Ingenic"
 | |
| +	depends on (MACH_XBURST=y || MACH_XBURST2=y) && SND_SOC
 | |
| +	help
 | |
| +		Say 'Y' to enable Alsa drivers of xburst.
 | |
| +
 | |
| +if SND_ASOC_INGENIC
 | |
| +config SND_ASOC_INGENIC_DEBUG
 | |
| +	bool "enable ingenic debug message"
 | |
| +	default n
 | |
| +config SND_ASOC_INGENIC_VERBOSE
 | |
| +	bool "enable ingenic verbose debug message"
 | |
| +	default n
 | |
| +
 | |
| +choice
 | |
| +	prompt "Audio Version:"
 | |
| +	depends on SND_ASOC_INGENIC
 | |
| +config SND_ASOC_INGENIC_AS_V1
 | |
| +	bool "AudioSystem Version 1 For Ingenic SOCs"
 | |
| +	depends on MACH_XBURST
 | |
| +	help
 | |
| +		Audio System Verison 1 for SOC X1000.
 | |
| +
 | |
| +config SND_ASOC_INGENIC_AS_V2
 | |
| +	bool "AudioSystem Version 2 For Ingenic SOCs"
 | |
| +	select SND_DYNAMIC_MINORS
 | |
| +	depends on MACH_XBURST2
 | |
| +	help
 | |
| +		Audio System Version 2 for SOC X2000,
 | |
| +endchoice
 | |
| +
 | |
| +
 | |
| +if SND_ASOC_INGENIC_AS_V1
 | |
| +
 | |
| +config SND_ASOC_INGENIC_X1000_BOARD
 | |
| +	tristate
 | |
| +
 | |
| +config SND_ASOC_INGENIC_AIC
 | |
| +	tristate
 | |
| +
 | |
| +config SND_ASOC_PDMA
 | |
| +	tristate
 | |
| +	select DMADEVICES
 | |
| +	select INGENIC_PDMAC
 | |
| +	select SND_SOC_GENERIC_DMAENGINE_PCM
 | |
| +
 | |
| +config SND_ASOC_INGENIC_AIC_SPDIF
 | |
| +	tristate
 | |
| +	select SND_ASOC_INGENIC_AIC
 | |
| +
 | |
| +config SND_ASOC_INGENIC_AIC_I2S
 | |
| +	tristate
 | |
| +	select SND_ASOC_INGENIC_AIC
 | |
| +
 | |
| +config SND_ASOC_INGENIC_DMIC
 | |
| +	tristate
 | |
| +
 | |
| +config SND_ASOC_INGENIC_PCM
 | |
| +	tristate
 | |
| +
 | |
| +config SND_ASOC_INGENIC_ICDC_D3
 | |
| +	tristate
 | |
| +	select SND_ASOC_INGENIC_AIC
 | |
| +	select SND_ASOC_INGENIC_INCODEC
 | |
| +
 | |
| +config SND_ASOC_INGENIC_DUMP_CODEC
 | |
| +	tristate
 | |
| +
 | |
| +endif
 | |
| +
 | |
| +
 | |
| +if SND_ASOC_INGENIC_AS_V2
 | |
| +
 | |
| +config SND_ASOC_INGENIC_AS_FE
 | |
| +        tristate
 | |
| +config SND_ASOC_INGENIC_AS_BAIC
 | |
| +        tristate
 | |
| +
 | |
| +config SND_ASOC_INGENIC_AS_VIR_FE
 | |
| +	depends on SND_ASOC_INGENIC_AS_FE
 | |
| +        bool "enable ingenic virtual FE"
 | |
| +        default y
 | |
| +endif
 | |
| +
 | |
| +
 | |
| +menu "Ingenic Board Type Select"
 | |
| +choice
 | |
| +	prompt "SOC x1000 codec type select"
 | |
| +	depends on SOC_X1000
 | |
| +	depends on SND_ASOC_INGENIC_AS_V1
 | |
| +config SND_ASOC_INGENIC_HALLEY2_ICDC
 | |
| +	bool "Audio support for halley2 with internal codec"
 | |
| +	select SND_ASOC_PDMA
 | |
| +	select SND_ASOC_INGENIC_AIC_I2S
 | |
| +	select SND_ASOC_INGENIC_ICDC_D3
 | |
| +	select SND_ASOC_INGENIC_DMIC
 | |
| +	select SND_ASOC_INGENIC_PCM
 | |
| +	select SND_ASOC_INGENIC_DUMP_CODEC
 | |
| +	select SND_ASOC_INGENIC_X1000_BOARD
 | |
| +
 | |
| +config SND_ASOC_INGENIC_HALLEY2_SPDIF
 | |
| +	bool "Audio support for halley2 with spdif"
 | |
| +	select SND_ASOC_PDMA
 | |
| +	select SND_ASOC_INGENIC_DMIC
 | |
| +	select SND_ASOC_INGENIC_PCM
 | |
| +	select SND_ASOC_INGENIC_DUMP_CODEC
 | |
| +	select SND_ASOC_INGENIC_X1000_BOARD
 | |
| +	select SND_ASOC_INGENIC_AIC_SPDIF
 | |
| +endchoice
 | |
| +
 | |
| +choice
 | |
| +	prompt "SOC x2000 codec Type select"
 | |
| +	depends on SOC_X2000
 | |
| +	depends on SND_ASOC_INGENIC_AS_V2
 | |
| +config SND_ASOC_INGENIC_SEAL
 | |
| +        bool "Audio support for x2000 seal board"
 | |
| +        select SND_ASOC_INGENIC_AS_FE
 | |
| +        select SND_ASOC_INGENIC_AS_BAIC
 | |
| +        #select SND_SOC_WM8594
 | |
| +        select SND_SOC_AK4458
 | |
| +        select SND_SOC_AK5558
 | |
| +endchoice
 | |
| +
 | |
| +endmenu
 | |
| +
 | |
| +endif
 | |
| +
 | |
| +source sound/soc/ingenic/ecodec/Kconfig
 |