ALSA: hda - Fix buffer-alignment regression with Nvidia HDMI
commitf0e6e77be248a10fa494d4624fa14b491fd678fd
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Jan 2012 16:10:24 +0000 (23 17:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:21:21 +0000 (3 09:21 -0800)
tree9b08ce3a6ff5db942deb366eaf0ca9acdf04cf47
parent3499d6424f682a58761d827012567c552b053842
ALSA: hda - Fix buffer-alignment regression with Nvidia HDMI

commit 52409aa6a0e96337da137c069856298f4dd825a0 upstream.

The commit 2ae66c26550cd94b0e2606a9275eb0ab7070ad0e
    ALSA: hda: option to enable arbitrary buffer/period sizes
introduced a regression on machines with Intel controller and Nvidia
HDMI.  The reason is that the driver modifies the global variable
align_buffer_size when an Intel controller is found, and the Nvidia
HDMI controller is probed after Intel although Nvidia chips require
the aligned buffers.

This patch fixes the problem by moving the flag into the local struct
so that it's not affected by other controllers.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42567

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_intel.c