mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
pcm: direct: check state before enter poll on timer
To avoid the chances of timeout, we need to check the enter poll in state xrun. Signed-off-by: Andreas Pape <apape@de.adit-jv.com> Signed-off-by: Mounesh Sutar <mounesh_sutar@mentor.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
1a9bd0f044
commit
789ee39727
5 changed files with 63 additions and 6 deletions
|
|
@ -307,6 +307,8 @@ int snd_pcm_direct_parse_bindings(snd_pcm_direct_t *dmix,
|
|||
snd_config_t *cfg);
|
||||
int snd_pcm_direct_nonblock(snd_pcm_t *pcm, int nonblock);
|
||||
int snd_pcm_direct_async(snd_pcm_t *pcm, int sig, pid_t pid);
|
||||
int snd_pcm_direct_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds,
|
||||
unsigned int space);
|
||||
int snd_pcm_direct_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
||||
int snd_pcm_direct_info(snd_pcm_t *pcm, snd_pcm_info_t * info);
|
||||
int snd_pcm_direct_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue