ALSA: intel8x0: Drop superfluous VM checks
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Apr 2016 09:33:54 +0000 (11:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Apr 2016 05:46:28 +0000 (07:46 +0200)
commit4926c8046549cc3c9689e8050e303c016a0b0cba
tree476ffe990dc9416f6da3c984d3271c7c52ce98c3
parent44fde3b89ba1e154b3cec7d711703fff53852983
ALSA: intel8x0: Drop superfluous VM checks

intel8x0 driver has the inside_vm check for skipping a buggy hardware
workaround in the PCM pointer callback in the commit [228cf79376f1:
ALSA: intel8x0: Improve performance in virtual environment].  This was
originally applied to all devices on known VMs, but the code was
switched to use the PCI  ID matching for applying to only known
devices (KVM and Parallels), in order to avoid applying wrongly to
VT-d and other such cases, in the commit [7fb4f392bd27: ALSA:
intel8x0: improve virtual environment detection].

Meanwhile, the original VM check was kept even after switching to the
PCI ID matching.  It was partly because we weren't 100% sure whether
we had covered all well, and partly because this would help
identifying the issue once when a user of another VM hit the same
problem or a regression.  Currently the VM check is used only for
showing the kernel message that the VM-optimization isn't applied, and
the VM check itself doesn't change the actual driver behavior at all.

Despite the relatively safe driver behavior, the code caught attention
of developers badly and brought many confusion / misunderstanding.
Since we've got neither regression nor enhancement report for other
VMs for five years long, it's likely safe to drop this superfluous VM
check now.

The module option is still kept, so if a user still needs to adjust,
it can be applied as was.

Acked-by: Konstantin Ozerkov <kozerkov@parallels.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/intel8x0.c