Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283841
b: refs/heads/master
c: 6f526f0
h: refs/heads/master
i:
  283839: 3ea7930
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Dec 2, 2011
1 parent c79c1d1 commit bf70f30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 84b315ee893676e9a9ce8ac42ab5ef44e2af3ee1
refs/heads/master: 6f526f0a86dbb22fd2fc5a873f55c9e2341a79c0
4 changes: 2 additions & 2 deletions trunk/sound/soc/codecs/wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -1936,11 +1936,11 @@ static int wm8903_probe(struct snd_soc_codec *codec)
bool mic_gpio = false;

for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) {
if (pdata->gpio_cfg[i] == WM8903_GPIO_NO_CONFIG)
if (pdata->gpio_cfg[i] > 0x7fff)
continue;

snd_soc_write(codec, WM8903_GPIO_CONTROL_1 + i,
pdata->gpio_cfg[i] & 0xffff);
pdata->gpio_cfg[i] & 0x7fff);

val = (pdata->gpio_cfg[i] & WM8903_GP1_FN_MASK)
>> WM8903_GP1_FN_SHIFT;
Expand Down

0 comments on commit bf70f30

Please sign in to comment.