Home
last modified time | relevance | path

Searched refs:kc (Results 1 – 12 of 12) 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.c631 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() argument
646 kc->tlv.p = (void *)p; in soc_tplg_create_tlv_db_scale()
651 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv() argument
663 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv()
682 struct snd_kcontrol_new kc; in soc_tplg_dbytes_create() local
713 memset(&kc, 0, sizeof(kc)); in soc_tplg_dbytes_create()
714 kc.name = be->hdr.name; in soc_tplg_dbytes_create()
715 kc.private_value = (long)sbe; in soc_tplg_dbytes_create()
716 kc.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in soc_tplg_dbytes_create()
717 kc.access = le32_to_cpu(be->hdr.access); in soc_tplg_dbytes_create()
[all …]
/sound/parisc/
Dharmony.c650 snd_harmony_mixercontrol_info(struct snd_kcontrol *kc, in snd_harmony_mixercontrol_info() argument
653 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_mixercontrol_info()
654 int left_shift = (kc->private_value) & 0xff; in snd_harmony_mixercontrol_info()
655 int right_shift = (kc->private_value >> 8) & 0xff; in snd_harmony_mixercontrol_info()
667 snd_harmony_volume_get(struct snd_kcontrol *kc, in snd_harmony_volume_get() argument
670 struct snd_harmony *h = snd_kcontrol_chip(kc); in snd_harmony_volume_get()
671 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_get()
672 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get()
673 int mask = (kc->private_value >> 16) & 0xff; in snd_harmony_volume_get()
674 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get()
[all …]
/sound/soc/codecs/
Dhdac_hdmi.c768 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_output_widget_event() argument
813 struct snd_kcontrol *kc, int event) in hdac_hdmi_cvt_output_widget_event() argument
868 struct snd_kcontrol *kc, int event) in hdac_hdmi_pin_mux_widget_event() argument
877 if (!kc) in hdac_hdmi_pin_mux_widget_event()
878 kc = w->kcontrols[0]; in hdac_hdmi_pin_mux_widget_event()
880 mux_idx = dapm_kcontrol_get_value(kc); in hdac_hdmi_pin_mux_widget_event()
967 struct snd_kcontrol_new *kc; in hdac_hdmi_create_pin_port_muxs() local
977 kc = devm_kzalloc(&hdev->dev, sizeof(*kc), GFP_KERNEL); in hdac_hdmi_create_pin_port_muxs()
978 if (!kc) in hdac_hdmi_create_pin_port_muxs()
987 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 …]
Dwcd934x.c1402 struct snd_kcontrol *kc, int event) in wcd934x_codec_enable_mclk() argument
3226 static int wcd934x_compander_get(struct snd_kcontrol *kc, in wcd934x_compander_get() argument
3229 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_get()
3230 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_get()
3238 static int wcd934x_compander_set(struct snd_kcontrol *kc, in wcd934x_compander_set() argument
3241 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_compander_set()
3243 int comp = ((struct soc_mixer_control *)kc->private_value)->shift; in wcd934x_compander_set()
3279 static int wcd934x_rx_hph_mode_get(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_get() argument
3282 struct snd_soc_component *component = snd_soc_kcontrol_component(kc); in wcd934x_rx_hph_mode_get()
3290 static int wcd934x_rx_hph_mode_put(struct snd_kcontrol *kc, in wcd934x_rx_hph_mode_put() argument
[all …]
Dwsa881x.c739 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/
Dhda_local.h636 #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) argument
637 #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) argument
639 #define get_amp_direction(kc) get_amp_direction_((kc)->private_value) argument
641 #define get_amp_index(kc) get_amp_index_((kc)->private_value) argument
642 #define get_amp_offset(kc) (((kc)->private_value >> 23) & 0x3f) argument
643 #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) argument
/sound/soc/ti/
Domap-mcbsp-st.c398 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/
Dtopology.c1027 struct snd_kcontrol_new *kc, in sof_control_load_volume() argument
1051 kc->info = snd_sof_volume_info; in sof_control_load_volume()
1066 scontrol->control_data->index = kc->index; in sof_control_load_volume()
1077 if (!kc->tlv.p || get_tlv_data(kc->tlv.p, tlv) < 0) { in sof_control_load_volume()
1124 struct snd_kcontrol_new *kc, in sof_control_load_enum() argument
1144 scontrol->control_data->index = kc->index; in sof_control_load_enum()
1155 struct snd_kcontrol_new *kc, in sof_control_load_bytes() argument
1162 struct soc_bytes_ext *sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load_bytes()
1192 scontrol->control_data->index = kc->index; in sof_control_load_bytes()
1234 struct snd_kcontrol_new *kc, in sof_control_load() argument
[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.c989 const struct snd_kcontrol_new *kc, in snd_nativeinstruments_create_mixer() argument
1004 template.name = kc[i].name; in snd_nativeinstruments_create_mixer()
1005 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer()