Skip to contentSkip to conversation

aw2: do not grab every saa7146 based device

PATCH Takashi Iwai 1 participant 1 message Feb 23, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

At Sun, 22 Feb 2009 14:42:54 +0200,

Quoted 5 lines · Anssi Hannula

Audiowerk2 driver snd-aw2 is bound to any saa7146 device as it does not check subsystem ids. Many DVB devices are saa7146 based, so aw2 driver grabs them as well.

Quoted 7 lines

According to http://lkml.org/lkml/2008/10/15/311 aw2 devices have the subsystem ids set to 0, the saa7146 default.

Fix conflicts with DVB devices by checking for subsystem ids = 0 specifically.

Thanks! Applied it as is, since this isn't worse than now, at least (although this is no real solution yet...)

Takashi

Quoted 18 lines
sound/pci/aw2/aw2-alsa.c renamed from sound/pci/aw2/aw2-alsa.c.old +1 -1
@@ -165,7 +165,7 @@ module_param_array(enable, bool, NULL, 0
 MODULE_PARM_DESC(enable, "Enable Audiowerk2 soundcard.");
 
 static struct pci_device_id snd_aw2_ids[] = {
-	{PCI_VENDOR_ID_SAA7146, PCI_DEVICE_ID_SAA7146, PCI_ANY_ID, PCI_ANY_ID,
+	{PCI_VENDOR_ID_SAA7146, PCI_DEVICE_ID_SAA7146, 0, 0,
 	 0, 0, 0},
 	{0}
 };
Signature · 2 lines
-- 
Anssi Hannula