Home
last modified time | relevance | path

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

/sound/soc/
Dsoc-topology.c612 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() argument
627 kc->tlv.p = (void *)p; in soc_tplg_create_tlv_db_scale()
632 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv() argument
643 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv()
658 struct snd_kcontrol_new *kc) in soc_tplg_free_tlv() argument
660 kfree(kc->tlv.p); in soc_tplg_free_tlv()
668 struct snd_kcontrol_new kc; in soc_tplg_dbytes_create() local
698 memset(&kc, 0, sizeof(kc)); in soc_tplg_dbytes_create()
699 kc.name = be->hdr.name; in soc_tplg_dbytes_create()
700 kc.private_value = (long)sbe; in soc_tplg_dbytes_create()
[all …]
/sound/pci/ice1712/
Dse.c434 static int se200pci_cont_volume_info(struct snd_kcontrol *kc, in se200pci_cont_volume_info() argument
446 static int se200pci_cont_enum_info(struct snd_kcontrol *kc, in se200pci_cont_enum_info() argument
451 n = kc->private_value; in se200pci_cont_enum_info()
458 static int se200pci_cont_volume_get(struct snd_kcontrol *kc, in se200pci_cont_volume_get() argument
461 struct snd_ice1712 *ice = snd_kcontrol_chip(kc); in se200pci_cont_volume_get()
463 int n = kc->private_value; in se200pci_cont_volume_get()
469 static int se200pci_cont_boolean_get(struct snd_kcontrol *kc, in se200pci_cont_boolean_get() argument
472 struct snd_ice1712 *ice = snd_kcontrol_chip(kc); in se200pci_cont_boolean_get()
474 int n = kc->private_value; in se200pci_cont_boolean_get()
479 static int se200pci_cont_enum_get(struct snd_kcontrol *kc, in se200pci_cont_enum_get() argument
[all …]
/sound/parisc/
Dharmony.c695 snd_harmony_mixercontrol_info(struct snd_kcontrol *kc, in snd_harmony_mixercontrol_info() argument
698 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_mixercontrol_info()
699 int left_shift = (kc->private_value) & 0xff; in snd_harmony_mixercontrol_info()
700 int right_shift = (kc->private_value >> 8) & 0xff; in snd_harmony_mixercontrol_info()
712 snd_harmony_volume_get(struct snd_kcontrol *kc, in snd_harmony_volume_get() argument
715 struct snd_harmony *h = snd_kcontrol_chip(kc); in snd_harmony_volume_get()
716 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_get()
717 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get()
718 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_volume_get()
719 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get()
[all …]
/sound/pci/hda/
Dhda_local.h696 #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) argument
697 #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) argument
699 #define get_amp_direction(kc) get_amp_direction_((kc)->private_value) argument
701 #define get_amp_index(kc) get_amp_index_((kc)->private_value) argument
702 #define get_amp_offset(kc) (((kc)->private_value >> 23) & 0x3f) argument
703 #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) argument
/sound/soc/codecs/
Dhdac_hdmi.c826 struct snd_kcontrol_new *kc; in hdac_hdmi_create_pin_muxs() local
836 kc = devm_kzalloc(&edev->hdac.dev, sizeof(*kc), GFP_KERNEL); in hdac_hdmi_create_pin_muxs()
837 if (!kc) in hdac_hdmi_create_pin_muxs()
845 kc->name = devm_kstrdup(&edev->hdac.dev, kc_name, GFP_KERNEL); in hdac_hdmi_create_pin_muxs()
846 if (!kc->name) in hdac_hdmi_create_pin_muxs()
849 kc->private_value = (long)se; in hdac_hdmi_create_pin_muxs()
850 kc->iface = SNDRV_CTL_ELEM_IFACE_MIXER; in hdac_hdmi_create_pin_muxs()
851 kc->access = 0; in hdac_hdmi_create_pin_muxs()
852 kc->info = snd_soc_info_enum_double; in hdac_hdmi_create_pin_muxs()
853 kc->put = hdac_hdmi_set_pin_mux; in hdac_hdmi_create_pin_muxs()
[all …]
/sound/soc/omap/
Domap-mcbsp.c626 omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \
629 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
632 (struct soc_mixer_control *)kc->private_value; \
645 omap_mcbsp_get_st_ch##channel##_volume(struct snd_kcontrol *kc, \
648 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
/sound/usb/caiaq/
Dcontrol.c588 struct snd_kcontrol *kc; in add_controls() local
593 kc = snd_ctl_new1(&kcontrol_template, cdev); in add_controls()
594 ret = snd_ctl_add(cdev->chip.card, kc); in add_controls()
/sound/usb/
Dmixer_quirks.c856 const struct snd_kcontrol_new *kc, in snd_nativeinstruments_create_mixer() argument
871 template.name = kc[i].name; in snd_nativeinstruments_create_mixer()
872 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer()