Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273571
b: refs/heads/master
c: 64964e8
h: refs/heads/master
i:
  273569: e17f86f
  273567: 5128df2
v: v3
  • Loading branch information
Mark Brown committed Oct 31, 2011
1 parent 8964f54 commit 7ec9bc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 5a7c5f26df3c0122814dfa1c13ef6dfbdbffdb86
refs/heads/master: 64964e82644e9f809dc83019186c21ed5b70aa56
12 changes: 8 additions & 4 deletions trunk/sound/soc/codecs/wm5100.c
Original file line number Diff line number Diff line change
Expand Up @@ -2361,13 +2361,17 @@ static int wm5100_gpio_direction_out(struct gpio_chip *chip,
{
struct wm5100_priv *wm5100 = gpio_to_wm5100(chip);
struct snd_soc_codec *codec = wm5100->codec;
int val;
int val, ret;

val = (1 << WM5100_GP1_FN_SHIFT) | (!!value << WM5100_GP1_LVL_SHIFT);

return snd_soc_update_bits(codec, WM5100_GPIO_CTRL_1 + offset,
WM5100_GP1_FN_MASK | WM5100_GP1_DIR |
WM5100_GP1_LVL, val);
ret = snd_soc_update_bits(codec, WM5100_GPIO_CTRL_1 + offset,
WM5100_GP1_FN_MASK | WM5100_GP1_DIR |
WM5100_GP1_LVL, val);
if (ret < 0)
return ret;
else
return 0;
}

static int wm5100_gpio_get(struct gpio_chip *chip, unsigned offset)
Expand Down

0 comments on commit 7ec9bc1

Please sign in to comment.