rk30_mux_api_set(iomux_name, iomux_mode);
gpio_pull_updown(gpio, PullDisable);
gpio_direction_input(gpio);
+ mdelay(50);
return 0;
};
#endif
-#ifdef CONFIG_SND_SOC_RT3261
+#if defined (CONFIG_SND_SOC_RT3224) || defined (CONFIG_SND_SOC_RT3261)
static int rt3261_io_init(int gpio, char *iomux_name, int iomux_mode)
{
static struct rt3261_platform_data rt3261_info = {
.codec_en_gpio = RK30_PIN4_PD7,
.codec_en_gpio_info = {GPIO4D7_SMCDATA15_TRACEDATA15_NAME,GPIO4D_GPIO4D7},
- .io_init = rt3261_io_init,
+ .io_init = rt3261_io_init,
};
#endif
extern int wm8994_headset_mic_detect(bool headset_status);
#endif
-#ifdef CONFIG_SND_SOC_RT3261
+#if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
extern int rt3261_headset_mic_detect(int jack_insert);
#endif
#ifdef CONFIG_SND_SOC_WM8994
wm8994_headset_mic_detect(true);
#endif
- #ifdef CONFIG_SND_SOC_RT3261
+ #if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
rt3261_headset_mic_detect(true);
#endif
//mdelay(400);
#ifdef CONFIG_SND_SOC_WM8994
wm8994_headset_mic_detect(false);
#endif
- #ifdef CONFIG_SND_SOC_RT3261
+ #if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
rt3261_headset_mic_detect(false);
#endif
printk("headset->isMic = %d\n",headset_info->isMic);
//rt5625_headset_mic_detect(false);
wm8994_headset_mic_detect(false);
#endif
- #ifdef CONFIG_SND_SOC_RT3261
+ #if defined (CONFIG_SND_SOC_RT3261) || defined (CONFIG_SND_SOC_RT3224)
rt3261_headset_mic_detect(false);
#endif
}
#define RT3261_REG_RW 1 /* for debug */
#define RT3261_DET_EXT_MIC 0
-#define VERSION "RT3261_V1.1.0"
+#define VERSION "RT3261_V1.2.0"
#if defined (CONFIG_SND_SOC_RT5623)
extern void rt5623_on(void);
int reg;
int i;
int value;
+ #if defined (CONFIG_SND_SOC_RT3261)
struct rt3261_dsp_param param;
+ #endif
cookie_pot = (char *)vmalloc( len );
if (!cookie_pot)