Lines Matching refs:kcontrol
228 int (*xget)(struct snd_kcontrol *kcontrol,
230 int (*xput)(struct snd_kcontrol *kcontrol,
232 int (*xinfo)(struct snd_kcontrol *kcontrol,
248 struct snd_kcontrol *kcontrol; member
421 static int wm_adsp_fw_get(struct snd_kcontrol *kcontrol, in wm_adsp_fw_get() argument
424 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm_adsp_fw_get()
425 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in wm_adsp_fw_get()
433 static int wm_adsp_fw_put(struct snd_kcontrol *kcontrol, in wm_adsp_fw_put() argument
436 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm_adsp_fw_put()
437 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in wm_adsp_fw_put()
526 static int wm_coeff_info(struct snd_kcontrol *kcontrol, in wm_coeff_info() argument
529 struct wm_coeff_ctl *ctl = (struct wm_coeff_ctl *)kcontrol->private_value; in wm_coeff_info()
575 static int wm_coeff_put(struct snd_kcontrol *kcontrol, in wm_coeff_put() argument
578 struct wm_coeff_ctl *ctl = (struct wm_coeff_ctl *)kcontrol->private_value; in wm_coeff_put()
629 static int wm_coeff_get(struct snd_kcontrol *kcontrol, in wm_coeff_get() argument
632 struct wm_coeff_ctl *ctl = (struct wm_coeff_ctl *)kcontrol->private_value; in wm_coeff_get()
655 struct snd_kcontrol_new *kcontrol; in wmfw_add_ctl() local
661 kcontrol = kzalloc(sizeof(*kcontrol), GFP_KERNEL); in wmfw_add_ctl()
662 if (!kcontrol) in wmfw_add_ctl()
664 kcontrol->iface = SNDRV_CTL_ELEM_IFACE_MIXER; in wmfw_add_ctl()
666 kcontrol->name = ctl->name; in wmfw_add_ctl()
667 kcontrol->info = wm_coeff_info; in wmfw_add_ctl()
668 kcontrol->get = wm_coeff_get; in wmfw_add_ctl()
669 kcontrol->put = wm_coeff_put; in wmfw_add_ctl()
670 kcontrol->private_value = (unsigned long)ctl; in wmfw_add_ctl()
674 kcontrol->access |= SNDRV_CTL_ELEM_ACCESS_WRITE; in wmfw_add_ctl()
676 kcontrol->access |= SNDRV_CTL_ELEM_ACCESS_READ; in wmfw_add_ctl()
678 kcontrol->access |= SNDRV_CTL_ELEM_ACCESS_VOLATILE; in wmfw_add_ctl()
682 kcontrol, 1); in wmfw_add_ctl()
686 kfree(kcontrol); in wmfw_add_ctl()
688 ctl->kcontrol = snd_soc_card_get_kcontrol(dsp->card, in wmfw_add_ctl()
694 kfree(kcontrol); in wmfw_add_ctl()
1789 struct snd_kcontrol *kcontrol, in wm_adsp1_event() argument
1993 struct snd_kcontrol *kcontrol, int event) in wm_adsp2_early_event() argument
2014 struct snd_kcontrol *kcontrol, int event) in wm_adsp2_event() argument