mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
added full async interface to timer API
- added snd_async_add_timer_handler and snd_async_handler_get_timer functions - added async command to test/timer.c
This commit is contained in:
parent
a022bc1fbc
commit
8ec3e4ea6c
7 changed files with 99 additions and 3 deletions
|
|
@ -265,6 +265,7 @@ int snd_timer_hw_open(snd_timer_t **handle, const char *name, int dev_class, int
|
|||
tmr->name = strdup(name);
|
||||
tmr->poll_fd = fd;
|
||||
tmr->ops = &snd_timer_hw_ops;
|
||||
INIT_LIST_HEAD(&tmr->async_handlers);
|
||||
*handle = tmr;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue