config SND_RK29_SOC
	tristate "SoC Audio for the rockchip RK29/RK30 System-on-Chip"
	depends on PLAT_RK && SND_SOC
	help
	  Say Y or M if you want to add support for codecs attached to
	  the ROCKCHIP IIS interface. You will also need
	  to select the audio interfaces to support below.

config SND_RK29_SOC_I2S
	tristate

config SND_RK29_SOC_I2S_8CH
        bool "Soc RK29 I2S 8 Channel support(I2S0)"
        default y
	depends on SND_RK29_SOC_I2S
	help
                This supports the use of the 8 Channel I2S interface on rk29 processors.

config SND_RK29_SOC_I2S_2CH
        bool "Soc RK29 I2S 2 Channel support(I2S1)"
        default n
	depends on SND_RK29_SOC_I2S
	help
                This supports the use of the 2 Channel I2S interface on rk29 processors.

config SND_RK_SOC_I2S2_2CH
	bool "Soc RK29 I2S 2 Channel support(I2S2)"
	default n
	depends on SND_RK29_SOC_I2S && ARCH_RK30
	help
		This supports the use of the 2 Channel I2S2 interface on rk30 processors.

if 	SND_RK29_SOC_I2S_2CH || SND_RK29_SOC_I2S_8CH || SND_RK_SOC_I2S2_2CH
choice
  bool "Set i2s on DMA event mode"
  default SND_I2S_DMA_EVENT_STATIC
	config SND_I2S_DMA_EVENT_DYNAMIC
		tristate  "dynamic mode"

	config SND_I2S_DMA_EVENT_STATIC
		tristate  "static mode"
endchoice
endif

config SND_RK29_SOC_SPDIF
	bool "Soc RK29 SPDIF support"
	depends on SND_RK29_SOC
	depends on SND_RK29_SOC_I2S
	help
		This supports the use of SPDIF interface on rk29 processors

config SND_RK29_SOC_WM8988
	tristate "SoC I2S Audio support for rockchip - WM8988"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_WM8988
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the WM8988.

config SND_RK29_SOC_WM8900
	tristate "SoC I2S Audio support for rockchip - WM8900"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_WM8900
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the WM8900.

config SND_RK29_SOC_RT5621
	tristate "SoC I2S Audio support for rockchip - rt5621"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_RT5621
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the rt5621.

config SND_RK29_SOC_RT5623
	tristate "SoC I2S Audio support for rockchip - rt5623"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_RT5623
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the rt5623.

config SND_RK29_SOC_RT5631
	tristate "SoC I2S Audio support for rockchip - RT5631"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_RT5631
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the RT5631.

config SND_RK29_SOC_RT5625
	tristate "SoC I2S Audio support for rockchip - RT5625"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the RT5625.

choice
	depends on SND_RK29_SOC_RT5625
	prompt  "RT5625 hardware select"

	config SND_SOC_RT5625_SPK_FORM_SPKOUT
	bool "spk from spkout"
	select SND_SOC_RT5625
	help
	  if your codec output hardware connect is spk from spkout, choose it

	config SND_SOC_RT5625_SPK_FORM_HPOUT
	bool "spk from hpout"
	select SND_SOC_RT5625
	help
	  if your codec output hardware connect is spk from spkout, choose it
endchoice

config SND_RK29_SOC_RT3261
	tristate "SoC I2S Audio support for rockchip - RT3261"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_RT3261
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the RT3261.

config SND_RK29_SOC_WM8994
	tristate "SoC I2S Audio support for rockchip - WM8994"
	depends on SND_RK29_SOC && MFD_WM8994
	select SND_RK29_SOC_I2S
	select SND_SOC_WM8994
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the WM8994.

config SND_RK29_SOC_CS42L52
	tristate "SoC I2S Audio support for rockchip - CS42L52"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_CS42L52
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the CS42L52.

config SND_RK29_SOC_AIC3111
	tristate "SoC I2S Audio support for rockchip - AIC3111"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_TLV320AIC3111
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the AIC3111.

config SND_RK29_SOC_AIC3262
	tristate "SoC I2S Audio support for rockchip - AIC3262"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_TLV320AIC326X
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the AIC3262.

config SND_RK29_SOC_AIC325X
   tristate "SoC I2S Audio support for rockchip - AIC325X"
   depends on SND_RK29_SOC
   select SND_RK29_SOC_I2S
   select SND_SOC_TLV320AIC325X
   select SND_SOC_TPA6130A2
   help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the AIC3262.

config SND_RK29_SOC_ACS422X
   tristate "SoC I2S Audio support for rockchip - ACS422X"
   depends on SND_RK29_SOC
   select SND_RK29_SOC_I2S
   select SND_SOC_ACS422X
   select SND_SOC_TPA6130A2
   help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the ACS422X.

config SND_RK29_SOC_RK1000
	tristate "SoC I2S Audio support for rockchip - RK1000"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_RK1000
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the RK1000.

config SND_RK29_SOC_HDMI
	tristate "SoC I2S Audio support for rockchip - HDMI"
	depends on SND_RK29_SOC && HDMI_ITV
	select SND_RK29_SOC_I2S
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the HDMI.

config SND_RK29_SOC_RK610
	tristate "SoC I2S Audio support for rockchip - RK610"
	depends on SND_RK29_SOC && MFD_RK610
	select SND_RK29_SOC_I2S
	select SND_SOC_RK610
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the RK610(JETTA).

if SND_RK29_SOC_WM8988 || SND_RK29_SOC_RK1000 || SND_RK29_SOC_WM8994 || SND_RK29_SOC_WM8900 || SND_RK29_SOC_RT5621 || SND_RK29_SOC_RT5631 || SND_RK29_SOC_RT5625 || SND_RK29_SOC_RT3261 || SND_RK29_SOC_CS42L52 || SND_RK29_SOC_AIC3111 || SND_RK29_SOC_HDMI || SND_RK29_SOC_RK610 || SND_RK29_SOC_AIC3262 || SND_RK29_SOC_AIC325X || SND_RK29_SOC_ACS422X
choice
  bool "Set i2s type"
  default SND_RK29_CODEC_SOC_SLAVE
	config SND_RK29_CODEC_SOC_MASTER
		tristate  "Codec run in Master"

	config SND_RK29_CODEC_SOC_SLAVE
		tristate  "Codec run in Slave"
endchoice

config ADJUST_VOL_BY_CODEC
	bool "Adjust volume by codec"
    default n
    help
    	  adjust volume by codec

config PHONE_INCALL_IS_SUSPEND
	bool "Incalling Whether suspend codec"
    default n
    help
		set "y" phone incall status cannot into suspend codec

endif

