]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix buffer-alignment regression with Nvidia HDMI
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Jan 2012 16:10:24 +0000 (17:10 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Jan 2012 16:15:03 +0000 (17:15 +0100)
commitab7125c98a9da13539d01b187075efd3aad97aa6
tree34483e4164dc6b6653846b222d01cab0c107f25d
parent4b579bfad1ca40f153adcdfbf380604b2aa0fb35
ALSA: hda - Fix buffer-alignment regression with Nvidia HDMI

The commit 5452af4586de89d7e73a93492575360a048c1968
    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

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c