/kernel/linux/linux-5.10/sound/core/ |
H A D | control.c | 187 * @kctl: the pointer to store new control instance 198 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument 206 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new() 207 if (!*kctl) in snd_ctl_new() 211 (*kctl)->vd[idx].access = access; in snd_ctl_new() 212 (*kctl)->vd[idx].owner = file; in snd_ctl_new() 214 (*kctl)->count = count; in snd_ctl_new() 233 struct snd_kcontrol *kctl; in snd_ctl_new1() local 256 err = snd_ctl_new(&kctl, coun in snd_ctl_new1() 305 struct snd_kcontrol *kctl; snd_ctl_remove_numid_conflict() local 493 struct snd_kcontrol *kctl; snd_ctl_remove_id() local 522 struct snd_kcontrol *kctl; snd_ctl_remove_user_ctl() local 564 struct snd_kcontrol *kctl; snd_ctl_activate_id() local 611 struct snd_kcontrol *kctl; snd_ctl_rename_id() local 642 struct snd_kcontrol *kctl; snd_ctl_find_numid() local 670 struct snd_kcontrol *kctl; snd_ctl_find_id() local 723 struct snd_kcontrol *kctl; snd_ctl_elem_list() local 960 __snd_ctl_elem_info(struct snd_card *card, struct snd_kcontrol *kctl, struct snd_ctl_elem_info *info, struct snd_ctl_file *ctl) __snd_ctl_elem_info() argument 998 struct snd_kcontrol *kctl; snd_ctl_elem_info() local 1035 struct snd_kcontrol *kctl; snd_ctl_elem_read() local 1109 struct snd_kcontrol *kctl; snd_ctl_elem_write() local 1172 struct snd_kcontrol *kctl; snd_ctl_elem_lock() local 1200 struct snd_kcontrol *kctl; snd_ctl_elem_unlock() local 1300 replace_user_tlv(struct snd_kcontrol *kctl, unsigned int __user *buf, unsigned int size) replace_user_tlv() argument 1345 read_user_tlv(struct snd_kcontrol *kctl, unsigned int __user *buf, unsigned int size) read_user_tlv() argument 1362 snd_ctl_elem_user_tlv(struct snd_kcontrol *kctl, int op_flag, unsigned int size, unsigned int __user *buf) snd_ctl_elem_user_tlv() argument 1418 struct snd_kcontrol *kctl; snd_ctl_elem_add() local 1596 call_tlv_handler(struct snd_ctl_file *file, int op_flag, struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id, unsigned int __user *buf, unsigned int size) call_tlv_handler() argument 1631 read_tlv_buf(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id, unsigned int __user *buf, unsigned int size) read_tlv_buf() argument 1660 struct snd_kcontrol *kctl; snd_ctl_tlv_ioctl() local 1953 struct snd_ctl_file *kctl; snd_ctl_get_preferred_subdevice() local [all...] |
H A D | ctljack.c | 65 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, boo in snd_kctl_jack_report() 77 snd_kctl_jack_report(struct snd_card *card, struct snd_kcontrol *kctl, bool status) snd_kctl_jack_report() argument [all...] |
H A D | jack.c | 16 struct snd_kcontrol *kctl; member 18 unsigned int mask_bits; /* only masked status bits are reported via kctl */ 64 snd_ctl_remove(card, jack_kctl->kctl); in snd_jack_dev_free() 123 static void snd_jack_kctl_private_free(struct snd_kcontrol *kctl) in snd_jack_kctl_private_free() argument 127 jack_kctl = kctl->private_data; in snd_jack_kctl_private_free() 141 struct snd_kcontrol *kctl; in snd_jack_kctl_new() local 145 kctl = snd_kctl_jack_new(name, card); in snd_jack_kctl_new() 146 if (!kctl) in snd_jack_kctl_new() 149 err = snd_ctl_add(card, kctl); in snd_jack_kctl_new() 158 jack_kctl->kctl in snd_jack_kctl_new() [all...] |
H A D | vmaster.c | 53 struct snd_kcontrol *kctl; /* original kcontrol pointer */ member 263 srec->kctl = follower; in _snd_ctl_add_follower() 363 struct snd_kcontrol *sctl = follower->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 in snd_ctl_make_virtual_master() 499 snd_ctl_apply_vmaster_followers(struct snd_kcontrol *kctl, int (*func)(struct snd_kcontrol *vfollower, struct snd_kcontrol *follower, void *arg), void *arg) snd_ctl_apply_vmaster_followers() argument [all...] |
/kernel/linux/linux-6.6/sound/core/ |
H A D | control.c | 198 * @kctl: the pointer with the control instance 205 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_notify_one() 207 struct snd_ctl_elem_id id = kctl->id; in snd_ctl_notify_one() 215 lops->lnotify(card, mask, kctl, ioff); in snd_ctl_notify_one() 222 * @kctl: the pointer to store new control instance 233 static int snd_ctl_new(struct snd_kcontrol **kctl, unsigned int count, in snd_ctl_new() argument 241 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new() 242 if (!*kctl) in snd_ctl_new() 246 (*kctl) in snd_ctl_new() 204 snd_ctl_notify_one(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int ioff) snd_ctl_notify_one() argument 268 struct snd_kcontrol *kctl; snd_ctl_new1() local 341 struct snd_kcontrol *kctl; snd_ctl_remove_numid_conflict() local 372 elem_id_matches(const struct snd_kcontrol *kctl, const struct snd_ctl_elem_id *id) elem_id_matches() argument 640 struct snd_kcontrol *kctl; snd_ctl_remove_id() local 669 struct snd_kcontrol *kctl; snd_ctl_remove_user_ctl() local 708 struct snd_kcontrol *kctl; snd_ctl_activate_id() local 764 struct snd_kcontrol *kctl; snd_ctl_rename_id() local 793 snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name) snd_ctl_rename() argument 812 struct snd_kcontrol *kctl; snd_ctl_find_numid_slow() local 862 struct snd_kcontrol *kctl; snd_ctl_find_numid() local 886 struct snd_kcontrol *kctl; snd_ctl_find_id_locked() local 923 struct snd_kcontrol *kctl; snd_ctl_find_id() local 960 struct snd_kcontrol *kctl; snd_ctl_elem_list() local 1199 __snd_ctl_elem_info(struct snd_card *card, struct snd_kcontrol *kctl, struct snd_ctl_elem_info *info, struct snd_ctl_file *ctl) __snd_ctl_elem_info() argument 1240 struct snd_kcontrol *kctl; snd_ctl_elem_info() local 1275 struct snd_kcontrol *kctl; snd_ctl_elem_read() local 1354 struct snd_kcontrol *kctl; snd_ctl_elem_write() local 1434 struct snd_kcontrol *kctl; snd_ctl_elem_lock() local 1462 struct snd_kcontrol *kctl; snd_ctl_elem_unlock() local 1569 replace_user_tlv(struct snd_kcontrol *kctl, unsigned int __user *buf, unsigned int size) replace_user_tlv() argument 1622 read_user_tlv(struct snd_kcontrol *kctl, unsigned int __user *buf, unsigned int size) read_user_tlv() argument 1639 snd_ctl_elem_user_tlv(struct snd_kcontrol *kctl, int op_flag, unsigned int size, unsigned int __user *buf) snd_ctl_elem_user_tlv() argument 1712 struct snd_kcontrol *kctl; snd_ctl_elem_add() local 1890 call_tlv_handler(struct snd_ctl_file *file, int op_flag, struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id, unsigned int __user *buf, unsigned int size) call_tlv_handler() argument 1929 read_tlv_buf(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id, unsigned int __user *buf, unsigned int size) read_tlv_buf() argument 1958 struct snd_kcontrol *kctl; snd_ctl_tlv_ioctl() local 2257 struct snd_ctl_file *kctl; snd_ctl_get_preferred_subdevice() local [all...] |
H A D | ctljack.c | 65 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, boo in snd_kctl_jack_report() 77 snd_kctl_jack_report(struct snd_card *card, struct snd_kcontrol *kctl, bool status) snd_kctl_jack_report() argument [all...] |
H A D | control_led.c | 50 struct snd_kcontrol *kctl; member 108 struct snd_kcontrol *kctl = lctl->kctl; in snd_ctl_led_get() local 113 info.id = kctl->id; in snd_ctl_led_get() 116 result = kctl->info(kctl, &info); in snd_ctl_led_get() 121 result = kctl->get(kctl, &value); in snd_ctl_led_get() 138 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_set_state() 157 if (lctl->kctl in snd_ctl_led_set_state() 137 snd_ctl_led_set_state(struct snd_card *card, unsigned int access, struct snd_kcontrol *kctl, unsigned int ioff) snd_ctl_led_set_state() argument 183 snd_ctl_led_find(struct snd_kcontrol *kctl, unsigned int ioff) snd_ctl_led_find() argument 198 snd_ctl_led_remove(struct snd_kcontrol *kctl, unsigned int ioff, unsigned int access) snd_ctl_led_remove() argument 215 snd_ctl_led_notify(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int ioff) snd_ctl_led_notify() argument 246 struct snd_kcontrol *kctl; snd_ctl_led_set_id() local 350 struct snd_kcontrol *kctl; snd_ctl_led_register() local [all...] |
H A D | jack.c | 19 struct snd_kcontrol *kctl; member 21 unsigned int mask_bits; /* only masked status bits are reported via kctl */ 71 snd_ctl_remove(card, jack_kctl->kctl); in snd_jack_dev_free() 142 snd_kctl_jack_report(jack->card, jack_kctl->kctl, in snd_jack_inject_report() 177 len = scnprintf(buf, sizeof(buf), "%s: %s\t\t%s: %i\n", "Jack", jack_kctl->kctl->id.name, in sw_inject_enable_read() 236 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->id.name); in jack_kctl_id_read() 287 len = scnprintf(buf, sizeof(buf), "%s\n", jack_kctl->kctl->private_value ? in jack_kctl_status_read() 353 if (strstr(jack_kctl->kctl->id.name, "Phantom")) in snd_jack_debugfs_add_inject_node() 356 tname = kstrdup(jack_kctl->kctl->id.name, GFP_KERNEL); in snd_jack_debugfs_add_inject_node() 407 static void snd_jack_kctl_private_free(struct snd_kcontrol *kctl) in snd_jack_kctl_private_free() argument 428 struct snd_kcontrol *kctl; snd_jack_kctl_new() local [all...] |
H A D | vmaster.c | 53 struct snd_kcontrol *kctl; /* original kcontrol pointer */ member 263 srec->kctl = follower; in _snd_ctl_add_follower() 391 struct snd_kcontrol *sctl = follower->kctl; in master_free() 424 struct snd_kcontrol *kctl; in snd_ctl_make_virtual_master() local 437 kctl = snd_ctl_new1(&knew, master); in snd_ctl_make_virtual_master() 438 if (!kctl) { in snd_ctl_make_virtual_master() 443 kctl->info = master_info; in snd_ctl_make_virtual_master() 444 kctl->get = master_get; in snd_ctl_make_virtual_master() 445 kctl->put = master_put; in snd_ctl_make_virtual_master() 446 kctl in snd_ctl_make_virtual_master() 528 snd_ctl_apply_vmaster_followers(struct snd_kcontrol *kctl, int (*func)(struct snd_kcontrol *vfollower, struct snd_kcontrol *follower, void *arg), void *arg) snd_ctl_apply_vmaster_followers() argument [all...] |
/kernel/linux/linux-5.10/include/sound/ |
H A D | control.h | 145 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioffnum() argument 147 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum() 148 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum() 151 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioffidx() argument 153 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx() 154 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx() 157 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioff() argument 160 return snd_ctl_get_ioffnum(kctl, id); in snd_ctl_get_ioff() 162 return snd_ctl_get_ioffidx(kctl, id); in snd_ctl_get_ioff() 245 int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kctl, [all...] |
/kernel/linux/linux-6.6/include/sound/ |
H A D | control.h | 122 void (*lnotify)(struct snd_card *card, unsigned int mask, struct snd_kcontrol *kctl, unsigned int ioff); 132 void snd_ctl_notify_one(struct snd_card * card, unsigned int mask, struct snd_kcontrol * kctl, unsigned int ioff); 141 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name); 188 static inline unsigned int snd_ctl_get_ioffnum(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioffnum() argument 190 unsigned int ioff = id->numid - kctl->id.numid; in snd_ctl_get_ioffnum() 191 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffnum() 194 static inline unsigned int snd_ctl_get_ioffidx(struct snd_kcontrol *kctl, struct snd_ctl_elem_id *id) in snd_ctl_get_ioffidx() argument 196 unsigned int ioff = id->index - kctl->id.index; in snd_ctl_get_ioffidx() 197 return array_index_nospec(ioff, kctl->count); in snd_ctl_get_ioffidx() 200 static inline unsigned int snd_ctl_get_ioff(struct snd_kcontrol *kctl, struc argument [all...] |
/kernel/linux/linux-5.10/sound/usb/ |
H A D | mixer.c | 585 struct snd_kcontrol *kctl, in snd_usb_mixer_add_list() 591 while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) in snd_usb_mixer_add_list() 592 kctl->id.index++; in snd_usb_mixer_add_list() 593 err = snd_ctl_add(mixer->chip->card, kctl); in snd_usb_mixer_add_list() 599 list->kctl = kctl; in snd_usb_mixer_add_list() 1067 void snd_usb_mixer_elem_free(struct snd_kcontrol *kctl) in snd_usb_mixer_elem_free() argument 1069 usb_mixer_elem_info_free(kctl->private_data); in snd_usb_mixer_elem_free() 1070 kctl->private_data = NULL; in snd_usb_mixer_elem_free() 1079 struct snd_kcontrol *kctl) in volume_control_quirks() 584 snd_usb_mixer_add_list(struct usb_mixer_elem_list *list, struct snd_kcontrol *kctl, bool is_std_info) snd_usb_mixer_add_list() argument 1078 volume_control_quirks(struct usb_mixer_elem_info *cval, struct snd_kcontrol *kctl) volume_control_quirks() argument 1201 get_min_max_with_quirks(struct usb_mixer_elem_info *cval, int default_min, struct snd_kcontrol *kctl) get_min_max_with_quirks() argument 1540 append_ctl_name(struct snd_kcontrol *kctl, const char *str) append_ctl_name() argument 1550 check_no_speaker_on_headset(struct snd_kcontrol *kctl, struct snd_card *card) check_no_speaker_on_headset() argument 1594 struct snd_kcontrol *kctl; __build_feature_ctl() local 1802 struct snd_kcontrol *kctl; build_connector_control() local 1854 struct snd_kcontrol *kctl; parse_clock_source_unit() local 2077 struct snd_kcontrol *kctl; build_mixer_unit_ctl() local 2384 struct snd_kcontrol *kctl; build_audio_procunit() local 2627 usb_mixer_selector_elem_free(struct snd_kcontrol *kctl) usb_mixer_selector_elem_free() argument 2656 struct snd_kcontrol *kctl; parse_audio_selector_unit() local 3508 struct snd_kcontrol *kctl = snd_ctl_new1(&keep_iface_ctl, mixer); create_keep_iface_ctl() local [all...] |
H A D | mixer_s1810c.c | 330 * whose index is specified in (kctl->private_value & 0xFF), 335 struct snd_kcontrol *kctl, u32 *state) in snd_s1810c_get_switch_state() 340 u32 ctl_idx = (u32) (kctl->private_value & 0xFF); in snd_s1810c_get_switch_state() 357 * specified in (kctl->private_value >> 8) with value 358 * specified in (kctl->private_value >> 16). 362 struct snd_kcontrol *kctl) in snd_s1810c_set_switch_state() 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 in snd_s1810c_switch_get() 334 snd_s1810c_get_switch_state(struct usb_mixer_interface *mixer, struct snd_kcontrol *kctl, u32 *state) snd_s1810c_get_switch_state() argument 361 snd_s1810c_set_switch_state(struct usb_mixer_interface *mixer, struct snd_kcontrol *kctl) snd_s1810c_set_switch_state() argument 411 snd_s1810c_switch_set(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ctl_elem) snd_s1810c_switch_set() argument 453 struct snd_kcontrol *kctl; snd_s1810c_switch_init() local 476 snd_s1810c_line_sw_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) snd_s1810c_line_sw_info() argument 515 snd_s1810c_ab_sw_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) snd_s1810c_ab_sw_info() argument [all...] |
H A D | mixer_scarlett.c | 232 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 333 scarlett_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_put() argument 377 scarlett_ctl_enum_dynamic_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett_ctl_enum_dynamic_info() argument 399 scarlett_ctl_enum_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett_ctl_enum_info() argument 409 scarlett_ctl_enum_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_get() argument 427 scarlett_ctl_enum_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_put() argument 456 scarlett_ctl_meter_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_meter_get() argument 545 struct snd_kcontrol *kctl; add_new_ctl() local [all...] |
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_cs_dsp_ctl.c | 20 struct snd_kcontrol *kctl; member 38 static int hda_cs_dsp_coeff_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) in hda_cs_dsp_coeff_info() argument 40 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_info() 49 static int hda_cs_dsp_coeff_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in hda_cs_dsp_coeff_put() argument 51 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_put() 63 static int hda_cs_dsp_coeff_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) in hda_cs_dsp_coeff_get() argument 65 struct hda_cs_dsp_coeff_ctl *ctl = (struct hda_cs_dsp_coeff_ctl *)snd_kcontrol_chip(kctl); in hda_cs_dsp_coeff_get() 104 struct snd_kcontrol *kctl; in hda_cs_dsp_add_kcontrol() local 122 kctl = snd_ctl_new1(&kcontrol, (void *)ctl); in hda_cs_dsp_add_kcontrol() 123 if (!kctl) in hda_cs_dsp_add_kcontrol() [all...] |
/kernel/linux/linux-6.6/sound/usb/ |
H A D | mixer.c | 590 struct snd_kcontrol *kctl, in snd_usb_mixer_add_list() 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() 589 snd_usb_mixer_add_list(struct usb_mixer_elem_list *list, struct snd_kcontrol *kctl, bool is_std_info) snd_usb_mixer_add_list() argument 1083 volume_control_quirks(struct usb_mixer_elem_info *cval, struct snd_kcontrol *kctl) volume_control_quirks() argument 1238 get_min_max_with_quirks(struct usb_mixer_elem_info *cval, int default_min, struct snd_kcontrol *kctl) get_min_max_with_quirks() argument 1611 append_ctl_name(struct snd_kcontrol *kctl, const char *str) append_ctl_name() argument 1621 check_no_speaker_on_headset(struct snd_kcontrol *kctl, struct snd_card *card) check_no_speaker_on_headset() argument 1665 struct snd_kcontrol *kctl; __build_feature_ctl() local 1882 struct snd_kcontrol *kctl; build_connector_control() local 1938 struct snd_kcontrol *kctl; parse_clock_source_unit() local 2159 struct snd_kcontrol *kctl; build_mixer_unit_ctl() local 2466 struct snd_kcontrol *kctl; build_audio_procunit() local 2709 usb_mixer_selector_elem_free(struct snd_kcontrol *kctl) usb_mixer_selector_elem_free() argument 2738 struct snd_kcontrol *kctl; parse_audio_selector_unit() local [all...] |
H A D | mixer_s1810c.c | 330 * whose index is specified in (kctl->private_value & 0xFF), 335 struct snd_kcontrol *kctl, u32 *state) in snd_s1810c_get_switch_state() 340 u32 ctl_idx = (u32) (kctl->private_value & 0xFF); in snd_s1810c_get_switch_state() 357 * specified in (kctl->private_value >> 8) with value 358 * specified in (kctl->private_value >> 16). 362 struct snd_kcontrol *kctl) in snd_s1810c_set_switch_state() 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 in snd_s1810c_switch_get() 334 snd_s1810c_get_switch_state(struct usb_mixer_interface *mixer, struct snd_kcontrol *kctl, u32 *state) snd_s1810c_get_switch_state() argument 361 snd_s1810c_set_switch_state(struct usb_mixer_interface *mixer, struct snd_kcontrol *kctl) snd_s1810c_set_switch_state() argument 411 snd_s1810c_switch_set(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ctl_elem) snd_s1810c_switch_set() argument 453 struct snd_kcontrol *kctl; snd_s1810c_switch_init() local 476 snd_s1810c_line_sw_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) snd_s1810c_line_sw_info() argument 515 snd_s1810c_ab_sw_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) snd_s1810c_ab_sw_info() argument [all...] |
H A D | mixer_scarlett.c | 232 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 333 scarlett_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_put() argument 377 scarlett_ctl_enum_dynamic_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett_ctl_enum_dynamic_info() argument 399 scarlett_ctl_enum_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett_ctl_enum_info() argument 409 scarlett_ctl_enum_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_get() argument 427 scarlett_ctl_enum_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_enum_put() argument 456 scarlett_ctl_meter_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett_ctl_meter_get() argument 545 struct snd_kcontrol *kctl; add_new_ctl() local [all...] |
H A D | mixer_scarlett_gen2.c | 1736 struct snd_kcontrol *kctl; in scarlett2_add_new_ctl() local 1754 kctl = snd_ctl_new1(ncontrol, elem); in scarlett2_add_new_ctl() 1755 if (!kctl) { in scarlett2_add_new_ctl() 1759 kctl->private_free = snd_usb_mixer_elem_free; in scarlett2_add_new_ctl() 1761 strscpy(kctl->id.name, name, sizeof(kctl->id.name)); in scarlett2_add_new_ctl() 1763 err = snd_usb_mixer_add_control(&elem->head, kctl); in scarlett2_add_new_ctl() 1768 *kctl_return = kctl; in scarlett2_add_new_ctl() 1786 static int scarlett2_sync_ctl_info(struct snd_kcontrol *kctl, in scarlett2_sync_ctl_info() argument 1795 static int scarlett2_sync_ctl_get(struct snd_kcontrol *kctl, in scarlett2_sync_ctl_get() argument 1878 scarlett2_volume_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_volume_ctl_info() argument 1891 scarlett2_master_volume_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_master_volume_ctl_get() argument 1929 scarlett2_volume_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_volume_ctl_get() argument 1952 scarlett2_volume_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_volume_ctl_put() argument 2009 scarlett2_mute_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_mute_ctl_get() argument 2032 scarlett2_mute_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_mute_ctl_put() argument 2084 scarlett2_sw_hw_enum_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_sw_hw_enum_ctl_info() argument 2094 scarlett2_sw_hw_enum_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_sw_hw_enum_ctl_get() argument 2170 scarlett2_sw_hw_enum_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_sw_hw_enum_ctl_put() argument 2256 scarlett2_level_enum_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_level_enum_ctl_info() argument 2266 scarlett2_level_enum_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_level_enum_ctl_get() argument 2291 scarlett2_level_enum_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_level_enum_ctl_put() argument 2333 scarlett2_pad_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_pad_ctl_get() argument 2356 scarlett2_pad_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_pad_ctl_put() argument 2397 scarlett2_air_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_air_ctl_get() argument 2419 scarlett2_air_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_air_ctl_put() argument 2460 scarlett2_phantom_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_phantom_ctl_get() argument 2483 scarlett2_phantom_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_phantom_ctl_put() argument 2524 scarlett2_phantom_persistence_ctl_get( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_phantom_persistence_ctl_get() argument 2534 scarlett2_phantom_persistence_ctl_put( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_phantom_persistence_ctl_put() argument 2646 scarlett2_direct_monitor_ctl_get( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_direct_monitor_ctl_get() argument 2668 scarlett2_direct_monitor_ctl_put( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_direct_monitor_ctl_put() argument 2699 scarlett2_direct_monitor_stereo_enum_ctl_info( struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_direct_monitor_stereo_enum_ctl_info() argument 2749 scarlett2_speaker_switch_enum_ctl_info( struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_speaker_switch_enum_ctl_info() argument 2759 scarlett2_speaker_switch_enum_ctl_get( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_speaker_switch_enum_ctl_get() argument 2838 scarlett2_speaker_switch_enum_ctl_put( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_speaker_switch_enum_ctl_put() argument 2910 scarlett2_talkback_enum_ctl_info( struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_talkback_enum_ctl_info() argument 2920 scarlett2_talkback_enum_ctl_get( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_talkback_enum_ctl_get() argument 2942 scarlett2_talkback_enum_ctl_put( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_talkback_enum_ctl_put() argument 2988 scarlett2_talkback_map_ctl_get( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_talkback_map_ctl_get() argument 3001 scarlett2_talkback_map_ctl_put( struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_talkback_map_ctl_put() argument 3081 scarlett2_dim_mute_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_dim_mute_ctl_get() argument 3103 scarlett2_dim_mute_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_dim_mute_ctl_put() argument 3327 scarlett2_mixer_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_mixer_ctl_info() argument 3340 scarlett2_mixer_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_mixer_ctl_get() argument 3350 scarlett2_mixer_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_mixer_ctl_put() argument 3430 scarlett2_mux_src_enum_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_mux_src_enum_ctl_info() argument 3465 scarlett2_mux_src_enum_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_mux_src_enum_ctl_get() argument 3488 scarlett2_mux_src_enum_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_mux_src_enum_ctl_put() argument 3559 scarlett2_meter_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *uinfo) scarlett2_meter_ctl_info() argument 3572 scarlett2_meter_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_meter_ctl_get() argument 3613 scarlett2_msd_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_msd_ctl_get() argument 3623 scarlett2_msd_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_msd_ctl_put() argument 3680 scarlett2_standalone_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_standalone_ctl_get() argument 3690 scarlett2_standalone_ctl_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *ucontrol) scarlett2_standalone_ctl_put() argument [all...] |
/kernel/linux/linux-5.10/sound/firewire/bebob/ |
H A D | bebob_maudio.c | 355 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 481 special_dig_in_iface_ctl_set(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uval) special_dig_in_iface_ctl_set() argument 537 special_dig_out_iface_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *einf) special_dig_out_iface_ctl_info() argument 544 special_dig_out_iface_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uval) special_dig_out_iface_ctl_get() argument 554 special_dig_out_iface_ctl_set(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uval) special_dig_out_iface_ctl_set() argument 591 struct snd_kcontrol *kctl; add_special_controls() local [all...] |
/kernel/linux/linux-6.6/sound/firewire/bebob/ |
H A D | bebob_maudio.c | 355 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 481 special_dig_in_iface_ctl_set(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uval) special_dig_in_iface_ctl_set() argument 537 special_dig_out_iface_ctl_info(struct snd_kcontrol *kctl, struct snd_ctl_elem_info *einf) special_dig_out_iface_ctl_info() argument 544 special_dig_out_iface_ctl_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uval) special_dig_out_iface_ctl_get() argument 554 special_dig_out_iface_ctl_set(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uval) special_dig_out_iface_ctl_set() argument 591 struct snd_kcontrol *kctl; add_special_controls() local [all...] |
/kernel/linux/linux-5.10/sound/pci/cs5535audio/ |
H A D | cs5535audio_olpc.c | 61 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()
|
/kernel/linux/linux-6.6/sound/pci/cs5535audio/ |
H A D | cs5535audio_olpc.c | 61 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()
|
/kernel/linux/linux-6.6/sound/core/oss/ |
H A D | mixer_oss.c | 537 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_vol() local 543 kctl = snd_ctl_find_numid_locked(card, numid); in snd_mixer_oss_get_volume1_vol() 544 if (!kctl) { in snd_mixer_oss_get_volume1_vol() 552 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol() 554 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol() 576 struct snd_kcontrol *kctl; in snd_mixer_oss_get_volume1_sw() local 582 kctl = snd_ctl_find_numid_locked(card, numid); in snd_mixer_oss_get_volume1_sw() 583 if (!kctl) { in snd_mixer_oss_get_volume1_sw() 641 struct snd_kcontrol *kctl; snd_mixer_oss_put_volume1_vol() local 684 struct snd_kcontrol *kctl; snd_mixer_oss_put_volume1_sw() local 822 struct snd_kcontrol *kctl; snd_mixer_oss_get_recsrc2() local 874 struct snd_kcontrol *kctl; snd_mixer_oss_put_recsrc2() local 1059 struct snd_kcontrol *kctl; snd_mixer_oss_build_input() local [all...] |
/kernel/linux/linux-6.6/sound/pci/emu10k1/ |
H A D | emumixer.c | 30 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() 1987 struct snd_kcontrol *kctl = snd_ctl_find_id_mixer(card, src); in rename_ctl() local 1988 if (kctl) { in rename_ctl() 1989 snd_ctl_rename(card, kctl, dst); in rename_ctl() 1999 struct snd_kcontrol *kctl; in snd_emu10k1_mixer() local 2216 kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu); in snd_emu10k1_mixer() 2217 if (!kctl) in snd_emu10k1_mixer() [all...] |