ALSA: hda - Fix missing module loading with model=generic option
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jan 2016 14:46:44 +0000 (15:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:28:57 +0000 (11:28 -0800)
commit5833733480affc449af06426c22dba0c05a44ec2
treec5f1a4460947d1220b390be515636292131504b7
parent658a9bb065d076eefd27b859d9e3012410f6cb63
ALSA: hda - Fix missing module loading with model=generic option

commit bca8e988043e39483afd7872a2641f03ed7201a6 upstream.

When the generic codec driver is specified via model option or such,
the hda driver doesn't try to load the generic driver module but still
loads the codec-specific driver, and this ends up with the binding
failure.

This patch fixes it by moving the generic module request in the common
helper code.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=111021
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_bind.c