Lines Matching defs:kcontrol
599 int (*xget)(struct snd_kcontrol *kcontrol,
601 int (*xput)(struct snd_kcontrol *kcontrol,
784 int wm_adsp_fw_get(struct snd_kcontrol *kcontrol,
787 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol);
788 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
797 int wm_adsp_fw_put(struct snd_kcontrol *kcontrol,
800 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol);
801 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
1234 static int wm_coeff_get_acked(struct snd_kcontrol *kcontrol,
1288 struct snd_kcontrol_new *kcontrol;
1294 kcontrol = kzalloc(sizeof(*kcontrol), GFP_KERNEL);
1295 if (!kcontrol)
1298 kcontrol->name = ctl->name;
1299 kcontrol->info = wm_coeff_info;
1300 kcontrol->iface = SNDRV_CTL_ELEM_IFACE_MIXER;
1301 kcontrol->tlv.c = snd_soc_bytes_tlv_callback;
1302 kcontrol->private_value = (unsigned long)&ctl->bytes_ext;
1303 kcontrol->access = wmfw_convert_flags(ctl->flags, ctl->len);
1307 kcontrol->get = wm_coeff_get_acked;
1308 kcontrol->put = wm_coeff_put_acked;
1311 if (kcontrol->access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) {
1316 kcontrol->get = wm_coeff_get;
1317 kcontrol->put = wm_coeff_put;
1322 ret = snd_soc_add_component_controls(dsp->component, kcontrol, 1);
1326 kfree(kcontrol);
1331 kfree(kcontrol);
2056 struct snd_kcontrol *kcontrol;
2081 kcontrol = snd_soc_card_get_kcontrol(dsp->component->card, ctl_name);
2082 if (!kcontrol) {
2083 adsp_err(dsp, "Can't find kcontrol %s\n", ctl_name);
2088 SNDRV_CTL_EVENT_MASK_VALUE, &kcontrol->id);
2812 struct snd_kcontrol *kcontrol,
3129 int wm_adsp2_preloader_get(struct snd_kcontrol *kcontrol,
3132 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol);
3135 (struct soc_mixer_control *)kcontrol->private_value;
3144 int wm_adsp2_preloader_put(struct snd_kcontrol *kcontrol,
3147 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol);
3151 (struct soc_mixer_control *)kcontrol->private_value;
3185 struct snd_kcontrol *kcontrol, int event)
3240 struct snd_kcontrol *kcontrol, int event)