ALSA: pcm - Reset invalid position even without debug option
authorTakashi Iwai <tiwai@suse.de>
Thu, 19 Mar 2009 09:01:47 +0000 (10:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Mar 2009 09:01:47 +0000 (10:01 +0100)
commit5f513e1197f27e9a0bcfec0feaac59f976f4a37e
treeb82a37f36b4153abc666ad67839d8ef694111bc9
parent98204646f2b15d368701265e4194b773a6f94600
ALSA: pcm - Reset invalid position even without debug option

Always reset the invalind hw_ptr position returned by the pointer
callback.  The behavior should be consitent independently from the
debug option.

Also, add the printk_ratelimit() check to avoid flooding debug
prints.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c