Lines Matching refs:timer_fd
664 pcm->timer_fd = open("/dev/snd/timer", O_RDWR | O_NONBLOCK);
665 if (pcm->timer_fd < 0) {
673 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_TREAD, &arg) < 0) {
693 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_SELECT, &sel) < 0) {
695 close(pcm->timer_fd);
704 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_PARAMS, &timer_param)< 0) {
707 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_START) < 0) {
708 close(pcm->timer_fd);
717 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_STOP) < 0)
719 return close(pcm->timer_fd);