Эх сурвалжийг харах

Merge remote-tracking branch 'asoc/fix/core' into asoc-next

Mark Brown 12 жил өмнө
parent
commit
75c3475daa
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      sound/soc/soc-core.c

+ 1 - 1
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)) {