# SPDX-License-Identifier: GPL-2.0-only
# Helper to resolve issues with configs that have SPI enabled but I2C
# modular, meaning we can't build the codec driver in with I2C support.
# We use an ordered list of conditional defaults to pick the appropriate
# setting - SPI can't be modular so that case doesn't need to be covered.

menu "HOBOT CODEC drivers"

config SND_SOC_ALL_CODECS
	tristate "Build all ASoC CODEC drivers"
	depends on COMPILE_TEST
	imply SND_SOC_AC108_DRIVER
	imply SND_SOC_AC101_DRIVER
	imply SND_SOC_DUMMY_CODEC
	imply SND_SOC_ES7210
	imply SND_SOC_PCM6XX0_I2C
	
	help
	  Normally ASoC codec drivers are only built if a machine driver which
	  uses them is also built since they are only usable with a machine
	  driver.  Selecting this option will allow these drivers to be built
	  without an explicit machine driver for test and development purposes.

	  Support for the bus types used to access the codecs to be built must
	  be selected separately.

	  If unsure select "N".


config SND_SOC_AC108_DRIVER
	tristate "AC108 Audio Codec"
	depends on I2C

config SND_SOC_AC101_DRIVER
	tristate "AC101 Audio Codec"
	depends on I2C

config SND_SOC_DUMMY_CODEC
	tristate "DUMMY Audio Codec"

config SND_SOC_ES7210
	tristate "ES7210 Audio Codec"
	depends on I2C

config SND_SOC_PCM6XX0_I2C
	tristate "Texas Instruments PCM6XX0 CODECs - I2C"
	depends on I2C
	select SND_SOC_PCM6XX0
	select REGMAP_I2C

config SND_SOC_ADAU1966_I2C
	tristate "ADI Instruments ADAU1966 CODECs - I2C"
	depends on I2C
	select SND_SOC_ADAU1966
	select REGMAP_I2C

config SND_SOC_ES8156
	tristate "ES8156 Audio Codec"
	depends on I2C

endmenu
