]> 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)
commit58818ae850bb4fa32d561531f969ef008405970e
treea9e84b12d21d9cb47eaedac7c5f1e0c2f0ba2bb7
parent63460728e5bd734d82fcaae224d67a6a88474220
ALSA: hda - Fix a regression of the position-buffer check

The commit 3ad194e262d70a2dc1218088118fcccea53a5fff
    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