|
@@ -143,10 +143,12 @@ int snd_hdac_i915_init(struct hdac_bus *bus)
|
|
|
if (!acomp)
|
|
if (!acomp)
|
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
if (!acomp->ops) {
|
|
if (!acomp->ops) {
|
|
|
- request_module("i915");
|
|
|
|
|
- /* 60s timeout */
|
|
|
|
|
- wait_for_completion_timeout(&bind_complete,
|
|
|
|
|
- msecs_to_jiffies(60 * 1000));
|
|
|
|
|
|
|
+ if (!IS_ENABLED(CONFIG_MODULES) ||
|
|
|
|
|
+ !request_module("i915")) {
|
|
|
|
|
+ /* 60s timeout */
|
|
|
|
|
+ wait_for_completion_timeout(&bind_complete,
|
|
|
|
|
+ msecs_to_jiffies(60 * 1000));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if (!acomp->ops) {
|
|
if (!acomp->ops) {
|
|
|
dev_info(bus->dev, "couldn't bind with audio component\n");
|
|
dev_info(bus->dev, "couldn't bind with audio component\n");
|