Lines Matching full:ctl
41 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_info() local
42 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_info()
52 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_put() local
53 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_put()
66 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_get() local
67 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_coeff_get()
103 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_free_kcontrol() local
104 struct cs_dsp_coeff_ctl *cs_ctl = ctl->cs_ctl; in hda_cs_dsp_free_kcontrol()
108 kfree(ctl); in hda_cs_dsp_free_kcontrol()
117 struct hda_cs_dsp_coeff_ctl *ctl __free(kfree) = NULL; in hda_cs_dsp_add_kcontrol()
126 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in hda_cs_dsp_add_kcontrol()
127 if (!ctl) in hda_cs_dsp_add_kcontrol()
130 ctl->cs_ctl = cs_ctl; in hda_cs_dsp_add_kcontrol()
131 ctl->card = info->card; in hda_cs_dsp_add_kcontrol()
140 kctl = snd_ctl_new1(&kcontrol, (void *)ctl); in hda_cs_dsp_add_kcontrol()
145 ctl->kctl = kctl; in hda_cs_dsp_add_kcontrol()
147 /* snd_ctl_add() calls our private_free on error, which will kfree(ctl) */ in hda_cs_dsp_add_kcontrol()
148 cs_ctl->priv = no_free_ptr(ctl); in hda_cs_dsp_add_kcontrol()
217 struct hda_cs_dsp_coeff_ctl *ctl = cs_ctl->priv; in hda_cs_dsp_control_remove() local
219 /* ctl and kctl may already have been removed by ALSA private_free */ in hda_cs_dsp_control_remove()
220 if (ctl && ctl->kctl) in hda_cs_dsp_control_remove()
221 snd_ctl_remove(ctl->card, ctl->kctl); in hda_cs_dsp_control_remove()
229 struct hda_cs_dsp_coeff_ctl *ctl; in hda_cs_dsp_write_ctl() local
242 ctl = cs_ctl->priv; in hda_cs_dsp_write_ctl()
244 snd_ctl_notify(ctl->card, SNDRV_CTL_EVENT_MASK_VALUE, &ctl->kctl->id); in hda_cs_dsp_write_ctl()