diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-05-27 10:49:26 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-05-27 11:04:18 +0200 |
commit | 6af3fb72d2437239e5eb13a59e95dc43ccab3e8f (patch) | |
tree | a34f63d4c1904b2cff6a10926364c8ed557bb8c2 /sound/core/pcm_lib.c | |
parent | 59a3759d0fe8d969888c741bb33f4946e4d3750d (diff) | |
download | linux-6af3fb72d2437239e5eb13a59e95dc43ccab3e8f.tar.gz linux-6af3fb72d2437239e5eb13a59e95dc43ccab3e8f.tar.bz2 linux-6af3fb72d2437239e5eb13a59e95dc43ccab3e8f.zip |
ALSA: Fix invalid jiffies check after pause
The hw_ptr_jiffies has to be reset properly to avoid the invalid
check of jiffies delta in snd_pcm_update_hw_ptr*() functions.
Especailly this patch fixes the bogus jiffies check after the puase
and resume.
This patch is a modified version of the original patch by Jaroslav.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_lib.c')
-rw-r--r-- | sound/core/pcm_lib.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index a2a792c18c40..3eea98a4e65a 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c @@ -1478,7 +1478,6 @@ static int snd_pcm_lib_ioctl_reset(struct snd_pcm_substream *substream, runtime->status->hw_ptr %= runtime->buffer_size; else runtime->status->hw_ptr = 0; - runtime->hw_ptr_jiffies = jiffies; snd_pcm_stream_unlock_irqrestore(substream, flags); return 0; } |