Home
last modified time | relevance | path

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

1234

/linux/sound/core/
H A Dcontrol.c201 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_notify_one() argument
203 struct snd_ctl_elem_id id = kctl->id; in snd_ctl_notify_one()
211 lops->lnotify(card, mask, kctl, ioff); in snd_ctl_notify_one()
228 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument
236 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new()
237 if (!*kctl) in snd_ctl_new()
240 (*kctl)->count = count; in snd_ctl_new()
242 (*kctl)->vd[idx].access = access; in snd_ctl_new()
243 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
263 struct snd_kcontrol *kctl; in snd_ctl_new1() local
[all …]
H A Dctljack.c65 struct snd_kcontrol *kctl; in snd_kctl_jack_new() local
67 kctl = snd_ctl_new1(&jack_detect_kctl, NULL); in snd_kctl_jack_new()
68 if (!kctl) in snd_kctl_jack_new()
71 jack_kctl_name_gen(kctl->id.name, name, sizeof(kctl->id.name)); in snd_kctl_jack_new()
72 kctl->id.index = get_available_index(card, kctl->id.name); in snd_kctl_jack_new()
73 kctl->private_value = 0; in snd_kctl_jack_new()
74 return kctl; in snd_kctl_jack_new()
78 struct snd_kcontrol *kctl, bool status) in snd_kctl_jack_report() argument
80 if (kctl->private_value == status) in snd_kctl_jack_report()
82 kctl->private_value = status; in snd_kctl_jack_report()
[all …]
H A Dcontrol_led.c50 struct snd_kcontrol *kctl; member
109 struct snd_kcontrol *kctl = lctl->kctl; in snd_ctl_led_get() local
114 info.id = kctl->id; in snd_ctl_led_get()
117 result = kctl->info(kctl, &info); in snd_ctl_led_get()
122 result = kctl->get(kctl, &value); in snd_ctl_led_get()
139 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_set_state() argument
156 if (lctl->kctl in snd_ctl_led_set_state()
185 snd_ctl_led_find(struct snd_kcontrol * kctl,unsigned int ioff) snd_ctl_led_find() argument
200 snd_ctl_led_remove(struct snd_kcontrol * kctl,unsigned int ioff,unsigned int access) snd_ctl_led_remove() argument
217 snd_ctl_led_notify(struct snd_card * card,unsigned int mask,struct snd_kcontrol * kctl,unsigned int ioff) snd_ctl_led_notify() argument
249 struct snd_kcontrol *kctl; DEFINE_FREE() local
334 struct snd_kcontrol *kctl; snd_ctl_led_register() local
[all...]
H A Djack.c19 struct snd_kcontrol *kctl; member
21 unsigned int mask_bits; /* only masked status bits are reported via kctl */
72 snd_ctl_remove(card, jack_kctl->kctl); in snd_jack_dev_free()
140 snd_kctl_jack_report(jack->card, jack_kctl->kctl, in snd_jack_inject_report()
175 len = scnprintf(buf, sizeof(buf), "%s: %s\t\t%s: %i\n", "Jack", jack_kctl->kctl->id.name, in sw_inject_enable_read()
234 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->id.name); in jack_kctl_id_read()
285 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->private_value ? in jack_kctl_status_read()
351 if (strstr(jack_kctl->kctl->id.name, "Phantom")) in snd_jack_debugfs_add_inject_node()
354 tname = kstrdup(jack_kctl->kctl->id.name, GFP_KERNEL); in snd_jack_debugfs_add_inject_node()
409 static void snd_jack_kctl_private_free(struct snd_kcontrol *kctl) in snd_jack_kctl_private_free()
401 snd_jack_kctl_private_free(struct snd_kcontrol * kctl) snd_jack_kctl_private_free() argument
422 struct snd_kcontrol *kctl; snd_jack_kctl_new() local
[all...]
H A Dvmaster.c53 struct snd_kcontrol *kctl; /* original kcontrol pointer */ member
263 srec->kctl = follower; in _snd_ctl_add_follower()
392 struct snd_kcontrol *sctl = follower->kctl; in master_free()
425 struct snd_kcontrol *kctl; in snd_ctl_make_virtual_master() local
438 kctl = snd_ctl_new1(&knew, master); in snd_ctl_make_virtual_master()
439 if (!kctl) { in snd_ctl_make_virtual_master()
444 kctl->info = master_info; in snd_ctl_make_virtual_master()
445 kctl->get = master_get; in snd_ctl_make_virtual_master()
446 kctl->put = master_put; in snd_ctl_make_virtual_master()
447 kctl->private_free = master_free; in snd_ctl_make_virtual_master()
[all …]
/linux/sound/pci/hda/
H A Dhda_cs_dsp_ctl.c21 struct snd_kcontrol *kctl; member
39 static int hda_cs_dsp_coeff_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) in hda_cs_dsp_coeff_info() argument
41 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_info()
50 static int hda_cs_dsp_coeff_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in hda_cs_dsp_coeff_put() argument
52 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_put()
59 static int hda_cs_dsp_coeff_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in hda_cs_dsp_coeff_get() argument
61 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_get()
91 static void hda_cs_dsp_free_kcontrol(struct snd_kcontrol *kctl) in hda_cs_dsp_free_kcontrol() argument
93 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_free_kcontrol()
106 struct snd_kcontrol *kctl; in hda_cs_dsp_add_kcontrol() local
[all …]
/linux/include/sound/
H A Dcontrol.h122 …void (*lnotify)(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int …
132 void snd_ctl_notify_one(struct snd_card * card, unsigned int mask, struct snd_kcontrol * kctl, unsi…
141 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name);
186 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffnum() argument
188 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum()
189 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum()
192 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *i… in snd_ctl_get_ioffidx() argument
194 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx()
195 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx()
198 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioff() argument
[all …]
/linux/sound/usb/
H A Dmixer.c590 struct snd_kcontrol *kctl, in snd_usb_mixer_add_list() argument
596 while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) in snd_usb_mixer_add_list()
597 kctl->id.index++; in snd_usb_mixer_add_list()
598 err = snd_ctl_add(mixer->chip->card, kctl); in snd_usb_mixer_add_list()
604 list->kctl = kctl; in snd_usb_mixer_add_list()
1072 void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl) in snd_usb_mixer_elem_free() argument
1074 usb_mixer_elem_info_free(kctl->private_data); in snd_usb_mixer_elem_free()
1075 kctl->private_data = NULL; in snd_usb_mixer_elem_free()
1084 struct snd_kcontrol *kctl) in volume_control_quirks() argument
1089 if (!strcmp(kctl->id.name, "Mic Capture Volume")) { in volume_control_quirks()
[all …]
H A Dmixer_s1810c.c335 struct snd_kcontrol *kctl, u32 *state) in snd_s1810c_get_switch_state() argument
340 u32 ctl_idx = (u32) (kctl->private_value & 0xFF); in snd_s1810c_get_switch_state()
362 struct snd_kcontrol *kctl) in snd_s1810c_set_switch_state() argument
366 u32 pval = (u32) kctl->private_value; in snd_s1810c_set_switch_state()
380 snd_s1810c_switch_get(struct snd_kcontrol *kctl, in snd_s1810c_switch_get() argument
383 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_get()
386 u32 pval = (u32) kctl->private_value; in snd_s1810c_switch_get()
392 ret = snd_s1810c_get_switch_state(mixer, kctl, &state); in snd_s1810c_switch_get()
411 snd_s1810c_switch_set(struct snd_kcontrol *kctl, in snd_s1810c_switch_set() argument
414 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kctl); in snd_s1810c_switch_set()
[all …]
H A 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()
300 static int scarlett_ctl_info(struct snd_kcontrol *kctl, in scarlett_ctl_info() argument
303 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett_ctl_info()
308 uinfo->value.integer.max = (int)kctl->private_value + in scarlett_ctl_info()
314 static int scarlett_ctl_get(struct snd_kcontrol *kctl, in scarlett_ctl_get() argument
[all …]
H A Dmixer_scarlett2.c3170 struct snd_kcontrol *kctl; in scarlett2_add_new_ctl() local
3188 kctl = snd_ctl_new1(ncontrol, elem); in scarlett2_add_new_ctl()
3189 if (!kctl) { in scarlett2_add_new_ctl()
3193 kctl->private_free = snd_usb_mixer_elem_free; in scarlett2_add_new_ctl()
3195 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in scarlett2_add_new_ctl()
3197 err = snd_usb_mixer_add_control(&elem->head, kctl); in scarlett2_add_new_ctl()
3202 *kctl_return = kctl; in scarlett2_add_new_ctl()
3210 struct snd_kcontrol *kctl, in scarlett2_firmware_version_ctl_get() argument
3213 struct usb_mixer_elem_info *elem = kctl->private_data; in scarlett2_firmware_version_ctl_get()
3222 struct snd_kcontrol *kctl, in scarlett2_firmware_version_ctl_info() argument
[all …]
H A Dmixer_quirks.c66 struct snd_kcontrol *kctl; in snd_create_std_mono_ctl_offset() local
88 kctl = snd_ctl_new1(snd_usb_feature_unit_ctl, cval); in snd_create_std_mono_ctl_offset()
89 if (!kctl) { in snd_create_std_mono_ctl_offset()
95 snprintf(kctl->id.name, sizeof(kctl->id.name), name); in snd_create_std_mono_ctl_offset()
96 kctl->private_free = snd_usb_mixer_elem_free; in snd_create_std_mono_ctl_offset()
100 kctl->tlv.c = tlv_callback; in snd_create_std_mono_ctl_offset()
101 kctl->vd[0].access |= in snd_create_std_mono_ctl_offset()
106 return snd_usb_mixer_add_control(&cval->head, kctl); in snd_create_std_mono_ctl_offset()
147 struct snd_kcontrol *kctl; in add_single_ctl_with_resume() local
678 snd_mbox1_clk_switch_get(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * ucontrol) snd_mbox1_clk_switch_get() argument
729 snd_mbox1_clk_switch_put(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * ucontrol) snd_mbox1_clk_switch_put() argument
765 snd_mbox1_src_switch_get(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * ucontrol) snd_mbox1_src_switch_get() argument
799 snd_mbox1_src_switch_put(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * ucontrol) snd_mbox1_src_switch_put() argument
874 snd_ni_control_init_val(struct usb_mixer_interface * mixer,struct snd_kcontrol * kctl) snd_ni_control_init_val() argument
1034 snd_ftu_eff_switch_init(struct usb_mixer_interface * mixer,struct snd_kcontrol * kctl) snd_ftu_eff_switch_init() argument
1056 snd_ftu_eff_switch_get(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * ucontrol) snd_ftu_eff_switch_get() argument
1087 snd_ftu_eff_switch_put(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * ucontrol) snd_ftu_eff_switch_put() argument
2064 struct snd_kcontrol *kctl; realtek_add_jack() local
2807 struct snd_kcontrol *kctl = list->kctl; snd_bbfpro_gain_resume() local
3865 snd_djm_controls_info(struct snd_kcontrol * kctl,struct snd_ctl_elem_info * info) snd_djm_controls_info() argument
3922 snd_djm_controls_get(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * elem) snd_djm_controls_get() argument
3929 snd_djm_controls_put(struct snd_kcontrol * kctl,struct snd_ctl_elem_value * elem) snd_djm_controls_put() argument
4186 snd_dragonfly_quirk_db_scale(struct usb_mixer_interface * mixer,struct usb_mixer_elem_info * cval,struct snd_kcontrol * kctl) snd_dragonfly_quirk_db_scale() argument
4220 snd_usb_mixer_fu_apply_quirk(struct usb_mixer_interface * mixer,struct usb_mixer_elem_info * cval,int unitid,struct snd_kcontrol * kctl) snd_usb_mixer_fu_apply_quirk() argument
[all...]
H A Dmixer.h68 struct snd_kcontrol *kctl; member
109 struct snd_kcontrol *kctl,
112 #define snd_usb_mixer_add_control(list, kctl) \ argument
113 snd_usb_mixer_add_list(list, kctl, true)
131 extern void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl);
/linux/sound/firewire/bebob/
H A 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 …]
/linux/sound/core/oss/
H A Dmixer_oss.c522 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_vol() local
528 kctl = snd_ctl_find_numid(card, numid); in snd_mixer_oss_get_volume1_vol()
529 if (!kctl) in snd_mixer_oss_get_volume1_vol()
535 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol()
537 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
555 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_sw() local
561 kctl = snd_ctl_find_numid(card, numid); in snd_mixer_oss_get_volume1_sw()
562 if (!kctl) in snd_mixer_oss_get_volume1_sw()
568 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw()
570 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
[all …]
/linux/sound/virtio/
H A Dvirtio_kctl.c51 struct virtio_kctl *kctl = &snd->kctls[kcontrol->private_value]; in virtsnd_kctl_info() local
85 strscpy(uinfo->value.enumerated.name, kctl->items[i].item, in virtsnd_kctl_info()
322 struct virtio_kctl *kctl = &snd->kctls[cid]; in virtsnd_kctl_get_enum_items() local
333 kctl->items = devm_kcalloc(&vdev->dev, n, sizeof(*kctl->items), in virtsnd_kctl_get_enum_items()
335 if (!kctl->items) { in virtsnd_kctl_get_enum_items()
340 sg_init_one(&sg, kctl->items, n * sizeof(*kctl->items)); in virtsnd_kctl_get_enum_items()
411 struct virtio_kctl *kctl = &snd->kctls[cid]; in virtsnd_kctl_build_devs() local
438 kctl->kctl = snd_ctl_new1(&kctl_new, snd); in virtsnd_kctl_build_devs()
439 if (!kctl->kctl) in virtsnd_kctl_build_devs()
442 rc = snd_ctl_add(snd->card, kctl->kctl); in virtsnd_kctl_build_devs()
[all …]
/linux/sound/pci/cs5535audio/
H A Dcs5535audio_olpc.c61 static int olpc_dc_info(struct snd_kcontrol *kctl, in olpc_dc_info() argument
71 static int olpc_dc_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_get() argument
77 static int olpc_dc_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_dc_put() argument
79 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_dc_put()
85 static int olpc_mic_info(struct snd_kcontrol *kctl, in olpc_mic_info() argument
95 static int olpc_mic_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_get() argument
97 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_get()
106 static int olpc_mic_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *v) in olpc_mic_put() argument
108 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_put()
/linux/sound/pci/au88x0/
H A Dau88x0_pcm.c115 struct snd_kcontrol *kctl, int activate) in vortex_notify_pcm_vol_change() argument
118 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
120 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
122 SNDRV_CTL_EVENT_MASK_INFO, &(kctl->id)); in vortex_notify_pcm_vol_change()
246 chip->pcm_vol[substream->number].kctl, 1); in snd_vortex_pcm_hw_params()
281 chip->pcm_vol[substream->number].kctl, in snd_vortex_pcm_hw_free()
598 struct snd_kcontrol *kctl; in snd_vortex_new_pcm() local
658 kctl = snd_ctl_new1(&snd_vortex_mixer_spdif[i], chip); in snd_vortex_new_pcm()
659 if (!kctl) in snd_vortex_new_pcm()
661 err = snd_ctl_add(chip->card, kctl); in snd_vortex_new_pcm()
[all …]
/linux/sound/pci/emu10k1/
H A Demumixer.c30 struct snd_kcontrol_new kctl = *tpl; in add_ctls() local
34 kctl.name = ctls[i]; in add_ctls()
35 kctl.private_value = i; in add_ctls()
36 err = snd_ctl_add(emu->card, snd_ctl_new1(&kctl, emu)); in add_ctls()
1993 struct snd_kcontrol *kctl = snd_ctl_find_id_mixer(card, src); in rename_ctl() local
1994 if (kctl) { in rename_ctl()
1995 snd_ctl_rename(card, kctl, dst); in rename_ctl()
2005 struct snd_kcontrol *kctl; in snd_emu10k1_mixer() local
2222 kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu); in snd_emu10k1_mixer()
2223 if (!kctl) in snd_emu10k1_mixer()
[all …]
/linux/sound/pci/ac97/
H A Dac97_codec.c679 static void set_inv_eapd(struct snd_ac97 *ac97, struct snd_kcontrol *kctl) in set_inv_eapd() argument
681 kctl->private_value = AC97_SINGLE_VALUE(AC97_POWERDOWN, 15, 1, 0); in set_inv_eapd()
1170 struct snd_kcontrol *kctl; in snd_ac97_cmute_new_stereo() local
1191 kctl = snd_ctl_new1(&tmp, ac97); in snd_ac97_cmute_new_stereo()
1197 kctl = snd_ctl_new1(&tmp, ac97); in snd_ac97_cmute_new_stereo()
1199 err = snd_ctl_add(card, kctl); in snd_ac97_cmute_new_stereo()
1226 static void set_tlv_db_scale(struct snd_kcontrol *kctl, const unsigned int *tlv) in set_tlv_db_scale() argument
1228 kctl->tlv.p = tlv; in set_tlv_db_scale()
1230 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in set_tlv_db_scale()
1240 struct snd_kcontrol *kctl; in snd_ac97_cvol_new() local
[all …]
/linux/drivers/usb/gadget/function/
H A Du_audio.c1186 struct snd_kcontrol *kctl; in g_audio_setup() local
1288 kctl = snd_ctl_new1(&u_audio_controls[UAC_FBACK_CTRL], in g_audio_setup()
1290 if (!kctl) { in g_audio_setup()
1295 kctl->id.device = pcm->device; in g_audio_setup()
1296 kctl->id.subdevice = 0; in g_audio_setup()
1298 err = snd_ctl_add(card, kctl); in g_audio_setup()
1304 kctl = snd_ctl_new1(&u_audio_controls[UAC_P_PITCH_CTRL], in g_audio_setup()
1306 if (!kctl) { in g_audio_setup()
1311 kctl->id.device = pcm->device; in g_audio_setup()
1312 kctl->id.subdevice = 0; in g_audio_setup()
[all …]
/linux/sound/drivers/
H A Dmts64.c429 static int snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_get() argument
432 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_get()
443 static int snd_mts64_ctl_smpte_switch_put(struct snd_kcontrol* kctl, in snd_mts64_ctl_smpte_switch_put() argument
446 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_switch_put()
481 static int snd_mts64_ctl_smpte_time_h_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_h_info() argument
491 static int snd_mts64_ctl_smpte_time_f_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_f_info() argument
501 static int snd_mts64_ctl_smpte_time_info(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_info() argument
511 static int snd_mts64_ctl_smpte_time_get(struct snd_kcontrol *kctl, in snd_mts64_ctl_smpte_time_get() argument
514 struct mts64 *mts = snd_kcontrol_chip(kctl); in snd_mts64_ctl_smpte_time_get()
515 int idx = kctl->private_value; in snd_mts64_ctl_smpte_time_get()
[all …]
/linux/sound/soc/intel/atom/
H A Dsst-atom-controls.c307 bc = (void *)algo->kctl->private_value; in sst_find_and_send_pipe_algo()
310 algo->kctl->id.name, pipe); in sst_find_and_send_pipe_algo()
608 struct snd_kcontrol *kctl = gain->kctl; in sst_set_pipe_gain() local
610 dev_dbg(&drv->pdev->dev, "control name=%s\n", kctl->id.name); in sst_set_pipe_gain()
611 mc = (void *)kctl->private_value; in sst_set_pipe_gain()
1387 static int sst_fill_module_list(struct snd_kcontrol *kctl, in sst_fill_module_list() argument
1400 struct sst_gain_mixer_control *mc = (void *)kctl->private_value; in sst_fill_module_list()
1403 module->kctl = kctl; in sst_fill_module_list()
1406 struct sst_algo_control *bc = (void *)kctl->private_value; in sst_fill_module_list()
1409 module->kctl = kctl; in sst_fill_module_list()
[all …]
/linux/sound/i2c/other/
H A Dak4114.c451 struct snd_kcontrol *kctl; in snd_ak4114_build() local
460 kctl = snd_ctl_new1(&snd_ak4114_iec958_controls[idx], ak4114); in snd_ak4114_build()
461 if (kctl == NULL) in snd_ak4114_build()
463 if (strstr(kctl->id.name, "Playback")) { in snd_ak4114_build()
465 snd_ctl_free_one(kctl); in snd_ak4114_build()
469 kctl->id.device = ply_substream->pcm->device; in snd_ak4114_build()
470 kctl->id.subdevice = ply_substream->number; in snd_ak4114_build()
472 kctl->id.device = cap_substream->pcm->device; in snd_ak4114_build()
473 kctl->id.subdevice = cap_substream->number; in snd_ak4114_build()
475 err = snd_ctl_add(ak4114->card, kctl); in snd_ak4114_build()
[all …]
/linux/sound/pci/ice1712/
H A Dpsc724.c180 struct snd_kcontrol *kctl; in psc724_set_jack_state() local
189 kctl = snd_ctl_find_id_mixer(ice->card, in psc724_set_jack_state()
191 if (kctl) in psc724_set_jack_state()
192 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()
194 kctl = snd_ctl_find_id_mixer(ice->card, in psc724_set_jack_state()
196 if (kctl) in psc724_set_jack_state()
197 snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); in psc724_set_jack_state()

1234