aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2009-06-06 12:32:06 -0400
committerTakashi Iwai <tiwai@suse.de>2009-06-06 12:32:06 -0400
commitd86bf92313bfd47885a92c7de63bde392d585f95 (patch)
tree3f7742cbcaf2dae554507b62c3cd686764376bd6 /sound/core
parenta4444da31ec92f89cd6923579c20a9c240439cfc (diff)
ALSA: pcm - Fix a typo in hw_ptr update check
Fix a typo in the commit 13f040f9e55d41e92e485389123654971e03b819 ALSA: PCM midlevel: Do not update hw_ptr_jiffies when hw_ptr is not changed which causes obvious problems with PA. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index dd9126b92c19..bf34603a7a38 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -371,7 +371,7 @@ int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream)
371 runtime->silence_size > 0) 371 runtime->silence_size > 0)
372 snd_pcm_playback_silence(substream, new_hw_ptr); 372 snd_pcm_playback_silence(substream, new_hw_ptr);
373 373
374 if (runtime->status->hw_ptr != new_hw_ptr) 374 if (runtime->status->hw_ptr == new_hw_ptr)
375 return 0; 375 return 0;
376 376
377 runtime->hw_ptr_base = hw_base; 377 runtime->hw_ptr_base = hw_base;