]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: hda: Fix 1-minute detection delay when i915 module is not available
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 26 Jul 2019 21:47:02 +0000 (23:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Aug 2019 17:06:54 +0000 (19:06 +0200)
commit72651bbdf3d5e2d587c0a1cc0da977cb608787a5
treea81227d040d54b497172f86d634984bc7a30b47a
parent46650ac2e1d89687175547a9f67e1bd70eb1c924
ALSA: hda: Fix 1-minute detection delay when i915 module is not available

commit 74bf71ed792ab0f64631cc65ccdb54c356c36d45 upstream.

Distribution installation images such as Debian include different sets
of modules which can be downloaded dynamically.  Such images may notably
include the hda sound modules but not the i915 DRM module, even if the
latter was enabled at build time, as reported on
https://bugs.debian.org/931507

In such a case hdac_i915 would be linked in and try to load the i915
module, fail since it is not there, but still wait for a whole minute
before giving up binding with it.

This fixes such as case by only waiting for the binding if the module
was properly loaded (or module support is disabled, in which case i915
is already compiled-in anyway).

Fixes: f9b54e1961c7 ("ALSA: hda/i915: Allow delayed i915 audio component binding")
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/hda/hdac_i915.c