From 711f4d0e06aa73529e2613243baebb9d35b6f675 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 6 Jun 2009 18:32:06 +0200 Subject: [PATCH] ALSA: pcm - Fix a typo in hw_ptr update check Fix a typo in the commit 34e428047bc3a2345b803dbe0379378ebcbb9cf4 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 --- sound/core/pcm_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index dd9126b92c19e..bf34603a7a38b 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) runtime->silence_size > 0) snd_pcm_playback_silence(substream, new_hw_ptr); - if (runtime->status->hw_ptr != new_hw_ptr) + if (runtime->status->hw_ptr == new_hw_ptr) return 0; runtime->hw_ptr_base = hw_base; -- 2.39.5