mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Merge branch 'for-linus' into for-next
Conflicts: sound/hda/hdac_i915.c Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
commit
a99e31512a
236 changed files with 2120 additions and 1402 deletions
|
|
@ -287,6 +287,18 @@ int snd_hdac_i915_register_notifier(const struct i915_audio_component_audio_ops
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(snd_hdac_i915_register_notifier);
|
||||
|
||||
/* check whether intel graphics is present */
|
||||
static bool i915_gfx_present(void)
|
||||
{
|
||||
static struct pci_device_id ids[] = {
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_ANY_ID),
|
||||
.class = PCI_BASE_CLASS_DISPLAY << 16,
|
||||
.class_mask = 0xff << 16 },
|
||||
{}
|
||||
};
|
||||
return pci_dev_present(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* snd_hdac_i915_init - Initialize i915 audio component
|
||||
* @bus: HDA core bus
|
||||
|
|
@ -309,6 +321,9 @@ int snd_hdac_i915_init(struct hdac_bus *bus)
|
|||
if (WARN_ON(hdac_acomp))
|
||||
return -EBUSY;
|
||||
|
||||
if (!i915_gfx_present())
|
||||
return -ENODEV;
|
||||
|
||||
acomp = kzalloc(sizeof(*acomp), GFP_KERNEL);
|
||||
if (!acomp)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue