Lines Matching refs:kc
771 struct snd_kcontrol *kc, int event)
816 struct snd_kcontrol *kc, int event)
871 struct snd_kcontrol *kc, int event)
880 if (!kc)
881 kc = w->kcontrols[0];
883 mux_idx = dapm_kcontrol_get_value(kc);
970 struct snd_kcontrol_new *kc;
980 kc = devm_kzalloc(&hdev->dev, sizeof(*kc), GFP_KERNEL);
981 if (!kc)
990 kc->name = devm_kstrdup(&hdev->dev, kc_name, GFP_KERNEL);
991 if (!kc->name)
994 kc->private_value = (long)se;
995 kc->iface = SNDRV_CTL_ELEM_IFACE_MIXER;
996 kc->access = 0;
997 kc->info = snd_soc_info_enum_double;
998 kc->put = hdac_hdmi_set_pin_port_mux;
999 kc->get = snd_soc_dapm_get_enum_double;
1026 snd_soc_dapm_mux, port, widget_name, NULL, kc, 1,
1037 const struct snd_kcontrol_new *kc;
1043 kc = widgets[mux_index].kcontrol_news;
1044 se = (struct soc_enum *)kc->private_value;
1776 struct snd_kcontrol_new *kc;
1782 kc = devm_kcalloc(component->dev, hdmi->num_ports,
1783 sizeof(*kc), GFP_KERNEL);
1785 if (!kc)
1796 kc[i].name = devm_kasprintf(component->dev, GFP_KERNEL,
1798 if (!kc[i].name)
1801 kc[i].private_value = (unsigned long)name;
1802 kc[i].iface = SNDRV_CTL_ELEM_IFACE_MIXER;
1803 kc[i].access = 0;
1804 kc[i].info = snd_soc_dapm_info_pin_switch;
1805 kc[i].put = snd_soc_dapm_put_pin_switch;
1806 kc[i].get = snd_soc_dapm_get_pin_switch;
1811 return snd_soc_add_card_controls(card, kc, i);