
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.

config SND_ROCKCHIP_SPDIF
	tristate
	select SND_SOC_SPDIF

if 	SND_RK29_SOC_I2S_2CH || SND_RK29_SOC_I2S_8CH || SND_RK_SOC_I2S2_2CH || SND_ROCKCHIP_SPDIF
choice
  bool "Set audio DMA event mode"
  default SND_DMA_EVENT_STATIC
	config SND_DMA_EVENT_DYNAMIC
		tristate  "dynamic mode"

config SND_DMA_EVENT_STATIC
	tristate  "static mode"
endchoice
endif	
			
	  
config SND_RK_SOC_SPDIF
	bool "spdif support for rockchip rk29 or rk30"
	depends on SND_RK29_SOC 
	select SND_ROCKCHIP_SPDIF
	help
	  Say Y if you want to add support for SoC audio on rockchip
	  with the spdif.

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_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_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_RK1000
	tristate "SoC I2S Audio support for rockchip - RK1000"
	depends on SND_RK29_SOC && MFD_RK1000
	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_RK_SOC_HDMI
	tristate "SoC I2S Audio support for rockchip - HDMI"
	depends on SND_RK29_SOC
	select SND_RK29_SOC_I2S
	select SND_SOC_RK_HDMI_CODEC
	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_CS42L52 || SND_RK29_SOC_AIC3111 || SND_RK_SOC_HDMI || SND_RK29_SOC_RK610 || SND_RK29_SOC_AIC3262
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

