• Home
  • Raw
  • Download

Lines Matching full:timer

2  * \file timer/timer_query.c
6 * Timer Query Interface is designed to obtain identification of timers.
9 * Timer Query Interface - main file
31 static int snd_timer_query_open_conf(snd_timer_query_t **timer, in snd_timer_query_open_conf() argument
49 SNDERR("Invalid type for TIMER %s definition", name); in snd_timer_query_open_conf()
51 SNDERR("Invalid type for TIMER definition"); in snd_timer_query_open_conf()
72 SNDERR("Invalid type for TIMER type %s definition", str); in snd_timer_query_open_conf()
127 err = open_func(timer, name, timer_root, timer_conf, mode); in snd_timer_query_open_conf()
131 (*timer)->dl_handle = h; in snd_timer_query_open_conf()
136 static int snd_timer_query_open_noupdate(snd_timer_query_t **timer, snd_config_t *root, const char … in snd_timer_query_open_noupdate() argument
142 SNDERR("Unknown timer %s", name); in snd_timer_query_open_noupdate()
145 err = snd_timer_query_open_conf(timer, name, root, timer_conf, mode); in snd_timer_query_open_noupdate()
151 * \brief Opens a new connection to the timer query interface.
152 * \param timer Returned handle (NULL if not wanted)
160 int snd_timer_query_open(snd_timer_query_t **timer, const char *name, int mode) in snd_timer_query_open() argument
165 assert(timer && name); in snd_timer_query_open()
169 err = snd_timer_query_open_noupdate(timer, top, name, mode); in snd_timer_query_open()
175 * \brief Opens a new connection to the timer query interface using local configuration
176 * \param timer Returned handle (NULL if not wanted)
185 int snd_timer_query_open_lconf(snd_timer_query_t **timer, const char *name, in snd_timer_query_open_lconf() argument
188 assert(timer && name && lconf); in snd_timer_query_open_lconf()
189 return snd_timer_query_open_noupdate(timer, lconf, name, mode); in snd_timer_query_open_lconf()
193 * \brief close timer query handle
194 * \param timer timer handle
197 * Closes the specified timer handle and frees all associated
200 int snd_timer_query_close(snd_timer_query_t *timer) in snd_timer_query_close() argument
203 assert(timer); in snd_timer_query_close()
204 err = timer->ops->close(timer); in snd_timer_query_close()
205 if (timer->dl_handle) in snd_timer_query_close()
206 snd_dlclose(timer->dl_handle); in snd_timer_query_close()
207 free(timer->name); in snd_timer_query_close()
208 free(timer); in snd_timer_query_close()
213 * \brief obtain the next timer identification
214 * \param timer timer handle
215 * \param tid timer identification
221 int snd_timer_query_next_device(snd_timer_query_t *timer, snd_timer_id_t *tid) in snd_timer_query_next_device() argument
223 assert(timer); in snd_timer_query_next_device()
225 return timer->ops->next_device(timer, tid); in snd_timer_query_next_device()
279 * \brief set timer identification
291 * \brief get timer identification
301 * \brief get timer flags
303 * \return timer flags
311 * \brief get associated card with timer
321 * \brief get timer identification
323 * \return timer identification
331 * \brief get timer name
333 * \return timer name
341 * \brief get timer resolution in ns
343 * \return timer resolution in ns
351 * \brief get timer minimal resolution in ns
353 * \return timer minimal resolution in ns
361 * \brief get timer maximal resolution in ns
363 * \return timer maximal resolution in ns
371 * \brief get current timer clients
373 * \return current timer clients
381 * \brief obtain the timer global information
382 * \param timer timer handle
383 * \param info timer information
387 EXPORT_SYMBOL int INTERNAL(snd_timer_query_info)(snd_timer_query_t *timer, snd_timer_ginfo_t *info) in INTERNAL()
389 int snd_timer_query_info(snd_timer_query_t *timer, snd_timer_ginfo_t *info) in INTERNAL()
392 assert(timer); in INTERNAL()
394 return timer->ops->info(timer, info); in INTERNAL()
399 * \brief set the timer global parameters
400 * \param timer timer handle
401 * \param params timer parameters
405 EXPORT_SYMBOL int INTERNAL(snd_timer_query_params)(snd_timer_query_t *timer, snd_timer_gparams_t *p… in INTERNAL()
407 int snd_timer_query_params(snd_timer_query_t *timer, snd_timer_gparams_t *params) in INTERNAL()
410 assert(timer); in INTERNAL()
412 return timer->ops->params(timer, params); in INTERNAL()
417 * \brief get the timer global status
418 * \param timer timer handle
419 * \param status timer status
423 EXPORT_SYMBOL int INTERNAL(snd_timer_query_status)(snd_timer_query_t *timer, snd_timer_gstatus_t *s… in INTERNAL()
425 int snd_timer_query_status(snd_timer_query_t *timer, snd_timer_gstatus_t *status) in INTERNAL()
428 assert(timer); in INTERNAL()
430 return timer->ops->status(timer, status); in INTERNAL()
485 * \brief set timer class
487 * \param dev_class class of timer device
496 * \brief get timer class
498 * \return timer class
507 * \brief set timer sub-class
509 * \param dev_sclass sub-class of timer device
518 * \brief get timer sub-class
520 * \return timer sub-class
529 * \brief set timer card
540 * \brief get timer card
542 * \return timer card number
551 * \brief set timer device
562 * \brief get timer device
564 * \return timer device number
573 * \brief set timer subdevice
584 * \brief get timer subdevice
586 * \return timer subdevice number