Lines Matching refs:ctl
72 snd_ctl_t *ctl; in snd_hctl_open() local
75 if ((err = snd_ctl_open(&ctl, name, mode)) < 0) in snd_hctl_open()
77 err = snd_hctl_open_ctl(hctlp, ctl); in snd_hctl_open()
79 snd_ctl_close(ctl); in snd_hctl_open()
89 int snd_hctl_open_ctl(snd_hctl_t **hctlp, snd_ctl_t *ctl) in snd_hctl_open_ctl() argument
98 hctl->ctl = ctl; in snd_hctl_open_ctl()
116 err = snd_ctl_close(hctl->ctl); in snd_hctl_close()
133 return snd_ctl_name(hctl->ctl); in snd_hctl_name()
145 return snd_ctl_nonblock(hctl->ctl, nonblock); in snd_hctl_nonblock()
160 return snd_ctl_async(hctl->ctl, sig, pid); in snd_hctl_async()
171 return snd_ctl_poll_descriptors_count(hctl->ctl); in snd_hctl_poll_descriptors_count()
184 return snd_ctl_poll_descriptors(hctl->ctl, pfds, space); in snd_hctl_poll_descriptors()
198 return snd_ctl_poll_descriptors_revents(hctl->ctl, pfds, nfds, revents); in snd_hctl_poll_descriptors_revents()
572 assert(hctl->ctl); in snd_hctl_load()
576 if ((err = snd_ctl_elem_list(hctl->ctl, &list)) < 0) in snd_hctl_load()
582 if ((err = snd_ctl_elem_list(hctl->ctl, &list)) < 0) in snd_hctl_load()
618 err = snd_ctl_subscribe_events(hctl->ctl, 1); in snd_hctl_load()
699 if (errno == EINTR && !CTLINABORT(hctl->ctl)) in snd_hctl_wait()
726 return hctl->ctl; in snd_hctl_ctl()
735 assert(hctl->ctl); in snd_hctl_handle_event()
786 assert(hctl->ctl); in snd_hctl_handle_events()
787 while ((res = snd_ctl_read(hctl->ctl, &event)) != 0 && in snd_hctl_handle_events()
811 return snd_ctl_elem_info(elem->hctl->ctl, info); in snd_hctl_elem_info()
826 return snd_ctl_elem_read(elem->hctl->ctl, value); in snd_hctl_elem_read()
843 return snd_ctl_elem_write(elem->hctl->ctl, value); in snd_hctl_elem_write()
858 return snd_ctl_elem_tlv_read(elem->hctl->ctl, &elem->id, tlv, tlv_size); in snd_hctl_elem_tlv_read()
874 return snd_ctl_elem_tlv_write(elem->hctl->ctl, &elem->id, tlv); in snd_hctl_elem_tlv_write()
890 return snd_ctl_elem_tlv_command(elem->hctl->ctl, &elem->id, tlv); in snd_hctl_elem_tlv_command()