diff options
| -rw-r--r-- | sound/pci/hda/hda_intel.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 8a0af6770e1d..a244ba706317 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
| @@ -340,6 +340,11 @@ enum { | |||
| 340 | #define use_vga_switcheroo(chip) 0 | 340 | #define use_vga_switcheroo(chip) 0 |
| 341 | #endif | 341 | #endif |
| 342 | 342 | ||
| 343 | #define CONTROLLER_IN_GPU(pci) (((pci)->device == 0x0a0c) || \ | ||
| 344 | ((pci)->device == 0x0c0c) || \ | ||
| 345 | ((pci)->device == 0x0d0c) || \ | ||
| 346 | ((pci)->device == 0x160c)) | ||
| 347 | |||
| 343 | static char *driver_short_names[] = { | 348 | static char *driver_short_names[] = { |
| 344 | [AZX_DRIVER_ICH] = "HDA Intel", | 349 | [AZX_DRIVER_ICH] = "HDA Intel", |
| 345 | [AZX_DRIVER_PCH] = "HDA Intel PCH", | 350 | [AZX_DRIVER_PCH] = "HDA Intel PCH", |
| @@ -1854,8 +1859,17 @@ static int azx_probe_continue(struct azx *chip) | |||
| 1854 | if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL) { | 1859 | if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL) { |
| 1855 | #ifdef CONFIG_SND_HDA_I915 | 1860 | #ifdef CONFIG_SND_HDA_I915 |
| 1856 | err = hda_i915_init(hda); | 1861 | err = hda_i915_init(hda); |
| 1857 | if (err < 0) | 1862 | if (err < 0) { |
| 1858 | goto skip_i915; | 1863 | /* if the controller is bound only with HDMI/DP |
| 1864 | * (for HSW and BDW), we need to abort the probe; | ||
| 1865 | * for other chips, still continue probing as other | ||
| 1866 | * codecs can be on the same link. | ||
| 1867 | */ | ||
| 1868 | if (CONTROLLER_IN_GPU(pci)) | ||
| 1869 | goto out_free; | ||
| 1870 | else | ||
| 1871 | goto skip_i915; | ||
| 1872 | } | ||
| 1859 | err = hda_display_power(hda, true); | 1873 | err = hda_display_power(hda, true); |
| 1860 | if (err < 0) { | 1874 | if (err < 0) { |
| 1861 | dev_err(chip->card->dev, | 1875 | dev_err(chip->card->dev, |
