diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-10-12 21:07:14 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-05-05 08:47:21 -0400 |
commit | 4bbe1ddf89a5ba3ec30fe5980912d8bda3a3cbb2 (patch) | |
tree | c57b1b83a23bd80535ea5b9220d07a3ab09df955 /include/sound | |
parent | 091438dd5668396328a3419abcbc6591159eb8d1 (diff) |
ALSA: Add extra delay count in PCM
Added runtime->delay field to adjust the delayed samples for snd_pcm_delay().
Typically a hardware FIFO length is stored in this field, so that the
extra delay between hwptr and applptr can be computed.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/pcm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index c17296891617..267effddb070 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -270,6 +270,7 @@ struct snd_pcm_runtime { | |||
270 | snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */ | 270 | snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */ |
271 | snd_pcm_uframes_t hw_ptr_interrupt; /* Position at interrupt time */ | 271 | snd_pcm_uframes_t hw_ptr_interrupt; /* Position at interrupt time */ |
272 | unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */ | 272 | unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */ |
273 | snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */ | ||
273 | 274 | ||
274 | /* -- HW params -- */ | 275 | /* -- HW params -- */ |
275 | snd_pcm_access_t access; /* access mode */ | 276 | snd_pcm_access_t access; /* access mode */ |