Implemented snd_pcm_sw_params_(set|get)_period_event for interrupt wakeup like behaviour

Actually, PCM timer is used as source for poll(). It might be optimized
in the kernel code later.
This commit is contained in:
Jaroslav Kysela 2008-05-09 16:02:02 +02:00
parent c88672d86f
commit 8aaccc9484
6 changed files with 231 additions and 7 deletions

View file

@ -195,8 +195,9 @@ struct _snd_pcm {
snd_pcm_tstamp_t tstamp_mode; /* timestamp mode */
unsigned int period_step;
snd_pcm_uframes_t avail_min; /* min avail frames for wakeup */
snd_pcm_uframes_t start_threshold;
snd_pcm_uframes_t stop_threshold;
int period_event;
snd_pcm_uframes_t start_threshold;
snd_pcm_uframes_t stop_threshold;
snd_pcm_uframes_t silence_threshold; /* Silence filling happens when
noise is nearest than this */
snd_pcm_uframes_t silence_size; /* Silence filling size */