Lines Matching defs:handle
32 static int snd_timer_query_hw_close(snd_timer_query_t *handle)
36 if (!handle)
38 res = close(handle->poll_fd) < 0 ? -errno : 0;
42 static int snd_timer_query_hw_next_device(snd_timer_query_t *handle, snd_timer_id_t * tid)
44 if (!handle || !tid)
46 if (ioctl(handle->poll_fd, SNDRV_TIMER_IOCTL_NEXT_DEVICE, tid) < 0)
51 static int snd_timer_query_hw_info(snd_timer_query_t *handle, snd_timer_ginfo_t *info)
53 if (!handle || !info)
55 if (ioctl(handle->poll_fd, SNDRV_TIMER_IOCTL_GINFO, info) < 0)
60 static int snd_timer_query_hw_params(snd_timer_query_t *handle, snd_timer_gparams_t *params)
62 if (!handle || !params)
64 if (ioctl(handle->poll_fd, SNDRV_TIMER_IOCTL_GPARAMS, params) < 0)
69 static int snd_timer_query_hw_status(snd_timer_query_t *handle, snd_timer_gstatus_t *status)
71 if (!handle || !status)
73 if (ioctl(handle->poll_fd, SNDRV_TIMER_IOCTL_GSTATUS, status) < 0)
86 int snd_timer_query_hw_open(snd_timer_query_t **handle, const char *name, int mode)
91 *handle = NULL;
117 *handle = tmr;