Check timer version for read-block workaround

Check the timer protocl version whether to use poll for a workaround
of read-block problems.
This commit is contained in:
Takashi Iwai 2005-05-15 14:48:19 +00:00
parent 0d0e1a55c2
commit 48bff53b36
2 changed files with 27 additions and 11 deletions

View file

@ -95,8 +95,10 @@ struct snd_pcm_direct {
int server, client;
int comm_fd; /* communication file descriptor (socket) */
int hw_fd; /* hardware file descriptor */
struct pollfd timer_fd;
int poll_fd;
int tread;
int timer_need_poll;
int server_fd;
pid_t server_pid;
snd_timer_t *timer; /* timer used as poll_fd */