summaryrefslogtreecommitdiff
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-09-01 21:15:50 +0100
committerMark Brown <broonie@linaro.org>2013-09-01 21:15:50 +0100
commit59a3aed73bd61616df2f40700b7783dcdc7414fd (patch)
tree6b5d8ac6e7eab262b2489d44f7eb6f2bce31e2bf /sound/soc/soc-dapm.c
parenta3ef472de12a4438198c6637dc5094c78392394f (diff)
parent246693ba7b0b824a970f9431486ad88c18e0ce2d (diff)
Merge remote-tracking branch 'asoc/topic/dapm' into tmp
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 548b1c9e875e..c17c14c394df 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,
template.id = snd_soc_dapm_kcontrol;
template.name = kcontrol->id.name;
+ data->value = template.on_val;
+
data->widget = snd_soc_dapm_new_control(widget->dapm,
&template);
if (!data->widget) {