ASoC: core: fix shift used for second item in snd_soc_get_enum_double
PATCH 1/1 ASoC: core: fix shift used for second item in snd_soc_get_enum_double
Incorrect shift value was being used to extract the second item.
--- sound/soc/soc-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-ops.c +1 -1
@@ -77,7 +77,7 @@ int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, item =snd_soc_enum_val_to_item (e, val); ucontrol->value.enumerated.item[0 ] = item;if (e->shift_l != e->shift_r) { - val = (reg_val >> e->shift_l) & e->mask; + val = (reg_val >> e->shift_r) & e->mask; item =snd_soc_enum_val_to_item (e, val); ucontrol->value.enumerated.item[1 ] = item; }
Signature · 1 line
2.1.4
Mark Brown
maintainerQuoted 3 lines · jjassal
Incorrect shift value was being used to extract the second item.
Signed-off-by jjassal <[email protected]>
This doesn't match the e-mail address this was sent from and so looks like a non-author signoff though I'm guessing both addresses belong to a single person. You should ensure that your git configuration is consistent in which e-mail address it uses. Making sure that the signoff comes from the author is important for licensing reasons, see SubmttingPatches for details, and so using different e-mail addresses sets off alarm bells.
You really should also use something other than your login for the real name - it's the more common thing and it's less likely to be misidentified as spam.