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)
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>

No differences found