Home
last modified time | relevance | path

Searched refs:kctl (Results 1 – 81 of 81) sorted by relevance

/linux-4.1.27/sound/core/
Dcontrol.c207 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument
219 *kctl = kzalloc(size, GFP_KERNEL); in snd_ctl_new()
220 if (!*kctl) in snd_ctl_new()
224 (*kctl)->vd[idx].access = access; in snd_ctl_new()
225 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
227 (*kctl)->count = count; in snd_ctl_new()
246 struct snd_kcontrol *kctl; in snd_ctl_new1() local
268 err = snd_ctl_new(&kctl, count, access, NULL); in snd_ctl_new1()
273 kctl->id.iface = ncontrol->iface; in snd_ctl_new1()
274 kctl->id.device = ncontrol->device; in snd_ctl_new1()
[all …]
Dctljack.c37 struct snd_kcontrol *kctl; in snd_kctl_jack_new() local
38 kctl = snd_ctl_new1(&jack_detect_kctl, private_data); in snd_kctl_jack_new()
39 if (!kctl) in snd_kctl_jack_new()
41 snprintf(kctl->id.name, sizeof(kctl->id.name), "%s Jack", name); in snd_kctl_jack_new()
42 kctl->id.index = idx; in snd_kctl_jack_new()
43 kctl->private_value = 0; in snd_kctl_jack_new()
44 return kctl; in snd_kctl_jack_new()
49 struct snd_kcontrol *kctl, bool status) in snd_kctl_jack_report() argument
51 if (kctl->private_value == status) in snd_kctl_jack_report()
53 kctl->private_value = status; in snd_kctl_jack_report()
[all …]
Dvmaster.c57 struct snd_kcontrol *kctl; /* original kcontrol pointer */ member
263 srec->kctl = slave; in _snd_ctl_add_slave()
363 struct snd_kcontrol *sctl = slave->kctl; in master_free()
396 struct snd_kcontrol *kctl; in snd_ctl_make_virtual_master() local
409 kctl = snd_ctl_new1(&knew, master); in snd_ctl_make_virtual_master()
410 if (!kctl) { in snd_ctl_make_virtual_master()
415 kctl->info = master_info; in snd_ctl_make_virtual_master()
416 kctl->get = master_get; in snd_ctl_make_virtual_master()
417 kctl->put = master_put; in snd_ctl_make_virtual_master()
418 kctl->private_free = master_free; in snd_ctl_make_virtual_master()
[all …]
Dcontrol_compat.c191 struct snd_kcontrol *kctl; in get_ctl_type() local
196 kctl = snd_ctl_find_id(card, id); in get_ctl_type()
197 if (! kctl) { in get_ctl_type()
207 err = kctl->info(kctl, info); in get_ctl_type()
Dpcm_lib.c2614 info->kctl = snd_ctl_new1(&knew, info); in snd_pcm_add_chmap_ctls()
2615 if (!info->kctl) { in snd_pcm_add_chmap_ctls()
2619 info->kctl->private_free = pcm_chmap_ctl_private_free; in snd_pcm_add_chmap_ctls()
2620 err = snd_ctl_add(pcm->card, info->kctl); in snd_pcm_add_chmap_ctls()
2623 pcm->streams[stream].chmap_kctl = info->kctl; in snd_pcm_add_chmap_ctls()
/linux-4.1.27/sound/usb/
Dmixer.c577 struct snd_kcontrol *kctl) in snd_usb_mixer_add_control() argument
582 while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) in snd_usb_mixer_add_control()
583 kctl->id.index++; in snd_usb_mixer_add_control()
584 if ((err = snd_ctl_add(mixer->chip->card, kctl)) < 0) { in snd_usb_mixer_add_control()
589 list->kctl = kctl; in snd_usb_mixer_add_control()
827 void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl) in snd_usb_mixer_elem_free() argument
829 kfree(kctl->private_data); in snd_usb_mixer_elem_free()
830 kctl->private_data = NULL; in snd_usb_mixer_elem_free()
839 struct snd_kcontrol *kctl) in volume_control_quirks() argument
845 if (strcmp(kctl->id.name, "Effect Duration") == 0) { in volume_control_quirks()
[all …]
Dmixer_scarlett.c232 static int scarlett_ctl_switch_info(struct snd_kcontrol *kctl, in scarlett_ctl_switch_info() argument
235 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_info()
244 static int scarlett_ctl_switch_get(struct snd_kcontrol *kctl, in scarlett_ctl_switch_get() argument
247 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_get()
262 static int scarlett_ctl_switch_put(struct snd_kcontrol *kctl, in scarlett_ctl_switch_put() argument
265 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_switch_put()
301 static int scarlett_ctl_info(struct snd_kcontrol *kctl, in scarlett_ctl_info() argument
304 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_info()
309 uinfo->value.integer.max = (int)kctl->private_value + in scarlett_ctl_info()
315 static int scarlett_ctl_get(struct snd_kcontrol *kctl, in scarlett_ctl_get() argument
[all …]
Dmixer_quirks.c74 struct snd_kcontrol *kctl; in snd_create_std_mono_ctl_offset() local
96 kctl = snd_ctl_new1(snd_usb_feature_unit_ctl, cval); in snd_create_std_mono_ctl_offset()
97 if (!kctl) { in snd_create_std_mono_ctl_offset()
103 snprintf(kctl->id.name, sizeof(kctl->id.name), name); in snd_create_std_mono_ctl_offset()
104 kctl->private_free = snd_usb_mixer_elem_free; in snd_create_std_mono_ctl_offset()
108 kctl->tlv.c = tlv_callback; in snd_create_std_mono_ctl_offset()
109 kctl->vd[0].access |= in snd_create_std_mono_ctl_offset()
114 return snd_usb_mixer_add_control(&cval->head, kctl); in snd_create_std_mono_ctl_offset()
155 struct snd_kcontrol *kctl; in add_single_ctl_with_resume() local
165 kctl = snd_ctl_new1(knew, list); in add_single_ctl_with_resume()
[all …]
Dmixer.h47 struct snd_kcontrol *kctl; member
80 struct snd_kcontrol *kctl);
100 extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
Dstream.c207 struct snd_kcontrol *kctl; in add_chmap() local
223 kctl = chmap->kctl; in add_chmap()
224 kctl->info = usb_chmap_ctl_info; in add_chmap()
225 kctl->get = usb_chmap_ctl_get; in add_chmap()
226 kctl->tlv.c = usb_chmap_ctl_tlv; in add_chmap()
Dmixer_quirks.h14 struct snd_kcontrol *kctl);
/linux-4.1.27/include/sound/
Dcontrol.h148 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffnum() argument
150 return id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
153 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffidx() argument
155 return id->index - kctl->id.index; in snd_ctl_get_ioffidx()
158 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioff() argument
161 return snd_ctl_get_ioffnum(kctl, id); in snd_ctl_get_ioff()
163 return snd_ctl_get_ioffidx(kctl, id); in snd_ctl_get_ioff()
245 int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl,
248 void snd_ctl_sync_vmaster(struct snd_kcontrol *kctl, bool hook_only);
249 #define snd_ctl_sync_vmaster_hook(kctl) snd_ctl_sync_vmaster(kctl, true) argument
[all …]
Dpcm.h1342 struct snd_kcontrol *kctl; member
/linux-4.1.27/sound/firewire/bebob/
Dbebob_maudio.c352 static int special_clk_ctl_info(struct snd_kcontrol *kctl, in special_clk_ctl_info() argument
358 static int special_clk_ctl_get(struct snd_kcontrol *kctl, in special_clk_ctl_get() argument
361 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_get()
366 static int special_clk_ctl_put(struct snd_kcontrol *kctl, in special_clk_ctl_put() argument
369 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_put()
400 static int special_sync_ctl_info(struct snd_kcontrol *kctl, in special_sync_ctl_info() argument
410 static int special_sync_ctl_get(struct snd_kcontrol *kctl, in special_sync_ctl_get() argument
413 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_sync_ctl_get()
435 static int special_dig_in_iface_ctl_info(struct snd_kcontrol *kctl, in special_dig_in_iface_ctl_info() argument
442 static int special_dig_in_iface_ctl_get(struct snd_kcontrol *kctl, in special_dig_in_iface_ctl_get() argument
[all …]
/linux-4.1.27/sound/pci/cs5535audio/
Dcs5535audio_olpc.c65 static int olpc_dc_info(struct snd_kcontrol *kctl, in olpc_dc_info() argument
75 static int olpc_dc_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_get() argument
81 static int olpc_dc_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_put() argument
83 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_dc_put()
89 static int olpc_mic_info(struct snd_kcontrol *kctl, in olpc_mic_info() argument
99 static int olpc_mic_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_get() argument
101 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_get()
110 static int olpc_mic_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_put() argument
112 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_put()
/linux-4.1.27/sound/core/oss/
Dmixer_oss.c522 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_vol() local
528 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_get_volume1_vol()
536 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol()
538 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
560 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_sw() local
566 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_get_volume1_sw()
574 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw()
576 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
624 struct snd_kcontrol *kctl; in snd_mixer_oss_put_volume1_vol() local
631 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_put_volume1_vol()
[all …]
/linux-4.1.27/sound/pci/au88x0/
Dau88x0_pcm.c127 struct snd_kcontrol *kctl, int activate) in vortex_notify_pcm_vol_change() argument
130 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
132 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
134 SNDRV_CTL_EVENT_MASK_INFO, &(kctl->id)); in vortex_notify_pcm_vol_change()
266 chip->pcm_vol[substream->number].kctl, 1); in snd_vortex_pcm_hw_params()
301 chip->pcm_vol[substream->number].kctl, in snd_vortex_pcm_hw_free()
617 struct snd_kcontrol *kctl; in snd_vortex_new_pcm() local
678 kctl = snd_ctl_new1(&snd_vortex_mixer_spdif[i], chip); in snd_vortex_new_pcm()
679 if (!kctl) in snd_vortex_new_pcm()
681 if ((err = snd_ctl_add(chip->card, kctl)) < 0) in snd_vortex_new_pcm()
[all …]
Dau88x0.h109 struct snd_kcontrol *kctl; member
/linux-4.1.27/sound/soc/intel/atom/
Dsst-atom-controls.c304 bc = (void *)algo->kctl->private_value; in sst_find_and_send_pipe_algo()
307 algo->kctl->id.name, pipe); in sst_find_and_send_pipe_algo()
597 struct snd_kcontrol *kctl = gain->kctl; in sst_set_pipe_gain() local
599 dev_dbg(&drv->pdev->dev, "control name=%s\n", kctl->id.name); in sst_set_pipe_gain()
600 mc = (void *)kctl->private_value; in sst_set_pipe_gain()
1231 static int sst_fill_module_list(struct snd_kcontrol *kctl, in sst_fill_module_list() argument
1244 struct sst_gain_mixer_control *mc = (void *)kctl->private_value; in sst_fill_module_list()
1247 module->kctl = kctl; in sst_fill_module_list()
1250 struct sst_algo_control *bc = (void *)kctl->private_value; in sst_fill_module_list()
1253 module->kctl = kctl; in sst_fill_module_list()
[all …]
Dsst-atom-controls.h549 struct snd_kcontrol *kctl; member
/linux-4.1.27/sound/pci/hda/
Dhda_jack.c340 if (!jack->kctl || jack->block_report) in snd_hda_jack_report_sync()
343 snd_kctl_jack_report(codec->card, jack->kctl, state); in snd_hda_jack_report_sync()
397 struct snd_kcontrol *kctl; in __snd_hda_jack_add_kctl() local
403 if (jack->kctl) in __snd_hda_jack_add_kctl()
405 kctl = snd_kctl_jack_new(name, idx, codec); in __snd_hda_jack_add_kctl()
406 if (!kctl) in __snd_hda_jack_add_kctl()
408 err = snd_hda_ctl_add(codec, nid, kctl); in __snd_hda_jack_add_kctl()
411 jack->kctl = kctl; in __snd_hda_jack_add_kctl()
415 snd_kctl_jack_report(codec->card, kctl, state); in __snd_hda_jack_add_kctl()
456 if (jack->kctl && in get_unique_index()
[all …]
Dhda_codec.c1746 struct snd_kcontrol *kctl) in snd_hda_ctl_add() argument
1752 if (kctl->id.subdevice & HDA_SUBDEV_AMP_FLAG) { in snd_hda_ctl_add()
1755 nid = get_amp_nid_(kctl->private_value); in snd_hda_ctl_add()
1757 if ((kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) != 0 && nid == 0) in snd_hda_ctl_add()
1758 nid = kctl->id.subdevice & 0xffff; in snd_hda_ctl_add()
1759 if (kctl->id.subdevice & (HDA_SUBDEV_NID_FLAG|HDA_SUBDEV_AMP_FLAG)) in snd_hda_ctl_add()
1760 kctl->id.subdevice = 0; in snd_hda_ctl_add()
1761 err = snd_ctl_add(codec->card, kctl); in snd_hda_ctl_add()
1767 item->kctl = kctl; in snd_hda_ctl_add()
1785 int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, in snd_hda_add_nid() argument
[all …]
Dhda_proc.c82 struct snd_kcontrol *kctl; in print_nid_array() local
86 kctl = item->kctl; in print_nid_array()
89 kctl->id.name, kctl->id.index + item->index, in print_nid_array()
90 kctl->id.device); in print_nid_array()
95 get_amp_channels(kctl), in print_nid_array()
96 get_amp_direction(kctl) ? "Out" : "In", in print_nid_array()
97 get_amp_index(kctl), in print_nid_array()
98 get_amp_offset(kctl)); in print_nid_array()
Dpatch_conexant.c81 struct snd_kcontrol *kctl; in add_beep_ctls() local
82 kctl = snd_ctl_new1(knew, codec); in add_beep_ctls()
83 if (!kctl) in add_beep_ctls()
85 kctl->private_value = spec->beep_amp; in add_beep_ctls()
86 err = snd_hda_ctl_add(codec, 0, kctl); in add_beep_ctls()
586 struct snd_kcontrol_new *kctl = in cxt_fixup_olpc_xo() local
588 if (!strcmp(kctl->name, "Mic Boost Volume")) { in cxt_fixup_olpc_xo()
589 kctl->put = olpc_xo_mic_boost_put; in cxt_fixup_olpc_xo()
Dpatch_cirrus.c712 struct snd_kcontrol *kctl; in cs4208_fixup_spdif_switch() local
716 kctl = snd_hda_find_mixer_ctl(codec, "IEC958 Playback Switch"); in cs4208_fixup_spdif_switch()
717 if (!kctl) in cs4208_fixup_spdif_switch()
719 spec->spdif_sw_put = kctl->put; in cs4208_fixup_spdif_switch()
720 kctl->put = cs4208_spdif_sw_put; in cs4208_fixup_spdif_switch()
Dpatch_analog.c72 struct snd_kcontrol *kctl; in create_beep_ctls() local
73 kctl = snd_ctl_new1(knew, codec); in create_beep_ctls()
74 if (!kctl) in create_beep_ctls()
76 kctl->private_value = spec->beep_amp; in create_beep_ctls()
77 err = snd_hda_ctl_add(codec, 0, kctl); in create_beep_ctls()
Dhda_jack.h42 struct snd_kcontrol *kctl; /* assigned kctl for jack-detection */ member
Dpatch_hdmi.c464 struct snd_kcontrol *kctl; in hdmi_create_eld_ctl() local
468 kctl = snd_ctl_new1(&eld_bytes_ctl, codec); in hdmi_create_eld_ctl()
469 if (!kctl) in hdmi_create_eld_ctl()
471 kctl->private_value = pin_idx; in hdmi_create_eld_ctl()
472 kctl->id.device = device; in hdmi_create_eld_ctl()
474 err = snd_hda_ctl_add(codec, get_pin(spec, pin_idx)->pin_nid, kctl); in hdmi_create_eld_ctl()
478 get_pin(spec, pin_idx)->eld_ctl = kctl; in hdmi_create_eld_ctl()
2127 struct snd_kcontrol *kctl; in generic_hdmi_build_controls() local
2140 kctl = chmap->kctl; in generic_hdmi_build_controls()
2141 for (i = 0; i < kctl->count; i++) in generic_hdmi_build_controls()
[all …]
Dpatch_via.c297 struct snd_kcontrol *kctl; in add_beep_ctls() local
298 kctl = snd_ctl_new1(knew, codec); in add_beep_ctls()
299 if (!kctl) in add_beep_ctls()
301 kctl->private_value = spec->beep_amp; in add_beep_ctls()
302 err = snd_hda_ctl_add(codec, 0, kctl); in add_beep_ctls()
Dpatch_realtek.c271 struct snd_kcontrol *kctl; in alc_update_knob_master() local
274 kctl = snd_hda_find_mixer_ctl(codec, "Master Playback Volume"); in alc_update_knob_master()
275 if (!kctl) in alc_update_knob_master()
285 kctl->put(kctl, uctl); in alc_update_knob_master()
729 struct snd_kcontrol *kctl; in alc_build_controls() local
730 kctl = snd_ctl_new1(knew, codec); in alc_build_controls()
731 if (!kctl) in alc_build_controls()
733 kctl->private_value = spec->beep_amp; in alc_build_controls()
734 err = snd_hda_ctl_add(codec, 0, kctl); in alc_build_controls()
4549 struct snd_kcontrol *kctl; in alc282_fixup_asus_tx300() local
[all …]
Dhda_local.h608 struct snd_kcontrol *kctl; member
615 struct snd_kcontrol *kctl);
616 int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl,
Dpatch_sigmatel.c981 struct snd_kcontrol_new *kctl; in stac_create_spdif_mux_ctls() local
999 kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer); in stac_create_spdif_mux_ctls()
1000 if (!kctl) in stac_create_spdif_mux_ctls()
1002 kctl->count = cfg->dig_outs; in stac_create_spdif_mux_ctls()
Dhda_generic.c91 struct snd_kcontrol_new *kctl = spec->kctls.list; in free_kctls() local
94 kfree(kctl[i].name); in free_kctls()
2672 struct snd_kcontrol_new *kctl = snd_array_elem(&spec->kctls, i); in find_kctl_name() local
2673 if (!strcmp(kctl->name, name) && kctl->index == idx) in find_kctl_name()
/linux-4.1.27/sound/drivers/
Dmts64.c446 static int snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_get() argument
449 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_get()
460 static int snd_mts64_ctl_smpte_switch_put(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_put() argument
463 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_put()
498 static int snd_mts64_ctl_smpte_time_h_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_h_info() argument
508 static int snd_mts64_ctl_smpte_time_f_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_f_info() argument
518 static int snd_mts64_ctl_smpte_time_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_info() argument
528 static int snd_mts64_ctl_smpte_time_get(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_get() argument
531 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_time_get()
532 int idx = kctl->private_value; in snd_mts64_ctl_smpte_time_get()
[all …]
Daloop.c1007 struct snd_kcontrol *kctl; in loopback_mixer_new() local
1025 kctl = snd_ctl_new1(&loopback_controls[idx], in loopback_mixer_new()
1027 if (!kctl) in loopback_mixer_new()
1029 kctl->id.device = dev; in loopback_mixer_new()
1030 kctl->id.subdevice = substr; in loopback_mixer_new()
1033 setup->active_id = kctl->id; in loopback_mixer_new()
1036 setup->format_id = kctl->id; in loopback_mixer_new()
1039 setup->rate_id = kctl->id; in loopback_mixer_new()
1042 setup->channels_id = kctl->id; in loopback_mixer_new()
1047 err = snd_ctl_add(card, kctl); in loopback_mixer_new()
/linux-4.1.27/sound/pci/ac97/
Dac97_codec.c700 static void set_inv_eapd(struct snd_ac97 *ac97, struct snd_kcontrol *kctl) in set_inv_eapd() argument
702 kctl->private_value = AC97_SINGLE_VALUE(AC97_POWERDOWN, 15, 1, 0); in set_inv_eapd()
1191 struct snd_kcontrol *kctl; in snd_ac97_cmute_new_stereo() local
1212 kctl = snd_ctl_new1(&tmp, ac97); in snd_ac97_cmute_new_stereo()
1218 kctl = snd_ctl_new1(&tmp, ac97); in snd_ac97_cmute_new_stereo()
1220 err = snd_ctl_add(card, kctl); in snd_ac97_cmute_new_stereo()
1247 static void set_tlv_db_scale(struct snd_kcontrol *kctl, const unsigned int *tlv) in set_tlv_db_scale() argument
1249 kctl->tlv.p = tlv; in set_tlv_db_scale()
1251 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in set_tlv_db_scale()
1261 struct snd_kcontrol *kctl; in snd_ac97_cvol_new() local
[all …]
Dac97_patch.c58 struct snd_kcontrol *kctl; in reset_tlv() local
62 kctl = snd_ctl_find_id(ac97->bus->card, &sid); in reset_tlv()
63 if (kctl && kctl->tlv.p) in reset_tlv()
64 kctl->tlv.p = tlv; in reset_tlv()
310 struct snd_kcontrol *kctl; in patch_yamaha_ymf7x3_3d() local
313 kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97); in patch_yamaha_ymf7x3_3d()
314 err = snd_ctl_add(ac97->bus->card, kctl); in patch_yamaha_ymf7x3_3d()
317 strcpy(kctl->id.name, "3D Control - Wide"); in patch_yamaha_ymf7x3_3d()
318 kctl->private_value = AC97_SINGLE_VALUE(AC97_3D_CONTROL, 9, 7, 0); in patch_yamaha_ymf7x3_3d()
898 struct snd_kcontrol *kctl; in patch_sigmatel_stac9700_3d() local
[all …]
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-alsa-mixer.c84 static int snd_ivtv_mixer_tv_vol_get(struct snd_kcontrol *kctl, in snd_ivtv_mixer_tv_vol_get() argument
87 struct snd_ivtv_card *itvsc = snd_kcontrol_chip(kctl); in snd_ivtv_mixer_tv_vol_get()
104 static int snd_ivtv_mixer_tv_vol_put(struct snd_kcontrol *kctl, in snd_ivtv_mixer_tv_vol_put() argument
107 struct snd_ivtv_card *itvsc = snd_kcontrol_chip(kctl); in snd_ivtv_mixer_tv_vol_put()
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-alsa-mixer.c84 static int snd_cx18_mixer_tv_vol_get(struct snd_kcontrol *kctl, in snd_cx18_mixer_tv_vol_get() argument
87 struct snd_cx18_card *cxsc = snd_kcontrol_chip(kctl); in snd_cx18_mixer_tv_vol_get()
104 static int snd_cx18_mixer_tv_vol_put(struct snd_kcontrol *kctl, in snd_cx18_mixer_tv_vol_put() argument
107 struct snd_cx18_card *cxsc = snd_kcontrol_chip(kctl); in snd_cx18_mixer_tv_vol_put()
/linux-4.1.27/sound/pci/emu10k1/
Demumixer.c1781 struct snd_kcontrol *kctl = ctl_find(card, src); in rename_ctl() local
1782 if (kctl) { in rename_ctl()
1783 strcpy(kctl->id.name, dst); in rename_ctl()
1793 struct snd_kcontrol *kctl; in snd_emu10k1_mixer() local
2005 if ((kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu)) == NULL) in snd_emu10k1_mixer()
2007 kctl->id.device = pcm_device; in snd_emu10k1_mixer()
2008 if ((err = snd_ctl_add(card, kctl))) in snd_emu10k1_mixer()
2010 if ((kctl = emu->ctl_send_volume = snd_ctl_new1(&snd_emu10k1_send_volume_control, emu)) == NULL) in snd_emu10k1_mixer()
2012 kctl->id.device = pcm_device; in snd_emu10k1_mixer()
2013 if ((err = snd_ctl_add(card, kctl))) in snd_emu10k1_mixer()
[all …]
Demupcm.c1048 static void snd_emu10k1_pcm_mixer_notify1(struct snd_emu10k1 *emu, struct snd_kcontrol *kctl, int i… in snd_emu10k1_pcm_mixer_notify1() argument
1052 if (! kctl) in snd_emu10k1_pcm_mixer_notify1()
1055 kctl->vd[idx].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_emu10k1_pcm_mixer_notify1()
1057 kctl->vd[idx].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_emu10k1_pcm_mixer_notify1()
1060 snd_ctl_build_ioff(&id, kctl, idx)); in snd_emu10k1_pcm_mixer_notify1()
1809 struct snd_kcontrol *kctl; in snd_emu10k1_pcm_efx() local
1849 kctl = snd_ctl_new1(&snd_emu10k1_pcm_efx_voices_mask, emu); in snd_emu10k1_pcm_efx()
1850 if (!kctl) in snd_emu10k1_pcm_efx()
1852 kctl->id.device = device; in snd_emu10k1_pcm_efx()
1853 snd_ctl_add(emu->card, kctl); in snd_emu10k1_pcm_efx()
Demu10k1x.c1197 struct snd_kcontrol *kctl; in snd_emu10k1x_mixer() local
1200 if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_mask_control, emu)) == NULL) in snd_emu10k1x_mixer()
1202 if ((err = snd_ctl_add(card, kctl))) in snd_emu10k1x_mixer()
1204 if ((kctl = snd_ctl_new1(&snd_emu10k1x_shared_spdif, emu)) == NULL) in snd_emu10k1x_mixer()
1206 if ((err = snd_ctl_add(card, kctl))) in snd_emu10k1x_mixer()
1208 if ((kctl = snd_ctl_new1(&snd_emu10k1x_spdif_control, emu)) == NULL) in snd_emu10k1x_mixer()
1210 if ((err = snd_ctl_add(card, kctl))) in snd_emu10k1x_mixer()
Demufx.c772 static void snd_emu10k1_ctl_private_free(struct snd_kcontrol *kctl) in snd_emu10k1_ctl_private_free() argument
776 ctl = (struct snd_emu10k1_fx8010_ctl *) kctl->private_value; in snd_emu10k1_ctl_private_free()
777 kctl->private_value = 0; in snd_emu10k1_ctl_private_free()
780 kfree(kctl->tlv.p); in snd_emu10k1_ctl_private_free()
790 struct snd_kcontrol *kctl; in snd_emu10k1_add_controls() local
850 if ((err = snd_ctl_add(emu->card, kctl = snd_ctl_new1(&knew, emu))) < 0) { in snd_emu10k1_add_controls()
855 kctl->private_free = snd_emu10k1_ctl_private_free; in snd_emu10k1_add_controls()
856 ctl->kcontrol = kctl; in snd_emu10k1_add_controls()
/linux-4.1.27/sound/i2c/other/
Dak4114.c478 struct snd_kcontrol *kctl; in snd_ak4114_build() local
487 kctl = snd_ctl_new1(&snd_ak4114_iec958_controls[idx], ak4114); in snd_ak4114_build()
488 if (kctl == NULL) in snd_ak4114_build()
490 if (strstr(kctl->id.name, "Playback")) { in snd_ak4114_build()
492 snd_ctl_free_one(kctl); in snd_ak4114_build()
496 kctl->id.device = ply_substream->pcm->device; in snd_ak4114_build()
497 kctl->id.subdevice = ply_substream->number; in snd_ak4114_build()
499 kctl->id.device = cap_substream->pcm->device; in snd_ak4114_build()
500 kctl->id.subdevice = cap_substream->number; in snd_ak4114_build()
502 err = snd_ctl_add(ak4114->card, kctl); in snd_ak4114_build()
[all …]
Dak4117.c428 struct snd_kcontrol *kctl; in snd_ak4117_build() local
436 kctl = snd_ctl_new1(&snd_ak4117_iec958_controls[idx], ak4117); in snd_ak4117_build()
437 if (kctl == NULL) in snd_ak4117_build()
439 kctl->id.device = cap_substream->pcm->device; in snd_ak4117_build()
440 kctl->id.subdevice = cap_substream->number; in snd_ak4117_build()
441 err = snd_ctl_add(ak4117->card, kctl); in snd_ak4117_build()
444 ak4117->kctls[idx] = kctl; in snd_ak4117_build()
Dak4113.c504 struct snd_kcontrol *kctl; in snd_ak4113_build() local
512 kctl = snd_ctl_new1(&snd_ak4113_iec958_controls[idx], ak4113); in snd_ak4113_build()
513 if (kctl == NULL) in snd_ak4113_build()
515 kctl->id.device = cap_substream->pcm->device; in snd_ak4113_build()
516 kctl->id.subdevice = cap_substream->number; in snd_ak4113_build()
517 err = snd_ctl_add(ak4113->card, kctl); in snd_ak4113_build()
520 ak4113->kctls[idx] = kctl; in snd_ak4113_build()
/linux-4.1.27/sound/i2c/
Dcs8427.c535 struct snd_kcontrol *kctl; in snd_cs8427_iec958_build() local
542 kctl = snd_ctl_new1(&snd_cs8427_iec958_controls[idx], cs8427); in snd_cs8427_iec958_build()
543 if (kctl == NULL) in snd_cs8427_iec958_build()
545 kctl->id.device = play_substream->pcm->device; in snd_cs8427_iec958_build()
546 kctl->id.subdevice = play_substream->number; in snd_cs8427_iec958_build()
547 err = snd_ctl_add(cs8427->bus->card, kctl); in snd_cs8427_iec958_build()
550 if (! strcmp(kctl->id.name, in snd_cs8427_iec958_build()
552 chip->playback.pcm_ctl = kctl; in snd_cs8427_iec958_build()
/linux-4.1.27/sound/pci/trident/
Dtrident_main.c2893 struct snd_kcontrol *kctl, in snd_trident_notify_pcm_change1() argument
2898 if (! kctl) in snd_trident_notify_pcm_change1()
2901 kctl->vd[num].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_trident_notify_pcm_change1()
2903 kctl->vd[num].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_trident_notify_pcm_change1()
2906 snd_ctl_build_ioff(&id, kctl, num)); in snd_trident_notify_pcm_change1()
2964 struct snd_kcontrol *kctl; in snd_trident_mixer() local
3017 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_wave_control, trident))) < 0) in snd_trident_mixer()
3019 kctl->put(kctl, uctl); in snd_trident_mixer()
3020 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_trident_vol_music_control, trident))) < 0) in snd_trident_mixer()
3022 kctl->put(kctl, uctl); in snd_trident_mixer()
[all …]
/linux-4.1.27/sound/pci/ice1712/
Dwm8776.c49 struct snd_kcontrol *kctl; in snd_wm8776_activate_ctl() local
57 kctl = snd_ctl_find_id(card, &elem_id); in snd_wm8776_activate_ctl()
58 if (!kctl) in snd_wm8776_activate_ctl()
60 index_offset = snd_ctl_get_ioff(kctl, &kctl->id); in snd_wm8776_activate_ctl()
61 vd = &kctl->vd[index_offset]; in snd_wm8776_activate_ctl()
66 snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id); in snd_wm8776_activate_ctl()
Dpsc724.c195 struct snd_kcontrol *kctl; in psc724_set_jack_state() local
208 kctl = snd_ctl_find_id(ice->card, &elem_id); in psc724_set_jack_state()
209 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()
213 kctl = snd_ctl_find_id(ice->card, &elem_id); in psc724_set_jack_state()
214 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()
Dwm8766.h133 struct snd_kcontrol *kctl; member
Dice1724.c2433 struct snd_kcontrol *kctl; in snd_vt1724_spdif_build_controls() local
2449 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_default, ice)); in snd_vt1724_spdif_build_controls()
2452 kctl->id.device = ice->pcm->device; in snd_vt1724_spdif_build_controls()
2453 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_maskc, ice)); in snd_vt1724_spdif_build_controls()
2456 kctl->id.device = ice->pcm->device; in snd_vt1724_spdif_build_controls()
2457 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_maskp, ice)); in snd_vt1724_spdif_build_controls()
2460 kctl->id.device = ice->pcm->device; in snd_vt1724_spdif_build_controls()
2462 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_vt1724_spdif_stream, ice)); in snd_vt1724_spdif_build_controls()
2465 kctl->id.device = ice->pcm->device; in snd_vt1724_spdif_build_controls()
2466 ice->spdif.stream_ctl = kctl; in snd_vt1724_spdif_build_controls()
Dice1712.c2420 struct snd_kcontrol *kctl; in snd_ice1712_spdif_build_controls() local
2424 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_default, ice)); in snd_ice1712_spdif_build_controls()
2427 kctl->id.device = ice->pcm_pro->device; in snd_ice1712_spdif_build_controls()
2428 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_maskc, ice)); in snd_ice1712_spdif_build_controls()
2431 kctl->id.device = ice->pcm_pro->device; in snd_ice1712_spdif_build_controls()
2432 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_maskp, ice)); in snd_ice1712_spdif_build_controls()
2435 kctl->id.device = ice->pcm_pro->device; in snd_ice1712_spdif_build_controls()
2436 err = snd_ctl_add(ice->card, kctl = snd_ctl_new1(&snd_ice1712_spdif_stream, ice)); in snd_ice1712_spdif_build_controls()
2439 kctl->id.device = ice->pcm_pro->device; in snd_ice1712_spdif_build_controls()
2440 ice->spdif.stream_ctl = kctl; in snd_ice1712_spdif_build_controls()
Dwm8766.c329 wm->ctl[num].kctl = ctl; in snd_wm8766_add_control()
Daureon.c1918 struct snd_kcontrol *kctl; in aureon_add_controls() local
1919 err = snd_ctl_add(ice->card, (kctl = snd_ctl_new1(&cs8415_controls[i], ice))); in aureon_add_controls()
1923 kctl->id.device = ice->pcm->device; in aureon_add_controls()
/linux-4.1.27/sound/pci/ymfpci/
Dymfpci_main.c395 struct snd_kcontrol *kctl = NULL; in snd_ymfpci_playback_trigger() local
414 kctl = chip->pcm_mixer[substream->number].ctl; in snd_ymfpci_playback_trigger()
415 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ymfpci_playback_trigger()
431 if (kctl) in snd_ymfpci_playback_trigger()
432 snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id); in snd_ymfpci_playback_trigger()
681 struct snd_kcontrol *kctl; in snd_ymfpci_playback_prepare() local
693 kctl = chip->pcm_mixer[substream->number].ctl; in snd_ymfpci_playback_prepare()
694 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ymfpci_playback_prepare()
695 snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id); in snd_ymfpci_playback_prepare()
1809 struct snd_kcontrol *kctl; in snd_ymfpci_mixer() local
[all …]
/linux-4.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c356 struct snd_kcontrol_new kctl; in solo_g723_init() local
384 kctl = snd_solo_capture_volume; in solo_g723_init()
385 kctl.count = solo_dev->nr_chans; in solo_g723_init()
387 ret = snd_ctl_add(card, snd_ctl_new1(&kctl, solo_dev)); in solo_g723_init()
/linux-4.1.27/sound/sparc/
Damd7930.c789 static int snd_amd7930_info_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) in snd_amd7930_info_volume() argument
799 static int snd_amd7930_get_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in snd_amd7930_get_volume() argument
801 struct snd_amd7930 *amd = snd_kcontrol_chip(kctl); in snd_amd7930_get_volume()
802 int type = kctl->private_value; in snd_amd7930_get_volume()
823 static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in snd_amd7930_put_volume() argument
825 struct snd_amd7930 *amd = snd_kcontrol_chip(kctl); in snd_amd7930_put_volume()
827 int type = kctl->private_value; in snd_amd7930_put_volume()
/linux-4.1.27/sound/pci/
Des1938.c1737 struct snd_kcontrol *kctl; in snd_es1938_mixer() local
1738 kctl = snd_ctl_new1(&snd_es1938_controls[idx], chip); in snd_es1938_mixer()
1741 chip->master_volume = kctl; in snd_es1938_mixer()
1742 kctl->private_free = snd_es1938_hwv_free; in snd_es1938_mixer()
1745 chip->master_switch = kctl; in snd_es1938_mixer()
1746 kctl->private_free = snd_es1938_hwv_free; in snd_es1938_mixer()
1749 chip->hw_volume = kctl; in snd_es1938_mixer()
1750 kctl->private_free = snd_es1938_hwv_free; in snd_es1938_mixer()
1753 chip->hw_switch = kctl; in snd_es1938_mixer()
1754 kctl->private_free = snd_es1938_hwv_free; in snd_es1938_mixer()
[all …]
Dvia82xx.c2029 struct snd_kcontrol *kctl; in snd_via8233_init_misc() local
2031 kctl = snd_ctl_new1( in snd_via8233_init_misc()
2033 if (!kctl) in snd_via8233_init_misc()
2035 kctl->id.subdevice = i; in snd_via8233_init_misc()
2036 err = snd_ctl_add(chip->card, kctl); in snd_via8233_init_misc()
2039 chip->dxs_controls[i] = kctl; in snd_via8233_init_misc()
Dcmipci.c2670 struct snd_kcontrol *kctl; in snd_cmipci_mixer_new() local
2716 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_default, cm))) < 0) in snd_cmipci_mixer_new()
2718 kctl->id.device = pcm_spdif_device; in snd_cmipci_mixer_new()
2719 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_mask, cm))) < 0) in snd_cmipci_mixer_new()
2721 kctl->id.device = pcm_spdif_device; in snd_cmipci_mixer_new()
2722 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_cmipci_spdif_stream, cm))) < 0) in snd_cmipci_mixer_new()
2724 kctl->id.device = pcm_spdif_device; in snd_cmipci_mixer_new()
Dens1370.c1652 struct snd_kcontrol *kctl; in snd_ensoniq_1371_mixer() local
1663 kctl = snd_ctl_new1(&snd_es1371_mixer_spdif[i], ensoniq); in snd_ensoniq_1371_mixer()
1664 if (!kctl) in snd_ensoniq_1371_mixer()
1666 kctl->id.index = is_spdif; in snd_ensoniq_1371_mixer()
1667 err = snd_ctl_add(card, kctl); in snd_ensoniq_1371_mixer()
Dsonicvibes.c1118 struct snd_kcontrol *kctl; in snd_sonicvibes_mixer() local
1128 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_sonicvibes_controls[idx], sonic))) < 0) in snd_sonicvibes_mixer()
1132 case 1: kctl->private_free = snd_sonicvibes_master_free; break; in snd_sonicvibes_mixer()
Drme32.c1890 struct snd_kcontrol *kctl; in snd_rme32_create_switches() local
1893 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme32_controls[idx], rme32))) < 0) in snd_rme32_create_switches()
1896 rme32->spdif_ctl = kctl; in snd_rme32_create_switches()
Drme96.c2343 struct snd_kcontrol *kctl; in snd_rme96_create_switches() local
2346 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme96_controls[idx], rme96))) < 0) in snd_rme96_create_switches()
2349 rme96->spdif_ctl = kctl; in snd_rme96_create_switches()
/linux-4.1.27/sound/pci/ctxfi/
Dctmixer.c712 struct snd_kcontrol *kctl; in ct_mixer_kcontrol_new() local
715 kctl = snd_ctl_new1(new, mixer->atc); in ct_mixer_kcontrol_new()
716 if (!kctl) in ct_mixer_kcontrol_new()
719 if (SNDRV_CTL_ELEM_IFACE_PCM == kctl->id.iface) in ct_mixer_kcontrol_new()
720 kctl->id.device = IEC958; in ct_mixer_kcontrol_new()
722 err = snd_ctl_add(mixer->atc->card, kctl); in ct_mixer_kcontrol_new()
728 kctls[0] = kctl; break; in ct_mixer_kcontrol_new()
730 kctls[1] = kctl; break; in ct_mixer_kcontrol_new()
/linux-4.1.27/sound/isa/
Des18xx.c1852 struct snd_kcontrol *kctl; in snd_es18xx_mixer() local
1853 kctl = snd_ctl_new1(&snd_es18xx_base_controls[idx], chip); in snd_es18xx_mixer()
1857 chip->master_volume = kctl; in snd_es18xx_mixer()
1858 kctl->private_free = snd_es18xx_hwv_free; in snd_es18xx_mixer()
1861 chip->master_switch = kctl; in snd_es18xx_mixer()
1862 kctl->private_free = snd_es18xx_hwv_free; in snd_es18xx_mixer()
1866 if ((err = snd_ctl_add(card, kctl)) < 0) in snd_es18xx_mixer()
1906 struct snd_kcontrol *kctl; in snd_es18xx_mixer() local
1907 kctl = snd_ctl_new1(&snd_es18xx_hw_volume_controls[idx], chip); in snd_es18xx_mixer()
1909 chip->hw_volume = kctl; in snd_es18xx_mixer()
[all …]
Dopl3sa2.c502 struct snd_kcontrol *kctl; in snd_opl3sa2_mixer() local
537 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_opl3sa2_controls[idx], chip))) < 0) in snd_opl3sa2_mixer()
540 case 0: chip->master_switch = kctl; kctl->private_free = snd_opl3sa2_master_free; break; in snd_opl3sa2_mixer()
541 case 1: chip->master_volume = kctl; kctl->private_free = snd_opl3sa2_master_free; break; in snd_opl3sa2_mixer()
Dsscape.c615 static int sscape_midi_get(struct snd_kcontrol *kctl, in sscape_midi_get() argument
618 struct snd_wss *chip = snd_kcontrol_chip(kctl); in sscape_midi_get()
629 static int sscape_midi_put(struct snd_kcontrol *kctl, in sscape_midi_put() argument
632 struct snd_wss *chip = snd_kcontrol_chip(kctl); in sscape_midi_put()
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-audio.c654 struct snd_kcontrol *kctl; in em28xx_cvol_new() local
667 kctl = snd_ctl_new1(&tmp, dev); in em28xx_cvol_new()
668 err = snd_ctl_add(card, kctl); in em28xx_cvol_new()
685 kctl = snd_ctl_new1(&tmp, dev); in em28xx_cvol_new()
686 err = snd_ctl_add(card, kctl); in em28xx_cvol_new()
/linux-4.1.27/sound/soc/
Dsoc-ops.c601 struct snd_kcontrol *kctl; in snd_soc_limit_volume() local
610 list_for_each_entry(kctl, &card->controls, list) { in snd_soc_limit_volume()
611 if (!strncmp(kctl->id.name, name, sizeof(kctl->id.name))) { in snd_soc_limit_volume()
617 mc = (struct soc_mixer_control *)kctl->private_value; in snd_soc_limit_volume()
Dsoc-core.c1927 struct snd_kcontrol *kctl; in snd_soc_card_get_kcontrol() local
1932 list_for_each_entry(kctl, &card->controls, list) in snd_soc_card_get_kcontrol()
1933 if (!strncmp(kctl->id.name, name, sizeof(kctl->id.name))) in snd_soc_card_get_kcontrol()
1934 return kctl; in snd_soc_card_get_kcontrol()
Dsoc-dapm.c362 static void dapm_kcontrol_free(struct snd_kcontrol *kctl) in dapm_kcontrol_free() argument
364 struct dapm_kcontrol_data *data = snd_kcontrol_chip(kctl); in dapm_kcontrol_free()
/linux-4.1.27/sound/soc/pxa/
Dmioa701_wm9713.c82 struct snd_kcontrol *kctl, int event) in rear_amp_event() argument
/linux-4.1.27/sound/isa/gus/
Dgus_pcm.c855 struct snd_kcontrol *kctl; in snd_gf1_pcm_new() local
897 kctl = snd_ctl_new1(&snd_gf1_pcm_volume_control1, gus); in snd_gf1_pcm_new()
899 kctl = snd_ctl_new1(&snd_gf1_pcm_volume_control, gus); in snd_gf1_pcm_new()
900 if ((err = snd_ctl_add(card, kctl)) < 0) in snd_gf1_pcm_new()
902 kctl->id.index = control_index; in snd_gf1_pcm_new()
/linux-4.1.27/sound/spi/
Dat73c213.c736 struct snd_kcontrol *kctl; in snd_at73c213_mixer() local
737 kctl = snd_ctl_find_numid(card, idx); in snd_at73c213_mixer()
738 if (kctl) in snd_at73c213_mixer()
739 snd_ctl_remove(card, kctl); in snd_at73c213_mixer()
/linux-4.1.27/sound/pci/ca0106/
Dca0106_mixer.c735 struct snd_kcontrol *kctl = ctl_find(card, src); in rename_ctl() local
736 if (kctl) { in rename_ctl()
737 strcpy(kctl->id.name, dst); in rename_ctl()
/linux-4.1.27/sound/pci/cs46xx/
Dcs46xx_lib.c2514 struct snd_kcontrol *kctl; in snd_cs46xx_mixer() local
2515 kctl = snd_ctl_new1(&snd_cs46xx_controls[idx], chip); in snd_cs46xx_mixer()
2516 if (kctl && kctl->id.iface == SNDRV_CTL_ELEM_IFACE_PCM) in snd_cs46xx_mixer()
2517 kctl->id.device = spdif_device; in snd_cs46xx_mixer()
2518 if ((err = snd_ctl_add(card, kctl)) < 0) in snd_cs46xx_mixer()
3544 struct snd_kcontrol *kctl; in hercules_mixer_init() local
3546 kctl = snd_ctl_new1(&snd_hercules_controls[idx], chip); in hercules_mixer_init()
3547 if ((err = snd_ctl_add(card, kctl)) < 0) { in hercules_mixer_init()
/linux-4.1.27/sound/pci/rme9652/
Drme9652.c1540 struct snd_kcontrol *kctl; in snd_rme9652_create_controls() local
1543 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_controls[idx], rme9652))) < 0) in snd_rme9652_create_controls()
1546 rme9652->spdif_ctl = kctl; in snd_rme9652_create_controls()
1550 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_adat3_check, rme9652))) < 0) in snd_rme9652_create_controls()
1554 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_rme9652_adat1_input, rme9652))) < 0) in snd_rme9652_create_controls()
Dhdsp.c3282 struct snd_kcontrol *kctl; in snd_hdsp_create_controls() local
3287 err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp)); in snd_hdsp_create_controls()
3295 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_controls[idx], hdsp))) < 0) in snd_hdsp_create_controls()
3298 hdsp->spdif_ctl = kctl; in snd_hdsp_create_controls()
3304 if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp)))) in snd_hdsp_create_controls()
3309 if ((err = snd_ctl_add (card, kctl = snd_ctl_new1(&snd_hdsp_adat_sync_check, hdsp)))) in snd_hdsp_create_controls()
3317 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_9632_controls[idx], hdsp))) < 0) in snd_hdsp_create_controls()
3324 if ((err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_96xx_aeb, hdsp))) < 0) in snd_hdsp_create_controls()
Dhdspm.c4677 struct snd_kcontrol *kctl; in snd_hdspm_create_controls() local
4724 kctl = snd_ctl_new1(&snd_hdspm_playback_mixer, hdspm); in snd_hdspm_create_controls()
4725 err = snd_ctl_add(card, kctl); in snd_hdspm_create_controls()
4728 hdspm->playback_mixer_ctls[idx] = kctl; in snd_hdspm_create_controls()