# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)

config SND_SOC_MTHREADS
	bool "ASoC support for MooreThreads"
	help
	  Say Y if you want to add support for codecs attached to
	  the MooreThreads SoCs' Audio interfaces. You will also need to
	  select the audio interfaces to support below.

if SND_SOC_MTHREADS
config SND_SOC_MTHREADS_I2S
	tristate "MooreThreads I2S Device Driver"
	depends on HAVE_CLK && SND_SOC_MTHREADS
	select SND_SOC_ACPI if ACPI
	help
	  Say Y or M if you want to add support for I2S driver for
	  MooreThreads I2S device. The device supports up to maximum of
	  4 channels each for play and record.

config SND_SOC_MTHREADS_DISP_I2S
	tristate "MooreThreads Display I2S Device Driver"
	depends on HAVE_CLK
	select SND_SOC_ACPI if ACPI
	help
	  Say Y or M if you want to add support for Display I2S driver
	  for MooreThreads Display I2S device. The device supports up
	  to maximum of 8 channels for play.

config SND_SOC_M1000_RT5672
	tristate "ASoC support for MooreThreads boards using a ALC5672 codec"
	depends on I2C && GPIOLIB && HAVE_CLK
	select SND_SOC_MTHREADS_I2S
	select SND_SOC_RT5670
	select SND_SOC_ACPI if ACPI
	help
	  Say Y or M here if you want to add support for SoC audio on MooreThreads
	  M1000 boards using the ALC5672 codec.

config SND_SOC_M1000_DPTX_SOUND
	tristate "ASoC support for MooreThreads boards using a DPTX sound"
	depends on HAVE_CLK && M1000_DPTX
	select SND_SOC_MTHREADS_DISP_I2S
	help
	  Say Y or M here if you want to add support for SoC audio on MooreThreads
	  M1000 boards using the DPTX sound.

endif ## SND_SOC_MTHREADS
