config SND_DMW_SOC
	tristate "SoC Audio for the DSPG DMW chip family"
	depends on ARCH_DMW || MACH_VERSATILE_BROADTILE
	help
	  Say Y or M if you want to add support for codecs attached to the DMW
	  TDM (I2S) interfaces. You will also need to select the audio
	  interfaces to support below.

config SND_DMW_SOC_BROADTILE_WM
	bool "DSPG Broadtile with WM8976"
	depends on MACH_VERSATILE_BROADTILE
	depends on SND_DMW_SOC
	select SND_SOC_WM8976
	help
	  Say Y if you want to add support for SoC audio on Versatile-Broadtile
	  with WM8976 AFE.

#config SND_PXA2XX_SOC_BROADTILE_DP52
#	tristate "SoC Audio support for DSPG Broadtile with DP52"
#	depends on SND_DMW_SOC && MACH_VERSATILE_BROADTILE
#	select SND_SOC_DP52
#	help
#	  Say Y if you want to add support for SoC audio on Versatile-Broadtile
#	  with DP52 AFE.


config SND_DMW_SOC_EVB96_WM8976
	bool "Support EVB96 board with WM8976 codec"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_WM8976
	help
	  Say Y if you want to add support for SoC audio on EVB96
	  with WM8976 (mono input path) AFE.

config SND_DMW_SOC_IMH3_WM8976
	bool "Support IMH3 board with WM8976 codec"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_WM8976
	help
	  Say Y if you want to add support for SoC audio on IMH3
	  with WM8976 (momo input path) AFE.

config SND_DMW_SOC_IMH3_WM8978
	bool "Support IMH3 board with WM8978 codec"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_WM8978_MOD
	help
	  Say Y if you want to add support for SoC audio on IMH3
	  with WM8978 (stereo input path) AFE.

config SND_DMW_SOC_TFEVB_WM8976
	bool "Support TFEVB board with WM8976 codec"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_WM8976
	help
	  Say Y if you want to add support for SoC audio on TFEVB
	  with WM8976 (mono input path) AFE.

config SND_DMW_SOC_TFMID_WM8978
	bool "Support TFMID board with WM8978 codec"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_WM8978
	help
	  Say Y if you want to add support for SoC audio on TFMID
	  with WM8978 (stereo input path) AFE.

config SND_DMW_SOC_BOARD_HDMI
	bool "Support sound over HDMI (ADV7525 or SiI9022A codec)"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_DMW_HDMI
	help
	  Say Y if you want to add support for SoC audio over HDMI.
	  On EVB96 or IMH3 - using ADV7525 hdmi chip,
	  On TF-EVB or TF-MID - using SiI9022A hdmi chip.
	  For HDMI, DMW96 is always TDM Master.

config SND_DMW_SOC_BOARD_CSR8811
	bool "Support sound over Bluetooth (CSR8811 codec stub)"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_CSR8811
	help
	  Say Y if you want to add support for SoC audio on EVB96 or IMH3
	  with sound over Bluetooth.

config SND_DMW_SOC_EVB96_SI3050
	bool "Support EVB96 board with SI3050 FXO (DAA)"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_SI3050
	help
	  Say Y if you want to add support for SoC audio on EVB96
	  with SI3050 FXO.

config SND_DMW_SOC_DUMMY
	bool "Support dummy dai links"
	depends on SND_DMW_SOC
	depends on DMW96_GDMAC
	select SND_SOC_DUMMY
	help
	  Say Y if you want to add support for Dummy Dai links.

choice
	prompt "TDM Master/Slave"
	depends on SND_DMW_SOC
	depends on SND_SOC_WM8976 || SND_SOC_WM8978_MOD || SND_SOC_CSR8811
	default SOC_CODEC_TDM_MASTER

config SOC_CODEC_TDM_MASTER
	bool "Codec chip is TDM Master"
	help
	  Define codec-chip as TDM master and DMW as TDM slave (preferred).

config SOC_CODEC_TDM_SLAVE
	bool "Codec chip is TDM Slave"
	help
	  Define codec-chip as TDM slave and DMW as TDM master (less accurate clocks).
endchoice

