Skip to content

Commit

Permalink
ALSA: pcm - Fix a typo in hw_ptr update check
Browse files Browse the repository at this point in the history
Fix a typo in the commit 13f040f
  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>
  • Loading branch information
Jaroslav Kysela authored and Takashi Iwai committed Jun 6, 2009
1 parent a4444da commit d86bf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/pcm_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d86bf92

Please sign in to comment.