Home
last modified time | relevance | path

Searched refs:kc (Results 1 – 10 of 10) sorted by relevance

/sound/pci/ice1712/
Dse.c420 static int se200pci_cont_volume_info(struct snd_kcontrol *kc, in se200pci_cont_volume_info() argument
432 static int se200pci_cont_enum_info(struct snd_kcontrol *kc, in se200pci_cont_enum_info() argument
437 n = kc->private_value; in se200pci_cont_enum_info()
444 static int se200pci_cont_volume_get(struct snd_kcontrol *kc, in se200pci_cont_volume_get() argument
447 struct snd_ice1712 *ice = snd_kcontrol_chip(kc); in se200pci_cont_volume_get()
449 int n = kc->private_value; in se200pci_cont_volume_get()
455 static int se200pci_cont_boolean_get(struct snd_kcontrol *kc, in se200pci_cont_boolean_get() argument
458 struct snd_ice1712 *ice = snd_kcontrol_chip(kc); in se200pci_cont_boolean_get()
460 int n = kc->private_value; in se200pci_cont_boolean_get()
465 static int se200pci_cont_enum_get(struct snd_kcontrol *kc, in se200pci_cont_enum_get() argument
[all …]
/sound/soc/
Dsoc-topology.c696 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() argument
711 kc->tlv.p = (void *)p; in soc_tplg_create_tlv_db_scale()
716 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv() argument
728 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv()
743 struct snd_kcontrol_new *kc) in soc_tplg_free_tlv() argument
745 kfree(kc->tlv.p); in soc_tplg_free_tlv()
753 struct snd_kcontrol_new kc; in soc_tplg_dbytes_create() local
783 memset(&kc, 0, sizeof(kc)); in soc_tplg_dbytes_create()
784 kc.name = be->hdr.name; in soc_tplg_dbytes_create()
785 kc.private_value = (long)sbe; in soc_tplg_dbytes_create()
[all …]
/sound/parisc/
Dharmony.c676 snd_harmony_mixercontrol_info(struct snd_kcontrol *kc, in snd_harmony_mixercontrol_info() argument
679 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_mixercontrol_info()
680 int left_shift = (kc->private_value) & 0xff; in snd_harmony_mixercontrol_info()
681 int right_shift = (kc->private_value >> 8) & 0xff; in snd_harmony_mixercontrol_info()
693 snd_harmony_volume_get(struct snd_kcontrol *kc, in snd_harmony_volume_get() argument
696 struct snd_harmony *h = snd_kcontrol_chip(kc); in snd_harmony_volume_get()
697 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_get()
698 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get()
699 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_volume_get()
700 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get()
[all …]
/sound/soc/codecs/
Dhdac_hdmi.c769 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_output_widget_event() argument
814 struct snd_kcontrol *kc, int event) in hdac_hdmi_cvt_output_widget_event() argument
869 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_mux_widget_event() argument
878 if (!kc) in hdac_hdmi_pin_mux_widget_event()
879 kc = w->kcontrols[0]; in hdac_hdmi_pin_mux_widget_event()
881 mux_idx = dapm_kcontrol_get_value(kc); in hdac_hdmi_pin_mux_widget_event()
968 struct snd_kcontrol_new *kc; in hdac_hdmi_create_pin_port_muxs() local
978 kc = devm_kzalloc(&hdev->dev, sizeof(*kc), GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
979 if (!kc) in hdac_hdmi_create_pin_port_muxs()
988 kc->name = devm_kstrdup(&hdev->dev, kc_name, GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
[all …]
Dwcd9335.c1269 static int slim_rx_mux_get(struct snd_kcontrol *kc, in slim_rx_mux_get() argument
1272 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kc); in slim_rx_mux_get()
1280 static int slim_rx_mux_put(struct snd_kcontrol *kc, in slim_rx_mux_put() argument
1283 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc); in slim_rx_mux_put()
1285 struct soc_enum *e = (struct soc_enum *)kc->private_value; in slim_rx_mux_put()
1316 snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value, in slim_rx_mux_put()
1324 static int slim_tx_mixer_get(struct snd_kcontrol *kc, in slim_tx_mixer_get() argument
1328 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kc); in slim_tx_mixer_get()
1336 static int slim_tx_mixer_put(struct snd_kcontrol *kc, in slim_tx_mixer_put() argument
1340 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kc); in slim_tx_mixer_put()
[all …]
/sound/pci/hda/
Dhda_local.h631 #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) argument
632 #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) argument
634 #define get_amp_direction(kc) get_amp_direction_((kc)->private_value) argument
636 #define get_amp_index(kc) get_amp_index_((kc)->private_value) argument
637 #define get_amp_offset(kc) (((kc)->private_value >> 23) & 0x3f) argument
638 #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) argument
/sound/soc/ti/
Domap-mcbsp-st.c401 omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \
404 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
407 (struct soc_mixer_control *)kc->private_value; \
420 omap_mcbsp_get_st_ch##channel##_volume(struct snd_kcontrol *kc, \
423 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
/sound/soc/sof/
Dtopology.c441 struct snd_kcontrol_new *kc, in sof_control_load_volume() argument
477 if (get_tlv_data(kc->tlv.p, tlv) < 0) { in sof_control_load_volume()
505 struct snd_kcontrol_new *kc, in sof_control_load_enum() argument
536 struct snd_kcontrol_new *kc, in sof_control_load_bytes() argument
543 struct soc_bytes_ext *sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load_bytes()
1045 struct snd_kcontrol_new *kc, in sof_control_load() argument
1069 sm = (struct soc_mixer_control *)kc->private_value; in sof_control_load()
1071 ret = sof_control_load_volume(scomp, scontrol, kc, hdr); in sof_control_load()
1074 sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load()
1076 ret = sof_control_load_bytes(scomp, scontrol, kc, hdr); in sof_control_load()
[all …]
/sound/usb/caiaq/
Dcontrol.c575 struct snd_kcontrol *kc; in add_controls() local
580 kc = snd_ctl_new1(&kcontrol_template, cdev); in add_controls()
581 ret = snd_ctl_add(cdev->chip.card, kc); in add_controls()
/sound/usb/
Dmixer_quirks.c847 const struct snd_kcontrol_new *kc, in snd_nativeinstruments_create_mixer() argument
862 template.name = kc[i].name; in snd_nativeinstruments_create_mixer()
863 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer()