Просмотр исходного кода

[ALSA] bt87x - fix detection of unknown card

Modules: BT87x driver

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela 19 лет назад
Родитель
Сommit
54c63cfc15
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      sound/pci/bt87x.c

+ 1 - 1
sound/pci/bt87x.c

@@ -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)