Lines Matching refs:ctl_template

358 	struct snd_kcontrol_new ctl_template = {  in cs35l56_hda_create_controls()  local
369 ctl_template.name = name; in cs35l56_hda_create_controls()
370 cs35l56->posture_ctl = snd_ctl_new1(&ctl_template, cs35l56); in cs35l56_hda_create_controls()
372 dev_err(cs35l56->base.dev, "Failed to add KControl: %s\n", ctl_template.name); in cs35l56_hda_create_controls()
375 ctl_template.info = cs35l56_hda_mixer_info; in cs35l56_hda_create_controls()
376 ctl_template.get = cs35l56_hda_mixer_get; in cs35l56_hda_create_controls()
377 ctl_template.put = cs35l56_hda_mixer_put; in cs35l56_hda_create_controls()
384 ctl_template.private_value = cs35l56_hda_mixer_controls[i].reg; in cs35l56_hda_create_controls()
385 cs35l56->mixer_ctl[i] = snd_ctl_new1(&ctl_template, cs35l56); in cs35l56_hda_create_controls()
388 ctl_template.name); in cs35l56_hda_create_controls()
392 ctl_template.info = cs35l56_hda_vol_info; in cs35l56_hda_create_controls()
393 ctl_template.get = cs35l56_hda_vol_get; in cs35l56_hda_create_controls()
394 ctl_template.put = cs35l56_hda_vol_put; in cs35l56_hda_create_controls()
395 ctl_template.access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ); in cs35l56_hda_create_controls()
396 ctl_template.tlv.p = cs35l56_hda_vol_tlv; in cs35l56_hda_create_controls()
398 ctl_template.name = name; in cs35l56_hda_create_controls()
399 cs35l56->volume_ctl = snd_ctl_new1(&ctl_template, cs35l56); in cs35l56_hda_create_controls()
401 dev_err(cs35l56->base.dev, "Failed to add KControl: %s\n", ctl_template.name); in cs35l56_hda_create_controls()