Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283898
b: refs/heads/master
c: 209e8cf
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 7, 2011
1 parent f87767e commit 2369725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8faab941bec7af1c1865db316ac2f37c78071271
refs/heads/master: 209e8cf668d3f421eb6d86eb62451396fb0a737d
14 changes: 4 additions & 10 deletions trunk/sound/soc/pxa/e800_wm9712.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,16 @@ static int __init e800_init(void)
if (!machine_is_e800())
return -ENODEV;

ret = gpio_request(GPIO_E800_HP_AMP_OFF, "Headphone amp");
ret = gpio_request_one(GPIO_E800_HP_AMP_OFF, GPIOF_OUT_INIT_HIGH,
"Headphone amp");
if (ret)
return ret;

ret = gpio_request(GPIO_E800_SPK_AMP_ON, "Speaker amp");
ret = gpio_request_one(GPIO_E800_SPK_AMP_ON, GPIOF_OUT_INIT_HIGH,
"Speaker amp");
if (ret)
goto free_hp_amp_gpio;

ret = gpio_direction_output(GPIO_E800_HP_AMP_OFF, 1);
if (ret)
goto free_spk_amp_gpio;

ret = gpio_direction_output(GPIO_E800_SPK_AMP_ON, 1);
if (ret)
goto free_spk_amp_gpio;

e800_snd_device = platform_device_alloc("soc-audio", -1);
if (!e800_snd_device) {
ret = -ENOMEM;
Expand Down

0 comments on commit 2369725

Please sign in to comment.