{
wm8994_codec_fnc_t **wm8994_fnc_ptr = wm8994_codec_sequence;
unsigned char wm8994_mode = wm8994_current_mode;
-unsigned int error_count = 0;
+ unsigned int error_count = 0;
DBG("%s--%d::Enter\n",__FUNCTION__,__LINE__);
isWM8994SetChannel = true;
wm8994_check_channel();
isWM8994SetChannel = false;
-
+#if defined(CONFIG_MACH_A22)
+ gpio_request(RK29_PIN6_PD3, NULL); //AUDIO_PA_ON
+ gpio_direction_output(RK29_PIN6_PD3,GPIO_HIGH);
+ gpio_free(RK29_PIN6_PD3);
+#endif
return 0;
}
/*
gpio_request(WM_EN_PIN, NULL);
gpio_direction_output(WM_EN_PIN,GPIO_LOW);
gpio_free(WM_EN_PIN);
-
+#if defined(CONFIG_MACH_A22)
+ gpio_request(RK29_PIN6_PD3, NULL); //AUDIO_PA_ON
+ gpio_direction_output(RK29_PIN6_PD3,GPIO_LOW);
+ gpio_free(RK29_PIN6_PD3);
+#endif
msleep(50);
return 0;
gpio_request(WM_EN_PIN, NULL);
gpio_direction_output(WM_EN_PIN,GPIO_HIGH);
gpio_free(WM_EN_PIN);
-
+
msleep(50);
wm8994_set_bias_level(codec,SND_SOC_BIAS_STANDBY);
wm8994_check_channel();
isWM8994SetChannel = false;
+#if defined(CONFIG_MACH_A22)
+ gpio_request(RK29_PIN6_PD3, NULL); //AUDIO_PA_ON
+ gpio_direction_output(RK29_PIN6_PD3,GPIO_HIGH);
+ gpio_free(RK29_PIN6_PD3);
+#endif
return 0;
}