[ALSA] bt87x - fix detection of unknown card
Jaroslav Kysela [Thu, 12 Jan 2006 06:56:40 +0000 (07:56 +0100)]
Modules: BT87x driver

Signed-off-by: Jaroslav Kysela <perex@suse.cz>

sound/pci/bt87x.c

index aaaa2e0..c840a4c 100644 (file)
@@ -810,7 +810,7 @@ static int __devinit snd_bt87x_detect_card(struct pci_dev *pci)
        const struct pci_device_id *supported;
 
        supported = pci_match_device(&driver, pci);
-       if (supported)
+       if (supported && supported->driver_data > 0)
                return supported->driver_data;
 
        for (i = 0; i < ARRAY_SIZE(blacklist); ++i)