ALSA: hda - Fix a regression of the position-buffer check
authorTakashi Iwai <tiwai@suse.de>
Fri, 30 Sep 2011 06:52:26 +0000 (08:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 30 Sep 2011 06:57:15 +0000 (08:57 +0200)
commit798cb7e897210dbf827f69a302c0967e0380ebac
treea9e84b12d21d9cb47eaedac7c5f1e0c2f0ba2bb7
parent0fac25908f8e26a27d869f0aa4fad04c3db60dc7
ALSA: hda - Fix a regression of the position-buffer check

The commit a810364a0424c297242c6c66071a42f7675a5568
    ALSA: hda - Handle -1 as invalid position, too
caused a regression on some machines that require the position-buffer
instead of LPIB, e.g. resulting in noises with mic recording with
PulseAudio.

This patch fixes the detection by delaying the test at the timing as
same as 3.0, i.e. doing the position check only when requested in
azx_position_ok().

Reported-and-tested-by: Rocko Requin <rockorequin@hotmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c