]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix uninitialized HDMI controllers with VGA-switcheroo
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Jun 2012 10:15:16 +0000 (12:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 Jun 2012 09:24:19 +0000 (11:24 +0200)
commiteaae8ffbd3e65ce2abe4751c1d4cae58d8cbdcec
tree39c65e9d9f51e30ff1dcb465e601ddd34e709a43
parent9e7988133243d9150ebd14e4a7f0aab500c9a6b8
ALSA: hda - Fix uninitialized HDMI controllers with VGA-switcheroo

When VGA-switcheroo is built in but unused on systems with multiple
graphics cards, the initializations of non-default graphics cards are
skipped and never enabled (because the switcheroo is activated only
when the controller supports).  The current behavior is for avoiding
the system lockup by accessing the disabled GPU, but due to the recent
change in VGA-switcheroo, it determines the state simply by checking
with the default VGA device.  This is the culprit.

Now with the new vga_switcheroo_get_client_state(), we can know the
initial state of the bound GPU, thus can determine the initial audio
client state more correctly.

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