ALSA: hda - Fix registration race of VGA switcheroo
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 Oct 2012 15:28:18 +0000 (17:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Oct 2012 07:55:48 +0000 (09:55 +0200)
commit128960a9ad67e2d119738f5211956e0304517551
tree1b81778fa4184861fe85cb168511153d8808cbc5
parente73fa21b4e6ce10934cc8016a9a512d7152a860b
ALSA: hda - Fix registration race of VGA switcheroo

Delay the registration of VGA switcheroo client to the end of the
probing.  Otherwise a too quick switching may result in Oops during
probing.

Also add the check of the return value from snd_hda_lock_devices().

Reported-and-tested-by: Daniel J Blueman <daniel@quora.org>
Cc: <stable@vger.kernel.org> [v3.5+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c