Skip to contentSkip to conversation

MODULE_DEVICE_TABLE for C-Media PCI audio driver

PATCH New Andrey Panin 1 participant 1 message Oct 30, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MODULE_DEVICE_TABLE for C-Media PCI audio driver

Yet another driver lacking MODULE_DEVICE_TABLE.
Please consider applying.

Signature · 2 lines
Andrey Panin            | Embedded systems software engineer
[email protected]        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
linux/drivers/sound/cmpci.c renamed from linux.vanilla/drivers/sound/cmpci.c +11 -0
diff -u -X /usr/dontdiff /linux.vanilla/drivers/sound/cmpci.c /linux/drivers/sound/cmpci.c
@@ -2847,6 +2847,17 @@
 MODULE_PARM_DESC(use_line_as_bass, "(1/0) Use line-in jack as bass/center");
 MODULE_PARM_DESC(joystick, "(1/0) Enable joystick interface, still need joystick driver");
 
+static struct pci_device_id cmpci_pci_tbl[] = {
+	{ PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738, 
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+ 	{ PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A, 
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+	{ PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B, 
+	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+	{ 0 }
+};
+MODULE_DEVICE_TABLE(pci, cmpci_pci_tbl);
+
 void initialize_chip(struct pci_dev *pcidev)
 {
 	struct cm_state *s;