Home
last modified time | relevance | path

Searched refs:kc (Results 1 – 15 of 15) 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.c633 struct snd_kcontrol_new *kc, struct snd_soc_tplg_tlv_dbscale *scale) in soc_tplg_create_tlv_db_scale() argument
648 kc->tlv.p = (void *)p; in soc_tplg_create_tlv_db_scale()
653 struct snd_kcontrol_new *kc, struct snd_soc_tplg_ctl_hdr *tc) in soc_tplg_create_tlv() argument
665 return soc_tplg_create_tlv_db_scale(tplg, kc, in soc_tplg_create_tlv()
683 struct snd_kcontrol_new kc; in soc_tplg_dbytes_create() local
709 memset(&kc, 0, sizeof(kc)); in soc_tplg_dbytes_create()
710 kc.name = be->hdr.name; in soc_tplg_dbytes_create()
711 kc.private_value = (long)sbe; in soc_tplg_dbytes_create()
712 kc.iface = SNDRV_CTL_ELEM_IFACE_MIXER; in soc_tplg_dbytes_create()
713 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.c1260 static int slim_rx_mux_get(struct snd_kcontrol *kc, in slim_rx_mux_get() argument
1263 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc); in slim_rx_mux_get()
1272 static int slim_rx_mux_put(struct snd_kcontrol *kc, in slim_rx_mux_put() argument
1275 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc); in slim_rx_mux_put()
1277 struct soc_enum *e = (struct soc_enum *)kc->private_value; in slim_rx_mux_put()
1314 snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value[port_id], in slim_rx_mux_put()
1322 static int slim_tx_mixer_get(struct snd_kcontrol *kc, in slim_tx_mixer_get() argument
1326 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kc); in slim_tx_mixer_get()
1328 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kc); in slim_tx_mixer_get()
1330 (struct soc_mixer_control *)kc->private_value; in slim_tx_mixer_get()
[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.c741 static int wsa881x_put_pa_gain(struct snd_kcontrol *kc, in wsa881x_put_pa_gain() argument
744 struct snd_soc_component *comp = snd_soc_kcontrol_component(kc); in wsa881x_put_pa_gain()
746 (struct soc_mixer_control *)kc->private_value; in wsa881x_put_pa_gain()
/sound/pci/hda/
Dhda_local.h634 #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) argument
635 #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) argument
637 #define get_amp_direction(kc) get_amp_direction_((kc)->private_value) argument
639 #define get_amp_index(kc) get_amp_index_((kc)->private_value) argument
640 #define get_amp_offset(kc) (((kc)->private_value >> 23) & 0x3f) argument
641 #define get_amp_min_mute(kc) (((kc)->private_value >> 29) & 0x1) argument
/sound/soc/sof/
Dtopology.c767 struct snd_kcontrol_new *kc, in sof_control_load_volume() argument
788 kc->info = snd_sof_volume_info; in sof_control_load_volume()
800 if (!kc->tlv.p || get_tlv_data(kc->tlv.p, tlv) < 0) { in sof_control_load_volume()
828 kc->access &= ~SNDRV_CTL_ELEM_ACCESS_LED_MASK; in sof_control_load_volume()
829 kc->access |= mask; in sof_control_load_volume()
847 struct snd_kcontrol_new *kc, in sof_control_load_enum() argument
869 struct snd_kcontrol_new *kc, in sof_control_load_bytes() argument
875 struct soc_bytes_ext *sbe = (struct soc_bytes_ext *)kc->private_value; in sof_control_load_bytes()
897 struct snd_kcontrol_new *kc, in sof_control_load() argument
922 scontrol->access = kc->access; in sof_control_load()
[all …]
Dipc3-control.c534 struct snd_kcontrol *kc = NULL; in sof_ipc3_control_update() local
581 kc = widget->kcontrols[i]; in sof_ipc3_control_update()
586 if (!kc) in sof_ipc3_control_update()
592 sm = (struct soc_mixer_control *)kc->private_value; in sof_ipc3_control_update()
596 be = (struct soc_bytes_ext *)kc->private_value; in sof_ipc3_control_update()
600 se = (struct soc_enum *)kc->private_value; in sof_ipc3_control_update()
637 snd_ctl_notify_one(swidget->scomp->card->snd_card, SNDRV_CTL_EVENT_MASK_VALUE, kc, 0); in sof_ipc3_control_update()
Dipc3-topology.c765 const struct snd_kcontrol_new *kc; in sof_get_control_data() local
775 kc = &widget->kcontrol_news[i]; in sof_get_control_data()
779 sm = (struct soc_mixer_control *)kc->private_value; in sof_get_control_data()
783 sbe = (struct soc_bytes_ext *)kc->private_value; in sof_get_control_data()
787 se = (struct soc_enum *)kc->private_value; in sof_get_control_data()
/sound/soc/ti/
Domap-mcbsp-st.c388 omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \
391 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
394 (struct soc_mixer_control *)kc->private_value; \
407 omap_mcbsp_get_st_ch##channel##_volume(struct snd_kcontrol *kc, \
410 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kc); \
/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/soc/qcom/qdsp6/
Dtopology.c983 struct snd_kcontrol_new *kc, in audioreach_control_load_mix() argument
1013 struct snd_kcontrol_new *kc, in audioreach_control_load() argument
1029 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
1031 ret = audioreach_control_load_mix(scomp, scontrol, kc, hdr); in audioreach_control_load()
1034 sm = (struct soc_mixer_control *)kc->private_value; in audioreach_control_load()
/sound/usb/
Dmixer_quirks.c990 const struct snd_kcontrol_new *kc, in snd_nativeinstruments_create_mixer() argument
1005 template.name = kc[i].name; in snd_nativeinstruments_create_mixer()
1006 template.private_value = kc[i].private_value; in snd_nativeinstruments_create_mixer()