select SND_SOC_RT5631 if I2C
select SND_SOC_RT5625 if I2C
select SND_SOC_RT3261 if I2C
+ select SND_SOC_RT3224 if I2C
select SND_SOC_RT5623 if I2C
select SND_SOC_RK610 if I2C
select SND_SOC_WM8903 if I2C
config SND_SOC_RT5625
tristate
+config SND_SOC_RT3224
+ tristate
+
config SND_SOC_RT3261
tristate
snd-soc-jz4740-codec-objs := jz4740.o
snd-soc-rk610-objs := rk610_codec.o
snd-soc-rt3261-objs := rt3261.o rt3261-dsp.o rt3261_ioctl.o rt_codec_ioctl.o
+snd-soc-rt3224-objs := rt3261.o rt3261_ioctl.o rt_codec_ioctl.o
snd-soc-rk2928-objs := rk2928_codec.o
# Amp
snd-soc-wm2000-objs := wm2000.o
snd-soc-wm9090-objs := wm9090.o
obj-$(CONFIG_SND_SOC_RT3261) += snd-soc-rt3261.o
+obj-$(CONFIG_SND_SOC_RT3224) += snd-soc-rt3224.o
obj-$(CONFIG_SND_SOC_88PM860X) += snd-soc-88pm860x.o
obj-$(CONFIG_SND_SOC_AC97_CODEC) += snd-soc-ac97.o
obj-$(CONFIG_SND_SOC_AD1836) += snd-soc-ad1836.o
static struct snd_soc_codec *rt3261_codec;
-#if 1
+#if 0
#define DBG(x...) printk(KERN_INFO x)
#else
#define DBG(x...)
snd_soc_dapm_add_routes(&codec->dapm, rt3261_dapm_routes,
ARRAY_SIZE(rt3261_dapm_routes));
-#if 0
+
#if defined (CONFIG_SND_SOC_RT3261)
rt3261->dsp_sw = RT3261_DSP_AEC_NS_FENS;
rt3261_dsp_probe(codec);
realtek_ce_init_hwdep(codec);
#endif
#endif
-#endif
+
ret = device_create_file(codec->dev, &dev_attr_index_reg);
if (ret != 0) {
* (3) DSP IIS interface power off
* (4) Toggle pin of codec LDO1 to power off
*/
- //rt3261_dsp_suspend(codec, state);
+ rt3261_dsp_suspend(codec, state);
#endif
rt3261_set_bias_level(codec, SND_SOC_BIAS_OFF);
return 0;
rt3261_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
#if defined (CONFIG_SND_SOC_RT3261)
/* After opening LDO of codec, then close LDO of DSP. */
- //rt3261_dsp_resume(codec);
+ rt3261_dsp_resume(codec);
#endif
return 0;
}
if your codec output hardware connect is spk from spkout, choose it
endchoice
+config SND_RK29_SOC_RT3224
+ tristate "SoC I2S Audio support for rockchip - RT3224"
+ depends on SND_RK29_SOC
+ select SND_RK29_SOC_I2S
+ select SND_SOC_RT3224
+ help
+ RT3224 is pin to pin as RT3261, but not have dsp function.
+
config SND_RK29_SOC_RT3261
tristate "SoC I2S Audio support for rockchip - RT3261"
depends on SND_RK29_SOC
Say Y if you want to add support for SoC audio on rockchip
with the RK2928 internal codec.
-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_RK_SOC_RK2928
+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_RT3224 || SND_RK29_SOC_CS42L52 || SND_RK29_SOC_AIC3111 || SND_RK29_SOC_HDMI || SND_RK29_SOC_RK610 || SND_RK29_SOC_AIC3262 || SND_RK_SOC_RK2928
choice
bool "Set i2s type"
default SND_RK29_CODEC_SOC_SLAVE
snd-soc-rt5631-objs := rk29_rt5631.o
snd-soc-rt5625-objs := rk29_rt5625.o
snd-soc-rt3261-objs := rk29_rt3261.o
+snd-soc-rt3224-objs := rk29_rt3261.o
snd-soc-cs42l52-objs := rk29_cs42l52.o
snd-soc-aic3111-objs := rk29_aic3111.o
snd-soc-wm8988-objs := rk29_wm8988.o
obj-$(CONFIG_SND_RK29_SOC_RT5631) += snd-soc-rt5631.o
obj-$(CONFIG_SND_RK29_SOC_RT5625) += snd-soc-rt5625.o
obj-$(CONFIG_SND_RK29_SOC_RT3261) += snd-soc-rt3261.o
+obj-$(CONFIG_SND_RK29_SOC_RT3224) += snd-soc-rt3224.o
obj-$(CONFIG_SND_RK29_SOC_RK1000) += snd-soc-rk1000.o
obj-$(CONFIG_SND_RK29_SOC_CS42L52) += snd-soc-cs42l52.o
obj-$(CONFIG_SND_RK29_SOC_AIC3111) += snd-soc-aic3111.o
#include "rk29_pcm.h"\r
#include "rk29_i2s.h"\r
\r
-#if 1\r
+#if 0\r
#define DBG(x...) printk(KERN_INFO x)\r
#else\r
#define DBG(x...)\r