diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2012-10-22 17:42:14 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-10-23 10:13:41 -0400 |
commit | 0e8014d772a7639f48d234b23dc4ce97335cce7f (patch) | |
tree | dc2be9b0067a1eb896474e8dfa1b0b2d88d14e93 /include/sound | |
parent | 86a778a78d06cdc8c3994837cd963c146acfba6a (diff) |
ALSA: core: keep track of boundary wrap-around
Keep track of boundary crossing when hw_ptr
exceeds boundary limit and wraps-around. This
will help keep track of total number
of frames played/received at the kernel level
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
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 6268a4192d5c..28fd9f95f9ba 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -281,6 +281,7 @@ struct snd_pcm_runtime { | |||
281 | unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */ | 281 | unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */ |
282 | unsigned long hw_ptr_buffer_jiffies; /* buffer time in jiffies */ | 282 | unsigned long hw_ptr_buffer_jiffies; /* buffer time in jiffies */ |
283 | snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */ | 283 | snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */ |
284 | u64 hw_ptr_wrap; /* offset for hw_ptr due to boundary wrap-around */ | ||
284 | 285 | ||
285 | /* -- HW params -- */ | 286 | /* -- HW params -- */ |
286 | snd_pcm_access_t access; /* access mode */ | 287 | snd_pcm_access_t access; /* access mode */ |