diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-07-24 17:27:35 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-24 17:55:04 +0400 |
commit | 56a678344273fd63f8ade26876283a2586a9bf3a (patch) | |
tree | 6a0f652d408b91b7f70b43b098f6c19c9da3b4aa /sound/soc/codecs/max98088.c | |
parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) | |
download | linux-56a678344273fd63f8ade26876283a2586a9bf3a.tar.xz |
ASoC: dapm: Fix return value of snd_soc_dapm_put_{volsw,enum_virt}()
The ALSA core expect the put callback of a control to return 1 if the value of
the control changed and 0 if it did not. Both snd_soc_dapm_put_volsw() and
snd_soc_dapm_put_enum_virt() currently always returns 0. For both functions we
already have a 'change' variable which either contains 1 or 0 depending on
whether the value has changed or not, so just return that.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/max98088.c')
0 files changed, 0 insertions, 0 deletions