Fix more CPU hang-up bugs in dmix

- Fix CPU hang-up during snd_pcm_drain()
  A new internal function snd_pcm_wait_nocheck() to force to call poll().

- Clean up, fix status() callback of dmix
This commit is contained in:
Takashi Iwai 2005-04-11 10:03:28 +00:00
parent c915659538
commit 72ad0e9ae7
5 changed files with 102 additions and 76 deletions

View file

@ -744,6 +744,8 @@ int snd_pcm_conf_generic_id(const char *id);
int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name, int fd, int mmap_emulation, int sync_ptr_ioctl);
int snd_pcm_wait_nocheck(snd_pcm_t *pcm, int timeout);
#define SND_PCM_HW_PARBIT_ACCESS (1U << SND_PCM_HW_PARAM_ACCESS)
#define SND_PCM_HW_PARBIT_FORMAT (1U << SND_PCM_HW_PARAM_FORMAT)
#define SND_PCM_HW_PARBIT_SUBFORMAT (1U << SND_PCM_HW_PARAM_SUBFORMAT)