projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7ba716
)
ASoC: core: Fix to check return value of snd_soc_update_bits_locked()
author
Joonyoung Shim
<jy0922.shim@samsung.com>
Tue, 26 Mar 2013 05:41:05 +0000
(14:41 +0900)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 14:10:02 +0000
(14:10 +0000)
It can be 0 or 1 return value of snd_soc_update_bits_locked() when it is
success. So just check return value is negative.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
sound/soc/soc-core.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index
507d251
..
ff4b45a
100644
(file)
--- a/
sound/soc/soc-core.c
+++ b/
sound/soc/soc-core.c
@@
-2963,7
+2963,7
@@
int snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol,
val = val << shift;
ret = snd_soc_update_bits_locked(codec, reg, val_mask, val);
- if (ret
!=
0)
+ if (ret
<
0)
return ret;
if (snd_soc_volsw_is_stereo(mc)) {