projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d71bb81
)
ASoC: Accept any logical value WM8903 GPIO set()
author
Mark Brown
<
[email protected]
>
Mon, 31 Jan 2011 13:41:17 +0000
(13:41 +0000)
committer
Mark Brown
<
[email protected]
>
Mon, 31 Jan 2011 16:07:32 +0000
(16:07 +0000)
Signed-off-by: Mark Brown <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
sound/soc/codecs/wm8903.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8903.c
b/sound/soc/codecs/wm8903.c
index 9c4f2c4febc2bf6c6e8919c85c1247e43f499698..3d4c55f3c7b57328d1fb8fe414418c3fc2ac9766 100644
(file)
--- a/
sound/soc/codecs/wm8903.c
+++ b/
sound/soc/codecs/wm8903.c
@@
-1702,7
+1702,8
@@
static void wm8903_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
struct snd_soc_codec *codec = wm8903->codec;
snd_soc_update_bits(codec, WM8903_GPIO_CONTROL_1 + offset,
- WM8903_GP1_LVL_MASK, value << WM8903_GP1_LVL_SHIFT);
+ WM8903_GP1_LVL_MASK,
+ !!value << WM8903_GP1_LVL_SHIFT);
}
static struct gpio_chip wm8903_template_chip = {