ASoC: dapm: update function comments
PATCH 1/1 ASoC: dapm: update function comments
snd_soc_dapm_put_volsw() and snd_soc_dapm_put_enum_double() returns 0 if the value is unchanged and 1 if changed. Both 0 and 1 indicate a success.
Signed-off-by Tzung-Bi Shih <[email protected]>
--- sound/soc/soc-dapm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-dapm.c +2 -2
@@ -3178,7 +3178,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_get_volsw);* * Callback to set the value of a dapm mixer control. * -* Returns 0 for success. +* Returns either 0 or 1 for success: 1 if changed, 0 if unchanged. */ int snd_soc_dapm_put_volsw (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol)
@@ -3311,7 +3311,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_get_enum_double);* * Callback to set the value of a dapm enumerated double mixer control. * -* Returns 0 for success. +* Returns either 0 or 1 for success: 1 if changed, 0 if unchanged. */ int snd_soc_dapm_put_enum_double (struct snd_kcontrol *kcontrol,struct snd_ctl_elem_value *ucontrol)
Signature · 1 line
2.18.0.rc1.242.g61856ae69a-goog
Quoted 6 lines · Tzung-Bi Shih
snd_soc_dapm_put_volsw()andsnd_soc_dapm_put_enum_double()returns 0 if the value is unchanged and 1 if changed. Both 0 and 1 indicate a success.Signed-off-by Tzung-Bi Shih <[email protected]>---
Reviewed-by Charles Keepax <[email protected]>
Thanks,
Charles