diff options
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 7e9afbc49ef2..13fcb61a922f 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -229,6 +229,8 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget, | |||
229 | template.id = snd_soc_dapm_kcontrol; | 229 | template.id = snd_soc_dapm_kcontrol; |
230 | template.name = kcontrol->id.name; | 230 | template.name = kcontrol->id.name; |
231 | 231 | ||
232 | data->value = template.on_val; | ||
233 | |||
232 | data->widget = snd_soc_dapm_new_control(widget->dapm, | 234 | data->widget = snd_soc_dapm_new_control(widget->dapm, |
233 | &template); | 235 | &template); |
234 | if (!data->widget) { | 236 | if (!data->widget) { |