Lines Matching refs:control
122 struct snd_kcontrol *control; in snd_ctl_release() local
132 list_for_each_entry(control, &card->controls, list) in snd_ctl_release()
133 for (idx = 0; idx < control->count; idx++) in snd_ctl_release()
134 if (control->vd[idx].owner == ctl) in snd_ctl_release()
135 control->vd[idx].owner = NULL; in snd_ctl_release()
886 struct snd_ctl_elem_value *control) in snd_ctl_elem_read() argument
892 kctl = snd_ctl_find_id(card, &control->id); in snd_ctl_elem_read()
896 index_offset = snd_ctl_get_ioff(kctl, &control->id); in snd_ctl_elem_read()
901 snd_ctl_build_ioff(&control->id, kctl, index_offset); in snd_ctl_elem_read()
902 return kctl->get(kctl, control); in snd_ctl_elem_read()
908 struct snd_ctl_elem_value *control; in snd_ctl_elem_read_user() local
911 control = memdup_user(_control, sizeof(*control)); in snd_ctl_elem_read_user()
912 if (IS_ERR(control)) in snd_ctl_elem_read_user()
913 return PTR_ERR(control); in snd_ctl_elem_read_user()
920 result = snd_ctl_elem_read(card, control); in snd_ctl_elem_read_user()
925 if (copy_to_user(_control, control, sizeof(*control))) in snd_ctl_elem_read_user()
928 kfree(control); in snd_ctl_elem_read_user()
933 struct snd_ctl_elem_value *control) in snd_ctl_elem_write() argument
940 kctl = snd_ctl_find_id(card, &control->id); in snd_ctl_elem_write()
944 index_offset = snd_ctl_get_ioff(kctl, &control->id); in snd_ctl_elem_write()
951 snd_ctl_build_ioff(&control->id, kctl, index_offset); in snd_ctl_elem_write()
952 result = kctl->put(kctl, control); in snd_ctl_elem_write()
957 struct snd_ctl_elem_id id = control->id; in snd_ctl_elem_write()
967 struct snd_ctl_elem_value *control; in snd_ctl_elem_write_user() local
971 control = memdup_user(_control, sizeof(*control)); in snd_ctl_elem_write_user()
972 if (IS_ERR(control)) in snd_ctl_elem_write_user()
973 return PTR_ERR(control); in snd_ctl_elem_write_user()
981 result = snd_ctl_elem_write(card, file, control); in snd_ctl_elem_write_user()
986 if (copy_to_user(_control, control, sizeof(*control))) in snd_ctl_elem_write_user()
989 kfree(control); in snd_ctl_elem_write_user()
1877 struct snd_kcontrol *control; in snd_ctl_dev_free() local
1881 control = snd_kcontrol(card->controls.next); in snd_ctl_dev_free()
1882 snd_ctl_remove(card, control); in snd_ctl_dev_free()