]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f8ac32505ac99a763a1ebd3edb9803b6cf68c25
treea9e84b12d21d9cb47eaedac7c5f1e0c2f0ba2bb7
parent3b77ee1989c51f91ba7b58b658d0dab5a6e78d3f
ALSA: hda - Fix a regression of the position-buffer check

The commit c5883006ace530c81882e2bb3d869eb987f71de7
    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