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 /sound/core/pcm.c | |
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 'sound/core/pcm.c')
-rw-r--r-- | sound/core/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index 1502acd81a18..9dd9bc73fe1d 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -227,7 +227,7 @@ static char *snd_pcm_subformat_names[] = { | |||
227 | 227 | ||
228 | static char *snd_pcm_tstamp_mode_names[] = { | 228 | static char *snd_pcm_tstamp_mode_names[] = { |
229 | TSTAMP(NONE), | 229 | TSTAMP(NONE), |
230 | TSTAMP(MMAP), | 230 | TSTAMP(ENABLE), |
231 | }; | 231 | }; |
232 | 232 | ||
233 | static const char *snd_pcm_stream_name(int stream) | 233 | static const char *snd_pcm_stream_name(int stream) |