diff options
Diffstat (limited to 'sound/pci/intel8x0m.c')
| -rw-r--r-- | sound/pci/intel8x0m.c | 64 |
1 files changed, 10 insertions, 54 deletions
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index bb758c77d211..9e2060d56c24 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
| @@ -73,51 +73,6 @@ MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (0 = auto-detect)."); | |||
| 73 | /* | 73 | /* |
| 74 | * Direct registers | 74 | * Direct registers |
| 75 | */ | 75 | */ |
| 76 | |||
| 77 | #ifndef PCI_DEVICE_ID_INTEL_82801_6 | ||
| 78 | #define PCI_DEVICE_ID_INTEL_82801_6 0x2416 | ||
| 79 | #endif | ||
| 80 | #ifndef PCI_DEVICE_ID_INTEL_82901_6 | ||
| 81 | #define PCI_DEVICE_ID_INTEL_82901_6 0x2426 | ||
| 82 | #endif | ||
| 83 | #ifndef PCI_DEVICE_ID_INTEL_82801BA_6 | ||
| 84 | #define PCI_DEVICE_ID_INTEL_82801BA_6 0x2446 | ||
| 85 | #endif | ||
| 86 | #ifndef PCI_DEVICE_ID_INTEL_440MX_6 | ||
| 87 | #define PCI_DEVICE_ID_INTEL_440MX_6 0x7196 | ||
| 88 | #endif | ||
| 89 | #ifndef PCI_DEVICE_ID_INTEL_ICH3_6 | ||
| 90 | #define PCI_DEVICE_ID_INTEL_ICH3_6 0x2486 | ||
| 91 | #endif | ||
| 92 | #ifndef PCI_DEVICE_ID_INTEL_ICH4_6 | ||
| 93 | #define PCI_DEVICE_ID_INTEL_ICH4_6 0x24c6 | ||
| 94 | #endif | ||
| 95 | #ifndef PCI_DEVICE_ID_INTEL_ICH5_6 | ||
| 96 | #define PCI_DEVICE_ID_INTEL_ICH5_6 0x24d6 | ||
| 97 | #endif | ||
| 98 | #ifndef PCI_DEVICE_ID_INTEL_ICH6_6 | ||
| 99 | #define PCI_DEVICE_ID_INTEL_ICH6_6 0x266d | ||
| 100 | #endif | ||
| 101 | #ifndef PCI_DEVICE_ID_INTEL_ICH7_6 | ||
| 102 | #define PCI_DEVICE_ID_INTEL_ICH7_6 0x27dd | ||
| 103 | #endif | ||
| 104 | #ifndef PCI_DEVICE_ID_SI_7013 | ||
| 105 | #define PCI_DEVICE_ID_SI_7013 0x7013 | ||
| 106 | #endif | ||
| 107 | #ifndef PCI_DEVICE_ID_NVIDIA_MCP_MODEM | ||
| 108 | #define PCI_DEVICE_ID_NVIDIA_MCP_MODEM 0x01c1 | ||
| 109 | #endif | ||
| 110 | #ifndef PCI_DEVICE_ID_NVIDIA_MCP2_MODEM | ||
| 111 | #define PCI_DEVICE_ID_NVIDIA_MCP2_MODEM 0x0069 | ||
| 112 | #endif | ||
| 113 | #ifndef PCI_DEVICE_ID_NVIDIA_MCP2S_MODEM | ||
| 114 | #define PCI_DEVICE_ID_NVIDIA_MCP2S_MODEM 0x0089 | ||
| 115 | #endif | ||
| 116 | #ifndef PCI_DEVICE_ID_NVIDIA_MCP3_MODEM | ||
| 117 | #define PCI_DEVICE_ID_NVIDIA_MCP3_MODEM 0x00d9 | ||
| 118 | #endif | ||
| 119 | |||
| 120 | |||
| 121 | enum { DEVICE_INTEL, DEVICE_SIS, DEVICE_ALI, DEVICE_NFORCE }; | 76 | enum { DEVICE_INTEL, DEVICE_SIS, DEVICE_ALI, DEVICE_NFORCE }; |
| 122 | 77 | ||
| 123 | #define ICHREG(x) ICH_REG_##x | 78 | #define ICHREG(x) ICH_REG_##x |
| @@ -1158,7 +1113,7 @@ static int __devinit snd_intel8x0m_create(snd_card_t * card, | |||
| 1158 | if ((err = pci_enable_device(pci)) < 0) | 1113 | if ((err = pci_enable_device(pci)) < 0) |
| 1159 | return err; | 1114 | return err; |
| 1160 | 1115 | ||
| 1161 | chip = kcalloc(1, sizeof(*chip), GFP_KERNEL); | 1116 | chip = kzalloc(sizeof(*chip), GFP_KERNEL); |
| 1162 | if (chip == NULL) { | 1117 | if (chip == NULL) { |
| 1163 | pci_disable_device(pci); | 1118 | pci_disable_device(pci); |
| 1164 | return -ENOMEM; | 1119 | return -ENOMEM; |
| @@ -1283,18 +1238,18 @@ static struct shortname_table { | |||
| 1283 | unsigned int id; | 1238 | unsigned int id; |
| 1284 | const char *s; | 1239 | const char *s; |
| 1285 | } shortnames[] __devinitdata = { | 1240 | } shortnames[] __devinitdata = { |
| 1286 | { PCI_DEVICE_ID_INTEL_82801_6, "Intel 82801AA-ICH" }, | 1241 | { PCI_DEVICE_ID_INTEL_82801AA_6, "Intel 82801AA-ICH" }, |
| 1287 | { PCI_DEVICE_ID_INTEL_82901_6, "Intel 82901AB-ICH0" }, | 1242 | { PCI_DEVICE_ID_INTEL_82801AB_6, "Intel 82901AB-ICH0" }, |
| 1288 | { PCI_DEVICE_ID_INTEL_82801BA_6, "Intel 82801BA-ICH2" }, | 1243 | { PCI_DEVICE_ID_INTEL_82801BA_6, "Intel 82801BA-ICH2" }, |
| 1289 | { PCI_DEVICE_ID_INTEL_440MX_6, "Intel 440MX" }, | 1244 | { PCI_DEVICE_ID_INTEL_440MX_6, "Intel 440MX" }, |
| 1290 | { PCI_DEVICE_ID_INTEL_ICH3_6, "Intel 82801CA-ICH3" }, | 1245 | { PCI_DEVICE_ID_INTEL_82801CA_6, "Intel 82801CA-ICH3" }, |
| 1291 | { PCI_DEVICE_ID_INTEL_ICH4_6, "Intel 82801DB-ICH4" }, | 1246 | { PCI_DEVICE_ID_INTEL_82801DB_6, "Intel 82801DB-ICH4" }, |
| 1292 | { PCI_DEVICE_ID_INTEL_ICH5_6, "Intel ICH5" }, | 1247 | { PCI_DEVICE_ID_INTEL_82801EB_6, "Intel ICH5" }, |
| 1293 | { PCI_DEVICE_ID_INTEL_ICH6_6, "Intel ICH6" }, | 1248 | { PCI_DEVICE_ID_INTEL_ICH6_17, "Intel ICH6" }, |
| 1294 | { PCI_DEVICE_ID_INTEL_ICH7_6, "Intel ICH7" }, | 1249 | { PCI_DEVICE_ID_INTEL_ICH7_19, "Intel ICH7" }, |
| 1295 | { 0x7446, "AMD AMD768" }, | 1250 | { 0x7446, "AMD AMD768" }, |
| 1296 | { PCI_DEVICE_ID_SI_7013, "SiS SI7013" }, | 1251 | { PCI_DEVICE_ID_SI_7013, "SiS SI7013" }, |
| 1297 | { PCI_DEVICE_ID_NVIDIA_MCP_MODEM, "NVidia nForce" }, | 1252 | { PCI_DEVICE_ID_NVIDIA_MCP1_MODEM, "NVidia nForce" }, |
| 1298 | { PCI_DEVICE_ID_NVIDIA_MCP2_MODEM, "NVidia nForce2" }, | 1253 | { PCI_DEVICE_ID_NVIDIA_MCP2_MODEM, "NVidia nForce2" }, |
| 1299 | { PCI_DEVICE_ID_NVIDIA_MCP2S_MODEM, "NVidia nForce2s" }, | 1254 | { PCI_DEVICE_ID_NVIDIA_MCP2S_MODEM, "NVidia nForce2s" }, |
| 1300 | { PCI_DEVICE_ID_NVIDIA_MCP3_MODEM, "NVidia nForce3" }, | 1255 | { PCI_DEVICE_ID_NVIDIA_MCP3_MODEM, "NVidia nForce3" }, |
| @@ -1371,6 +1326,7 @@ static void __devexit snd_intel8x0m_remove(struct pci_dev *pci) | |||
| 1371 | 1326 | ||
| 1372 | static struct pci_driver driver = { | 1327 | static struct pci_driver driver = { |
| 1373 | .name = "Intel ICH Modem", | 1328 | .name = "Intel ICH Modem", |
| 1329 | .owner = THIS_MODULE, | ||
| 1374 | .id_table = snd_intel8x0m_ids, | 1330 | .id_table = snd_intel8x0m_ids, |
| 1375 | .probe = snd_intel8x0m_probe, | 1331 | .probe = snd_intel8x0m_probe, |
| 1376 | .remove = __devexit_p(snd_intel8x0m_remove), | 1332 | .remove = __devexit_p(snd_intel8x0m_remove), |
