Lines Matching refs:ctl
183 } ctl; member
550 snd_ctl_t *ctl; in ctl_shm_open() local
553 err = snd_ctl_open(&ctl, client->name, SND_CTL_NONBLOCK); in ctl_shm_open()
556 client->device.ctl.handle = ctl; in ctl_shm_open()
557 client->device.ctl.fd = _snd_ctl_poll_descriptor(ctl); in ctl_shm_open()
574 add_waiter(client->device.ctl.fd, POLLIN, ctl_handler, client); in ctl_shm_open()
579 snd_ctl_close(ctl); in ctl_shm_open()
589 del_waiter(client->device.ctl.fd); in ctl_shm_close()
592 err = snd_ctl_close(client->device.ctl.handle); in ctl_shm_close()
615 snd_ctl_t *ctl; in ctl_shm_cmd() local
621 ctl = client->device.ctl.handle; in ctl_shm_cmd()
624 ctrl->result = snd_ctl_async(ctl, ctrl->u.async.sig, ctrl->u.async.pid); in ctl_shm_cmd()
629 ctrl->result = snd_async_add_ctl_handler(&client->async_handler, ctl, async_handler, client); in ctl_shm_cmd()
641 ctrl->result = snd_ctl_subscribe_events(ctl, ctrl->u.subscribe_events); in ctl_shm_cmd()
644 ctrl->result = snd_ctl_card_info(ctl, &ctrl->u.card_info); in ctl_shm_cmd()
654 ctrl->result = snd_ctl_elem_list(ctl, &ctrl->u.element_list); in ctl_shm_cmd()
658 ctrl->result = snd_ctl_elem_info(ctl, &ctrl->u.element_info); in ctl_shm_cmd()
661 ctrl->result = snd_ctl_elem_read(ctl, &ctrl->u.element_read); in ctl_shm_cmd()
664 ctrl->result = snd_ctl_elem_write(ctl, &ctrl->u.element_write); in ctl_shm_cmd()
667 ctrl->result = snd_ctl_elem_lock(ctl, &ctrl->u.element_lock); in ctl_shm_cmd()
670 ctrl->result = snd_ctl_elem_unlock(ctl, &ctrl->u.element_unlock); in ctl_shm_cmd()
673 ctrl->result = snd_ctl_hwdep_next_device(ctl, &ctrl->u.device); in ctl_shm_cmd()
676 ctrl->result = snd_ctl_hwdep_info(ctl, &ctrl->u.hwdep_info); in ctl_shm_cmd()
679 ctrl->result = snd_ctl_pcm_next_device(ctl, &ctrl->u.device); in ctl_shm_cmd()
682 ctrl->result = snd_ctl_pcm_info(ctl, &ctrl->u.pcm_info); in ctl_shm_cmd()
685 ctrl->result = snd_ctl_pcm_prefer_subdevice(ctl, ctrl->u.pcm_prefer_subdevice); in ctl_shm_cmd()
688 ctrl->result = snd_ctl_rawmidi_next_device(ctl, &ctrl->u.device); in ctl_shm_cmd()
691 ctrl->result = snd_ctl_rawmidi_info(ctl, &ctrl->u.rawmidi_info); in ctl_shm_cmd()
694 ctrl->result = snd_ctl_rawmidi_prefer_subdevice(ctl, ctrl->u.rawmidi_prefer_subdevice); in ctl_shm_cmd()
697 ctrl->result = snd_ctl_set_power_state(ctl, ctrl->u.power_state); in ctl_shm_cmd()
700 ctrl->result = snd_ctl_get_power_state(ctl, &ctrl->u.power_state); in ctl_shm_cmd()
703 ctrl->result = snd_ctl_read(ctl, &ctrl->u.read); in ctl_shm_cmd()
710 return shm_ack_fd(client, _snd_ctl_poll_descriptor(ctl)); in ctl_shm_cmd()