ALSA: pcm - Fix regressions with VMware
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Jul 2009 10:51:51 +0000 (12:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Jul 2009 10:55:56 +0000 (12:55 +0200)
commit79452f0a28aa5a40522c487b42a5fc423647ad98
treecacc494ab214305e2bc3576c6221a8dd5a63a9ad
parent6847e154e3cd74fca6084124c097980a7634285a
ALSA: pcm - Fix regressions with VMware

VMware tends to report PCM positions and period updates at utterly
wrong timing.  This screws up the recent PCM core code that tries
to correct the position based on the irq timing.

Now, when a backward irq position is detected, skip the update
instead of rebasing.  (This is almost the old behavior before
2.6.30.)

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