Lines Matching refs:kc

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