Lines Matching refs:template
374 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local
388 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc()
389 template.reg = mc->reg; in dapm_kcontrol_data_alloc()
390 template.mask = (1 << fls(mc->max)) - 1; in dapm_kcontrol_data_alloc()
391 template.shift = mc->shift; in dapm_kcontrol_data_alloc()
393 template.off_val = mc->max; in dapm_kcontrol_data_alloc()
395 template.off_val = 0; in dapm_kcontrol_data_alloc()
396 template.on_val = template.off_val; in dapm_kcontrol_data_alloc()
397 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc()
398 template.name = name; in dapm_kcontrol_data_alloc()
400 data->value = template.on_val; in dapm_kcontrol_data_alloc()
404 &template); in dapm_kcontrol_data_alloc()
417 struct snd_soc_dapm_widget template; in dapm_kcontrol_data_alloc() local
426 memset(&template, 0, sizeof(template)); in dapm_kcontrol_data_alloc()
427 template.reg = e->reg; in dapm_kcontrol_data_alloc()
428 template.mask = e->mask; in dapm_kcontrol_data_alloc()
429 template.shift = e->shift_l; in dapm_kcontrol_data_alloc()
430 template.off_val = snd_soc_enum_item_to_val(e, 0); in dapm_kcontrol_data_alloc()
431 template.on_val = template.off_val; in dapm_kcontrol_data_alloc()
432 template.id = snd_soc_dapm_kcontrol; in dapm_kcontrol_data_alloc()
433 template.name = name; in dapm_kcontrol_data_alloc()
435 data->value = template.on_val; in dapm_kcontrol_data_alloc()
438 widget->dapm, &template); in dapm_kcontrol_data_alloc()
4158 struct snd_soc_dapm_widget template; in snd_soc_dapm_new_dai() local
4192 memset(&template, 0, sizeof(template)); in snd_soc_dapm_new_dai()
4193 template.reg = SND_SOC_NOPM; in snd_soc_dapm_new_dai()
4194 template.id = snd_soc_dapm_dai_link; in snd_soc_dapm_new_dai()
4195 template.name = link_name; in snd_soc_dapm_new_dai()
4196 template.event = snd_soc_dai_link_event; in snd_soc_dapm_new_dai()
4197 template.event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU | in snd_soc_dapm_new_dai()
4199 template.kcontrol_news = kcontrol_news; in snd_soc_dapm_new_dai()
4200 template.num_kcontrols = num_kcontrols; in snd_soc_dapm_new_dai()
4204 w = snd_soc_dapm_new_control_unlocked(&card->dapm, &template); in snd_soc_dapm_new_dai()
4215 devm_kfree(card->dev, (void *)template.kcontrol_news); in snd_soc_dapm_new_dai()
4236 struct snd_soc_dapm_widget template; in snd_soc_dapm_new_dai_widgets() local
4241 memset(&template, 0, sizeof(template)); in snd_soc_dapm_new_dai_widgets()
4242 template.reg = SND_SOC_NOPM; in snd_soc_dapm_new_dai_widgets()
4245 template.id = snd_soc_dapm_dai_in; in snd_soc_dapm_new_dai_widgets()
4246 template.name = dai->driver->playback.stream_name; in snd_soc_dapm_new_dai_widgets()
4247 template.sname = dai->driver->playback.stream_name; in snd_soc_dapm_new_dai_widgets()
4250 template.name); in snd_soc_dapm_new_dai_widgets()
4252 w = snd_soc_dapm_new_control_unlocked(dapm, &template); in snd_soc_dapm_new_dai_widgets()
4261 template.id = snd_soc_dapm_dai_out; in snd_soc_dapm_new_dai_widgets()
4262 template.name = dai->driver->capture.stream_name; in snd_soc_dapm_new_dai_widgets()
4263 template.sname = dai->driver->capture.stream_name; in snd_soc_dapm_new_dai_widgets()
4266 template.name); in snd_soc_dapm_new_dai_widgets()
4268 w = snd_soc_dapm_new_control_unlocked(dapm, &template); in snd_soc_dapm_new_dai_widgets()