mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ASoC: core: Fix to check return value of snd_soc_update_bits_locked()
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected]
This commit is contained in:
parent
f7ba716f1e
commit
0eaa6cca1f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue