rk29_a22:功放ldo引脚使能

This commit is contained in:
邱建斌
2011-04-08 18:36:01 +08:00
parent 15f55cd5d8
commit 774b961456
2 changed files with 18 additions and 5 deletions

View File

@@ -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);

View File

@@ -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;
}