Lines Matching defs:ctl
133 snd_ctl_t **ctl,
138 /* FIXME: add a list of ctl devices to uc_mgr structure and
139 cache accesses for multiple opened ctl devices */
141 *ctl = uc_mgr->ctl;
147 snd_ctl_close(uc_mgr->ctl);
150 err = snd_ctl_open(ctl, ctl_dev, 0);
155 snd_ctl_close(*ctl);
158 uc_mgr->ctl = *ctl;
166 static int execute_cset(snd_ctl_t *ctl, const char *cset)
190 err = snd_ctl_elem_read(ctl, value);
193 err = snd_ctl_elem_info(ctl, info);
196 err = snd_ctl_ascii_value_parse(ctl, value, info, pos);
199 err = snd_ctl_elem_write(ctl, value);
229 snd_ctl_t *ctl = NULL;
269 if (ctl == NULL) {
270 err = open_ctl(uc_mgr, &ctl, cdev);
272 uc_error("unable to open ctl device '%s'", cdev);
276 err = execute_cset(ctl, s->data.cset);