aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-09-29 15:43:11 -0400
committerMark Brown <broonie@kernel.org>2016-09-29 15:43:11 -0400
commit195dee5647c76a4edcd762b82c626a990e349ff6 (patch)
tree6dc73416357cf2b3445ff57d657a34623446fb41
parent08895a8b6b06ed2323cd97a36ee40a116b3db8ed (diff)
parenta3930ed060df4ccf2a06cf0b68738dec3e6ff89a (diff)
Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linus
-rw-r--r--sound/soc/soc-dapm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index d908ff8f9755..801082fdc3e0 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -823,6 +823,7 @@ static int dapm_create_or_share_kcontrol(struct snd_soc_dapm_widget *w,
823 case snd_soc_dapm_switch: 823 case snd_soc_dapm_switch:
824 case snd_soc_dapm_mixer: 824 case snd_soc_dapm_mixer:
825 case snd_soc_dapm_pga: 825 case snd_soc_dapm_pga:
826 case snd_soc_dapm_out_drv:
826 wname_in_long_name = true; 827 wname_in_long_name = true;
827 kcname_in_long_name = true; 828 kcname_in_long_name = true;
828 break; 829 break;
@@ -3049,6 +3050,9 @@ int snd_soc_dapm_get_volsw(struct snd_kcontrol *kcontrol,
3049 } 3050 }
3050 mutex_unlock(&card->dapm_mutex); 3051 mutex_unlock(&card->dapm_mutex);
3051 3052
3053 if (ret)
3054 return ret;
3055
3052 if (invert) 3056 if (invert)
3053 ucontrol->value.integer.value[0] = max - val; 3057 ucontrol->value.integer.value[0] = max - val;
3054 else 3058 else
@@ -3200,7 +3204,7 @@ int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol,
3200 if (e->shift_l != e->shift_r) { 3204 if (e->shift_l != e->shift_r) {
3201 if (item[1] > e->items) 3205 if (item[1] > e->items)
3202 return -EINVAL; 3206 return -EINVAL;
3203 val |= snd_soc_enum_item_to_val(e, item[1]) << e->shift_l; 3207 val |= snd_soc_enum_item_to_val(e, item[1]) << e->shift_r;
3204 mask |= e->mask << e->shift_r; 3208 mask |= e->mask << e->shift_r;
3205 } 3209 }
3206 3210