Home
last modified time | relevance | path

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

1234

/sound/core/
Dcontrol.c209 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument
221 *kctl = kzalloc(size, GFP_KERNEL); in snd_ctl_new()
222 if (!*kctl) in snd_ctl_new()
226 (*kctl)->vd[idx].access = access; in snd_ctl_new()
227 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
229 (*kctl)->count = count; in snd_ctl_new()
248 struct snd_kcontrol *kctl; in snd_ctl_new1() local
270 err = snd_ctl_new(&kctl, count, access, NULL); in snd_ctl_new1()
275 kctl->id.iface = ncontrol->iface; in snd_ctl_new1()
276 kctl->id.device = ncontrol->device; in snd_ctl_new1()
[all …]
Dctljack.c69 struct snd_kcontrol *kctl; in snd_kctl_jack_new() local
71 kctl = snd_ctl_new1(&jack_detect_kctl, NULL); in snd_kctl_jack_new()
72 if (!kctl) in snd_kctl_jack_new()
75 jack_kctl_name_gen(kctl->id.name, name, sizeof(kctl->id.name)); in snd_kctl_jack_new()
76 kctl->id.index = get_available_index(card, kctl->id.name); in snd_kctl_jack_new()
77 kctl->private_value = 0; in snd_kctl_jack_new()
78 return kctl; in snd_kctl_jack_new()
82 struct snd_kcontrol *kctl, bool status) in snd_kctl_jack_report() argument
84 if (kctl->private_value == status) in snd_kctl_jack_report()
86 kctl->private_value = status; in snd_kctl_jack_report()
[all …]
Djack.c30 struct snd_kcontrol *kctl; member
73 snd_ctl_remove(card, jack_kctl->kctl); in snd_jack_dev_free()
126 static void snd_jack_kctl_private_free(struct snd_kcontrol *kctl) in snd_jack_kctl_private_free() argument
130 jack_kctl = kctl->private_data; in snd_jack_kctl_private_free()
144 struct snd_kcontrol *kctl; in snd_jack_kctl_new() local
148 kctl = snd_kctl_jack_new(name, card); in snd_jack_kctl_new()
149 if (!kctl) in snd_jack_kctl_new()
152 err = snd_ctl_add(card, kctl); in snd_jack_kctl_new()
161 jack_kctl->kctl = kctl; in snd_jack_kctl_new()
164 kctl->private_data = jack_kctl; in snd_jack_kctl_new()
[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 …]
/sound/usb/
Dmixer.c588 struct snd_kcontrol *kctl) in snd_usb_mixer_add_control() argument
593 while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) in snd_usb_mixer_add_control()
594 kctl->id.index++; in snd_usb_mixer_add_control()
595 if ((err = snd_ctl_add(mixer->chip->card, kctl)) < 0) { in snd_usb_mixer_add_control()
600 list->kctl = kctl; in snd_usb_mixer_add_control()
844 void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl) in snd_usb_mixer_elem_free() argument
846 kfree(kctl->private_data); in snd_usb_mixer_elem_free()
847 kctl->private_data = NULL; in snd_usb_mixer_elem_free()
856 struct snd_kcontrol *kctl) in volume_control_quirks() argument
862 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.h49 struct snd_kcontrol *kctl; member
83 struct snd_kcontrol *kctl);
103 extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
/sound/firewire/bebob/
Dbebob_maudio.c355 static int special_clk_ctl_info(struct snd_kcontrol *kctl, in special_clk_ctl_info() argument
367 static int special_clk_ctl_get(struct snd_kcontrol *kctl, in special_clk_ctl_get() argument
370 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_get()
375 static int special_clk_ctl_put(struct snd_kcontrol *kctl, in special_clk_ctl_put() argument
378 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_clk_ctl_put()
409 static int special_sync_ctl_info(struct snd_kcontrol *kctl, in special_sync_ctl_info() argument
419 static int special_sync_ctl_get(struct snd_kcontrol *kctl, in special_sync_ctl_get() argument
422 struct snd_bebob *bebob = snd_kcontrol_chip(kctl); in special_sync_ctl_get()
444 static int special_dig_in_iface_ctl_info(struct snd_kcontrol *kctl, in special_dig_in_iface_ctl_info() argument
451 static int special_dig_in_iface_ctl_get(struct snd_kcontrol *kctl, in special_dig_in_iface_ctl_get() argument
[all …]
/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()
/sound/core/oss/
Dmixer_oss.c528 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_vol() local
534 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_get_volume1_vol()
542 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol()
544 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
566 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_sw() local
572 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_get_volume1_sw()
580 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw()
582 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
630 struct snd_kcontrol *kctl; in snd_mixer_oss_put_volume1_vol() local
637 if ((kctl = snd_ctl_find_numid(card, numid)) == NULL) { in snd_mixer_oss_put_volume1_vol()
[all …]
/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()
620 struct snd_kcontrol *kctl; in snd_vortex_new_pcm() local
681 kctl = snd_ctl_new1(&snd_vortex_mixer_spdif[i], chip); in snd_vortex_new_pcm()
682 if (!kctl) in snd_vortex_new_pcm()
684 if ((err = snd_ctl_add(chip->card, kctl)) < 0) in snd_vortex_new_pcm()
[all …]
/sound/drivers/
Dmts64.c444 static int snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_get() argument
447 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_get()
458 static int snd_mts64_ctl_smpte_switch_put(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_put() argument
461 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_put()
496 static int snd_mts64_ctl_smpte_time_h_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_h_info() argument
506 static int snd_mts64_ctl_smpte_time_f_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_f_info() argument
516 static int snd_mts64_ctl_smpte_time_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_info() argument
526 static int snd_mts64_ctl_smpte_time_get(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_get() argument
529 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_time_get()
530 int idx = kctl->private_value; in snd_mts64_ctl_smpte_time_get()
[all …]
/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()
598 struct snd_kcontrol *kctl = gain->kctl; in sst_set_pipe_gain() local
600 dev_dbg(&drv->pdev->dev, "control name=%s\n", kctl->id.name); in sst_set_pipe_gain()
601 mc = (void *)kctl->private_value; in sst_set_pipe_gain()
1377 static int sst_fill_module_list(struct snd_kcontrol *kctl, in sst_fill_module_list() argument
1390 struct sst_gain_mixer_control *mc = (void *)kctl->private_value; in sst_fill_module_list()
1393 module->kctl = kctl; in sst_fill_module_list()
1396 struct sst_algo_control *bc = (void *)kctl->private_value; in sst_fill_module_list()
1399 module->kctl = kctl; in sst_fill_module_list()
[all …]
/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 …]
/sound/pci/hda/
Dhda_codec.c1543 struct snd_kcontrol *kctl) in snd_hda_ctl_add() argument
1549 if (kctl->id.subdevice & HDA_SUBDEV_AMP_FLAG) { in snd_hda_ctl_add()
1552 nid = get_amp_nid_(kctl->private_value); in snd_hda_ctl_add()
1554 if ((kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) != 0 && nid == 0) in snd_hda_ctl_add()
1555 nid = kctl->id.subdevice & 0xffff; in snd_hda_ctl_add()
1556 if (kctl->id.subdevice & (HDA_SUBDEV_NID_FLAG|HDA_SUBDEV_AMP_FLAG)) in snd_hda_ctl_add()
1557 kctl->id.subdevice = 0; in snd_hda_ctl_add()
1558 err = snd_ctl_add(codec->card, kctl); in snd_hda_ctl_add()
1564 item->kctl = kctl; in snd_hda_ctl_add()
1582 int snd_hda_add_nid(struct hda_codec *codec, struct snd_kcontrol *kctl, in snd_hda_add_nid() argument
[all …]
Dhda_proc.c67 struct snd_kcontrol *kctl; in print_nid_array() local
71 kctl = item->kctl; in print_nid_array()
74 kctl->id.name, kctl->id.index + item->index, in print_nid_array()
75 kctl->id.device); in print_nid_array()
80 get_amp_channels(kctl), in print_nid_array()
81 get_amp_direction(kctl) ? "Out" : "In", in print_nid_array()
82 get_amp_index(kctl), in print_nid_array()
83 get_amp_offset(kctl)); in print_nid_array()
/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
2008 if ((kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu)) == NULL) in snd_emu10k1_mixer()
2010 kctl->id.device = pcm_device; in snd_emu10k1_mixer()
2011 if ((err = snd_ctl_add(card, kctl))) in snd_emu10k1_mixer()
2013 if ((kctl = emu->ctl_send_volume = snd_ctl_new1(&snd_emu10k1_send_volume_control, emu)) == NULL) in snd_emu10k1_mixer()
2015 kctl->id.device = pcm_device; in snd_emu10k1_mixer()
2016 if ((err = snd_ctl_add(card, kctl))) in snd_emu10k1_mixer()
[all …]
/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()
/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()
/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 …]
/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 …]
/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()

1234