ALSA: hda: Allow non-Intel device probe gracefully
[linux-2.6-block.git] / sound / hda / intel-dsp-config.c
index 0b2a7201a46ae3189bf33547eba0b09277be45e2..be1df80ed01337f40654623cf2e2c78dd824fa24 100644 (file)
@@ -307,13 +307,13 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
 {
        const struct config_entry *cfg;
 
-       if (dsp_driver > 0 && dsp_driver <= SND_INTEL_DSP_DRIVER_LAST)
-               return dsp_driver;
-
        /* Intel vendor only */
-       if (snd_BUG_ON(pci->vendor != 0x8086))
+       if (pci->vendor != 0x8086)
                return SND_INTEL_DSP_DRIVER_ANY;
 
+       if (dsp_driver > 0 && dsp_driver <= SND_INTEL_DSP_DRIVER_LAST)
+               return dsp_driver;
+
        /*
         * detect DSP by checking class/subclass/prog-id information
         * class=04 subclass 03 prog-if 00: no DSP, use legacy driver