diff options
author | Jaroslav Kysela <perex@perex.cz> | 2008-01-11 02:45:08 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:54 -0500 |
commit | 8c12158687fc78091730d5456336b7efbf6f2250 (patch) | |
tree | f5b27075a4fde3f3eabbe7f05a12fec5559664b6 /include/sound/asound.h | |
parent | a64135a2d880183a2aff149f42dab7779a37a67f (diff) |
[ALSA] PCM interface - rename SNDRV_PCM_TSTAMP_MMAP to SNDRV_PCM_TSTAMP_ENABLE
Change semantics for SNDRV_PCM_TSTAMP_MMAP. Doing timestamping only in
the interrupt handler might cause that hw_ptr is not related to actual
timestamp. With this change, grab timestamp at every hw_ptr update to
have always valid timestamp + ring buffer position pair.
With this change, SNDRV_PCM_TSTAMP_MMAP was renamed to
SNDRV_PCM_TSTAMP_ENABLE. It's no regression (I think).
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound/asound.h')
-rw-r--r-- | include/sound/asound.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/asound.h b/include/sound/asound.h index 069d9120e622..3eaf155b850d 100644 --- a/include/sound/asound.h +++ b/include/sound/asound.h | |||
@@ -354,8 +354,8 @@ struct snd_pcm_hw_params { | |||
354 | 354 | ||
355 | enum { | 355 | enum { |
356 | SNDRV_PCM_TSTAMP_NONE = 0, | 356 | SNDRV_PCM_TSTAMP_NONE = 0, |
357 | SNDRV_PCM_TSTAMP_MMAP, | 357 | SNDRV_PCM_TSTAMP_ENABLE, |
358 | SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_MMAP, | 358 | SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_ENABLE, |
359 | }; | 359 | }; |
360 | 360 | ||
361 | struct snd_pcm_sw_params { | 361 | struct snd_pcm_sw_params { |