On 08/23/2013 10:10 AM, Stephen Warren wrote:
On 08/22/2013 08:29 PM, bardliao@realtek.com wrote:
From: Bard Liao bardliao@realtek.com
A patch description might be useful?
Tested-by: Stephen Warren swarren@nvidia.com
Oh, but remember that this patch depends on the following from Lars-Peter that hasn't yet been posted, so this patch shouldn't be applied until that one is, or it'll break things horribly:
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index d84bd0f..2ed1dcd 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) {