Skip to contentSkip to conversation

Fix bug with bt87x driver's load_all option

PATCH Applied Trent Piepho 2 participants 2 messages Oct 17, 2007 – Oct 18, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix bug with bt87x driver's load_all option

snd-bt87x: Make the load_all option work correctly

If the load_all option was turned on all cards would be treated as unknown, even those which are in the database. Of course, if the card is in the database there is no reason to use the load_all option. It's there to force loading when the card isn't in the database. But there are out of date wikis that say to do this and some distros might turn this option on by default.

So, we keep the load_all option from turning known cards into unknown cards.

pci/bt87x.c +1 -1
@@ -1021,7 +1021,7 @@ static int __devinit snd_bt87x_detect_ca
 	int i;
 	const struct pci_device_id *supported;
 
-	supported = pci_match_device(&driver, pci);
+	supported = pci_match_id(snd_bt87x_ids, pci);
 	if (supported && supported->driver_data > 0)
 		return supported->driver_data;
Applied
#1 lore raw

At Wed, 17 Oct 2007 15:55:54 -0700 (PDT),

Quoted 9 lines · Trent Piepho

snd-bt87x: Make the load_all option work correctly

If the load_all option was turned on all cards would be treated as unknown, even those which are in the database. Of course, if the card is in the database there is no reason to use the load_all option. It's there to force loading when the card isn't in the database. But there are out of date wikis that say to do this and some distros might turn this option on by default.

Quoted 3 lines

So, we keep the load_all option from turning known cards into unknown cards.

Thanks, applied to HG tree now.

Takashi