mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 00:29:36 -04:00
ASoC: Pay attention to write errors in volsw_2r_sx
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
@@ -2433,14 +2433,12 @@ int snd_soc_put_volsw_2r_sx(struct snd_kcontrol *kcontrol,
|
||||
if (oval != val) {
|
||||
ret = snd_soc_write(codec, mc->reg, val);
|
||||
if (ret < 0)
|
||||
return 0;
|
||||
ret = 1;
|
||||
return ret;
|
||||
}
|
||||
if (ovalr != valr) {
|
||||
ret = snd_soc_write(codec, mc->rreg, valr);
|
||||
if (ret < 0)
|
||||
return 0;
|
||||
ret = 1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user