/sound/pci/ice1712/ |
D | se.c | 420 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/ |
D | soc-topology.c | 699 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() argument 714 kc->tlv.p = (void *)p; in soc_tplg_create_tlv_db_scale() 719 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv() argument 731 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv() 746 struct snd_kcontrol_new *kc) in soc_tplg_free_tlv() argument 748 kfree(kc->tlv.p); in soc_tplg_free_tlv() 756 struct snd_kcontrol_new kc; in soc_tplg_dbytes_create() local 787 memset(&kc, 0, sizeof(kc)); in soc_tplg_dbytes_create() 788 kc.name = be->hdr.name; in soc_tplg_dbytes_create() 789 kc.private_value = (long)sbe; in soc_tplg_dbytes_create() [all …]
|
/sound/parisc/ |
D | harmony.c | 664 snd_harmony_mixercontrol_info(struct snd_kcontrol *kc, in snd_harmony_mixercontrol_info() argument 667 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_mixercontrol_info() 668 int left_shift = (kc->private_value) & 0xff; in snd_harmony_mixercontrol_info() 669 int right_shift = (kc->private_value >> 8) & 0xff; in snd_harmony_mixercontrol_info() 681 snd_harmony_volume_get(struct snd_kcontrol *kc, in snd_harmony_volume_get() argument 684 struct snd_harmony *h = snd_kcontrol_chip(kc); in snd_harmony_volume_get() 685 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_get() 686 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get() 687 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_volume_get() 688 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get() [all …]
|
/sound/soc/codecs/ |
D | hdac_hdmi.c | 763 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_output_widget_event() argument 808 struct snd_kcontrol *kc, int event) in hdac_hdmi_cvt_output_widget_event() argument 863 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_mux_widget_event() argument 872 if (!kc) in hdac_hdmi_pin_mux_widget_event() 873 kc = w->kcontrols[0]; in hdac_hdmi_pin_mux_widget_event() 875 mux_idx = dapm_kcontrol_get_value(kc); in hdac_hdmi_pin_mux_widget_event() 962 struct snd_kcontrol_new *kc; in hdac_hdmi_create_pin_port_muxs() local 972 kc = devm_kzalloc(&hdev->dev, sizeof(*kc), GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs() 973 if (!kc) in hdac_hdmi_create_pin_port_muxs() 982 kc->name = devm_kstrdup(&hdev->dev, kc_name, GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs() [all …]
|
D | wcd9335.c | 1269 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 …]
|
D | wcd934x.c | 1316 struct snd_kcontrol *kc, int event) in wcd934x_codec_enable_mclk() argument 2428 static int wcd934x_compander_get(struct snd_kcontrol *kc, in wcd934x_compander_get() argument 2431 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_get() 2432 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_get() 2440 static int wcd934x_compander_set(struct snd_kcontrol *kc, in wcd934x_compander_set() argument 2443 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_set() 2445 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_set() 2481 static int wcd934x_rx_hph_mode_get(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_get() argument 2484 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_rx_hph_mode_get() 2492 static int wcd934x_rx_hph_mode_put(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_put() argument [all …]
|
D | wsa881x.c | 739 static int wsa881x_put_pa_gain(struct snd_kcontrol *kc, in wsa881x_put_pa_gain() argument 742 struct snd_soc_component *comp = snd_soc_kcontrol_component(kc); in wsa881x_put_pa_gain() 744 (struct soc_mixer_control *)kc->private_value; in wsa881x_put_pa_gain()
|
/sound/pci/hda/ |
D | hda_local.h | 632 #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) argument 633 #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) argument 635 #define get_amp_direction(kc) get_amp_direction_((kc)->private_value) argument 637 #define get_amp_index(kc) get_amp_index_((kc)->private_value) argument 638 #define get_amp_offset(kc) (((kc)->private_value >> 23) & 0x3f) argument 639 #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) argument
|
/sound/soc/ti/ |
D | omap-mcbsp-st.c | 398 omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \ 401 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \ 404 (struct soc_mixer_control *)kc->private_value; \ 417 omap_mcbsp_get_st_ch##channel##_volume(struct snd_kcontrol *kc, \ 420 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
|
/sound/soc/sof/ |
D | topology.c | 1027 struct snd_kcontrol_new *kc, in sof_control_load_volume() argument 1067 if (get_tlv_data(kc->tlv.p, tlv) < 0) { in sof_control_load_volume() 1114 struct snd_kcontrol_new *kc, in sof_control_load_enum() argument 1145 struct snd_kcontrol_new *kc, in sof_control_load_bytes() argument 1152 struct soc_bytes_ext *sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load_bytes() 1223 struct snd_kcontrol_new *kc, in sof_control_load() argument 1247 sm = (struct soc_mixer_control *)kc->private_value; in sof_control_load() 1249 ret = sof_control_load_volume(scomp, scontrol, kc, hdr); in sof_control_load() 1252 sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load() 1254 ret = sof_control_load_bytes(scomp, scontrol, kc, hdr); in sof_control_load() [all …]
|
/sound/usb/caiaq/ |
D | control.c | 575 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/ |
D | mixer_quirks.c | 848 const struct snd_kcontrol_new *kc, in snd_nativeinstruments_create_mixer() argument 863 template.name = kc[i].name; in snd_nativeinstruments_create_mixer() 864 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer()
|