rk29_a22:功放ldo引脚使能
author邱建斌 <qjb@rock-chips.com>
Fri, 8 Apr 2011 10:36:01 +0000 (18:36 +0800)
committer邱建斌 <qjb@rock-chips.com>
Fri, 8 Apr 2011 10:36:01 +0000 (18:36 +0800)
drivers/input/touchscreen/gt801_ts.c
sound/soc/codecs/wm8994.c

index b8b3a5e9cab8da852d77673d7def519407d1cc68..c8bcbad77ef31cca4a813a0752a1ce02bd742786 100755 (executable)
@@ -581,7 +581,7 @@ static int gt801_ts_resume(struct i2c_client *client)
     printk("gt801 TS Resume\n");
        
     gpio_set_value(ts->gpio_reset, ts->gpio_reset_active_low? GPIO_HIGH:GPIO_LOW);
-       
+       msleep(50);
     if (ts->use_irq) {
         printk("enabling IRQ %d\n", client->irq);
         enable_irq(client->irq);
index bf3d6729a968c69e6bd1d941a04f82263ce7e411..1aa016dbd1a734b92baca1160d9af5b9334cb6ed 100755 (executable)
@@ -2720,7 +2720,7 @@ void wm8994_check_channel(void)
 {
        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;
@@ -2883,7 +2883,11 @@ int snd_soc_put_route(struct snd_kcontrol *kcontrol,
        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;
 }
 /*
@@ -3419,7 +3423,11 @@ static int wm8994_suspend(struct platform_device *pdev, pm_message_t state)
        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;
@@ -3436,7 +3444,7 @@ static int wm8994_resume(struct platform_device *pdev)
        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);
@@ -3459,6 +3467,11 @@ static int wm8994_resume(struct platform_device *pdev)
        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;
 }