From: Lars-Peter Clausen Date: Wed, 24 Jul 2013 13:27:35 +0000 (+0200) Subject: ASoC: dapm: Fix return value of snd_soc_dapm_put_{volsw,enum_virt}() X-Git-Tag: v3.11-rc4~4^2~1^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56a678344273fd63f8ade26876283a2586a9bf3a;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed