]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: Consistently define pci_device_ids using named initializers
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Thu, 30 Apr 2026 13:52:53 +0000 (15:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 May 2026 11:22:14 +0000 (13:22 +0200)
... and PCI device helpers.

The various struct pci_device_id arrays were initialized mostly by list
expressions, some of them using the PCI_DEVICE macros. This isn't easily
readable if you're not into PCI. Using named initializers is more
explicit and thus easier to parse. Also use PCI_DEVICE* helper macros to
assign .vendor, .device, .subvendor and .subdevice where appropriate and
skip explicit assignments of 0 (which the compiler takes care of).

The secret plan is to make struct pci_device_id::driver_data an
anonymous union (similar to
https://lore.kernel.org/all/cover.1776579304.git.u.kleine-koenig@baylibre.com/)
and that requires named initializers. But it's also a nice cleanup on
its own.

This change doesn't introduce changes to the compiled pci_device_id
array. Tested on x86 and arm64.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260430135255.279393-2-u.kleine-koenig@baylibre.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
53 files changed:
sound/hda/core/i915.c
sound/pci/ali5451/ali5451.c
sound/pci/als300.c
sound/pci/als4000.c
sound/pci/asihpi/asihpi.c
sound/pci/asihpi/hpipcida.h
sound/pci/atiixp.c
sound/pci/atiixp_modem.c
sound/pci/au88x0/au8810.c
sound/pci/au88x0/au8820.c
sound/pci/au88x0/au8830.c
sound/pci/aw2/aw2-alsa.c
sound/pci/azt3328.c
sound/pci/ca0106/ca0106_main.c
sound/pci/cmipci.c
sound/pci/cs4281.c
sound/pci/cs46xx/cs46xx.c
sound/pci/echoaudio/darla20.c
sound/pci/echoaudio/darla24.c
sound/pci/echoaudio/echo3g.c
sound/pci/echoaudio/gina20.c
sound/pci/echoaudio/gina24.c
sound/pci/echoaudio/indigo.c
sound/pci/echoaudio/indigodj.c
sound/pci/echoaudio/indigodjx.c
sound/pci/echoaudio/indigoio.c
sound/pci/echoaudio/indigoiox.c
sound/pci/echoaudio/layla20.c
sound/pci/echoaudio/layla24.c
sound/pci/echoaudio/mia.c
sound/pci/echoaudio/mona.c
sound/pci/emu10k1/emu10k1.c
sound/pci/emu10k1/emu10k1x.c
sound/pci/ens1370.c
sound/pci/es1938.c
sound/pci/es1968.c
sound/pci/fm801.c
sound/pci/ice1712/ice1712.c
sound/pci/ice1712/ice1724.c
sound/pci/intel8x0.c
sound/pci/intel8x0m.c
sound/pci/maestro3.c
sound/pci/mixart/mixart.c
sound/pci/nm256/nm256.c
sound/pci/pcxhr/pcxhr.c
sound/pci/rme32.c
sound/pci/rme96.c
sound/pci/sonicvibes.c
sound/pci/trident/trident.c
sound/pci/via82xx.c
sound/pci/via82xx_modem.c
sound/pci/vx222/vx222.c
sound/pci/ymfpci/ymfpci.c

index 44438c799f9570f1d97c2761884cac72c88f6fe9..6c068b135b7dc72eca3adb4f66b78eabd8109441 100644 (file)
@@ -130,22 +130,22 @@ static int i915_gfx_present(struct pci_dev *hdac_pci)
        /* List of known platforms with no i915 support. */
        static const struct pci_device_id denylist[] = {
                /* CNL */
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a40), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a41), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a42), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a44), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a49), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a4a), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a4c), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a50), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a51), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a52), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a54), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a59), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a5a), 0x030000, 0xff0000 },
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a5c), 0x030000, 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a40), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a41), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a42), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a44), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a49), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a4a), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a4c), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a50), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a51), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a52), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a54), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a59), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a5a), .class = 0x030000, .class_mask = 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x5a5c), .class = 0x030000, .class_mask = 0xff0000 },
                /* LKF */
-               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x9840), 0x030000, 0xff0000 },
+               { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x9840), .class = 0x030000, .class_mask = 0xff0000 },
                {}
        };
        struct pci_dev *display_dev = NULL;
index 571d89a6a8da27dae3804af58615f8c221d59e4d..f07c5f4c23801be7fd74ffaa81dfaff2b1e89e6e 100644 (file)
@@ -247,8 +247,8 @@ struct snd_ali {
 };
 
 static const struct pci_device_id snd_ali_ids[] = {
-       {PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0},
-       {0, }
+       { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451) },
+       { }
 };
 MODULE_DEVICE_TABLE(pci, snd_ali_ids);
 
index a73893a2cbd668c36ae53c7603393ed500b35505..00f0720169c3a99c9c6eba354e82961dbd5b6091 100644 (file)
@@ -127,9 +127,9 @@ struct snd_als300_substream_data {
 };
 
 static const struct pci_device_id snd_als300_ids[] = {
-       { 0x4005, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300 },
-       { 0x4005, 0x0308, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300_PLUS },
-       { 0, }
+       { PCI_DEVICE(0x4005, 0x0300), .driver_data = DEVICE_ALS300 },
+       { PCI_DEVICE(0x4005, 0x0308), .driver_data = DEVICE_ALS300_PLUS },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_als300_ids);
index 636f309c942407c3b87eea8ba5d7f6518c430d9f..6396aa6c3bf07105e47c0fc7cc8d49c7f842cac5 100644 (file)
@@ -102,8 +102,8 @@ struct snd_card_als4000 {
 };
 
 static const struct pci_device_id snd_als4000_ids[] = {
-       { 0x4005, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* ALS4000 */
-       { 0, }
+       { PCI_DEVICE(0x4005, 0x4000) },   /* ALS4000 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_als4000_ids);
index b1c7ed7f1604e8aa9d88ce1aa585d4d1fc30ba8d..4dbc79899c0919a253027790eb924fb3ee907fa5 100644 (file)
@@ -2933,13 +2933,16 @@ static void snd_asihpi_remove(struct pci_dev *pci_dev)
 }
 
 static const struct pci_device_id asihpi_pci_tbl[] = {
-       {HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_DSP6205,
-               HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID, 0, 0,
-               (kernel_ulong_t)HPI_6205},
-       {HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_PCI2040,
-               HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID, 0, 0,
-               (kernel_ulong_t)HPI_6000},
-       {0,}
+       {
+               PCI_DEVICE_SUB(HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_DSP6205,
+                              HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID),
+               .driver_data = (kernel_ulong_t)HPI_6205,
+       }, {
+               PCI_DEVICE_SUB(HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_PCI2040,
+                              HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID),
+               .driver_data = (kernel_ulong_t)HPI_6000,
+       },
+       {}
 };
 MODULE_DEVICE_TABLE(pci, asihpi_pci_tbl);
 
index 0673e827807071d4a280dc20e356934f1cfc77bb..6dceff2b47419ce9d56b411a15dd67d276d9fc99 100644 (file)
 */
 
 {
-HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_DSP6205,
-               HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID, 0, 0,
-               (kernel_ulong_t) HPI_6205}
-, {
-HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_PCI2040,
-               HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID, 0, 0,
-               (kernel_ulong_t) HPI_6000}
-, {
-0}
+       PCI_DEVICE_SUB(HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_DSP6205,
+                      HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID),
+       .driver_data = (kernel_ulong_t) HPI_6205,
+}, {
+       PCI_DEVICE_SUB(HPI_PCI_VENDOR_ID_TI, HPI_PCI_DEV_ID_PCI2040,
+                      HPI_PCI_VENDOR_ID_AUDIOSCIENCE, PCI_ANY_ID),
+       .driver_data = (kernel_ulong_t) HPI_6000,
+},
+}
index 2a0c59d5afa58eb2a4dcff7e059f4aefe9acde66..b738295b41e5d0c12bed93f78c08101dd8332dbe 100644 (file)
@@ -272,11 +272,11 @@ struct atiixp {
 /*
  */
 static const struct pci_device_id snd_atiixp_ids[] = {
-       { PCI_VDEVICE(ATI, 0x4341), 0 }, /* SB200 */
-       { PCI_VDEVICE(ATI, 0x4361), 0 }, /* SB300 */
-       { PCI_VDEVICE(ATI, 0x4370), 0 }, /* SB400 */
-       { PCI_VDEVICE(ATI, 0x4382), 0 }, /* SB600 */
-       { 0, }
+       { PCI_VDEVICE(ATI, 0x4341) }, /* SB200 */
+       { PCI_VDEVICE(ATI, 0x4361) }, /* SB300 */
+       { PCI_VDEVICE(ATI, 0x4370) }, /* SB400 */
+       { PCI_VDEVICE(ATI, 0x4382) }, /* SB600 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_atiixp_ids);
index 91f31e2ad3d3b6b0aa315f79ce5bd8c9908d6c39..8aaeb197ce4583f1af3ca73542a847106c19737b 100644 (file)
@@ -247,9 +247,9 @@ struct atiixp_modem {
 /*
  */
 static const struct pci_device_id snd_atiixp_ids[] = {
-       { PCI_VDEVICE(ATI, 0x434d), 0 }, /* SB200 */
-       { PCI_VDEVICE(ATI, 0x4378), 0 }, /* SB400 */
-       { 0, }
+       { PCI_VDEVICE(ATI, 0x434d) }, /* SB200 */
+       { PCI_VDEVICE(ATI, 0x4378) }, /* SB400 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_atiixp_ids);
index b2bfa50bfe30e18bdf19e4b36e243b24b37149f8..f712e32d337007d72e075109d834f6008012d12f 100644 (file)
@@ -2,8 +2,8 @@
 #include "au8810.h"
 #include "au88x0.h"
 static const struct pci_device_id snd_vortex_ids[] = {
-       {PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_ADVANTAGE), 1,},
-       {0,}
+       { PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_ADVANTAGE), .driver_data = 1 },
+       { }
 };
 
 #include "au88x0_core.c"
index dbc2263b49c6e41cd4c44f495480cb248cb6c6dd..aa841b615182c2edd0ee66a5b2328b2d8d8af293 100644 (file)
@@ -2,8 +2,8 @@
 #include "au8820.h"
 #include "au88x0.h"
 static const struct pci_device_id snd_vortex_ids[] = {
-       {PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_1), 0,},
-       {0,}
+       { PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_1), .driver_data = 0 },
+       { }
 };
 
 #include "au88x0_synth.c"
index e963c4e2f026c4c51fc20527e4fca5898b8415cd..aeb8d458c6299b6aa4e7372d66810b69ba6f43bf 100644 (file)
@@ -2,8 +2,8 @@
 #include "au8830.h"
 #include "au88x0.h"
 static const struct pci_device_id snd_vortex_ids[] = {
-       {PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_2), 0,},
-       {0,}
+       { PCI_VDEVICE(AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_2), .driver_data = 0 },
+       { }
 };
 
 #include "au88x0_synth.c"
index e2c501f4394c1bbff5511e9e082ec9b5e537793b..60a87322eae49d96eb90a1a821a433ba6013e89a 100644 (file)
@@ -142,9 +142,8 @@ module_param_array(enable, bool, NULL, 0444);
 MODULE_PARM_DESC(enable, "Enable Audiowerk2 soundcard.");
 
 static const struct pci_device_id snd_aw2_ids[] = {
-       {PCI_VENDOR_ID_PHILIPS, PCI_DEVICE_ID_PHILIPS_SAA7146, 0, 0,
-        0, 0, 0},
-       {0}
+       { PCI_DEVICE_SUB(PCI_VENDOR_ID_PHILIPS, PCI_DEVICE_ID_PHILIPS_SAA7146, 0, 0) },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_aw2_ids);
index 6cdf76e2b7d2e334cb942e859099df1718b41d18..ccca82417657b5f765f4e126bd72760d16af4186 100644 (file)
@@ -305,9 +305,9 @@ struct snd_azf3328 {
 };
 
 static const struct pci_device_id snd_azf3328_ids[] = {
-       { 0x122D, 0x50DC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },   /* PCI168/3328 */
-       { 0x122D, 0x80DA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },   /* 3328 */
-       { 0, }
+       { PCI_DEVICE(0x122D, 0x50DC) },   /* PCI168/3328 */
+       { PCI_DEVICE(0x122D, 0x80DA) },   /* 3328 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_azf3328_ids);
index 35392f6525b3b3bafddacda49b2888c4052ea1f0..cf923f551211ee4bb5d33dd60651602d277f7918 100644 (file)
@@ -1820,8 +1820,8 @@ static SIMPLE_DEV_PM_OPS(snd_ca0106_pm, snd_ca0106_suspend, snd_ca0106_resume);
 
 // PCI IDs
 static const struct pci_device_id snd_ca0106_ids[] = {
-       { PCI_VDEVICE(CREATIVE, 0x0007), 0 },   /* Audigy LS or Live 24bit */
-       { 0, }
+       { PCI_VDEVICE(CREATIVE, 0x0007) },      /* Audigy LS or Live 24bit */
+       { }
 };
 MODULE_DEVICE_TABLE(pci, snd_ca0106_ids);
 
index cd73b68336394460a1e5b22adfa2f3fdc23e7dea..f5382b10865a3544ce5bd7673f2f760582df9e30 100644 (file)
@@ -2721,12 +2721,12 @@ static void snd_cmipci_proc_init(struct cmipci *cm)
 }
 
 static const struct pci_device_id snd_cmipci_ids[] = {
-       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A), 0},
-       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B), 0},
-       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738), 0},
-       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738B), 0},
-       {PCI_VDEVICE(AL, PCI_DEVICE_ID_CMEDIA_CM8738), 0},
-       {0,},
+       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A) },
+       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B) },
+       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738) },
+       {PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738B) },
+       {PCI_VDEVICE(AL, PCI_DEVICE_ID_CMEDIA_CM8738) },
+       { }
 };
 
 
index d00b2c9fb1e38c3af148d72fbad7af999c035273..f51f4bb6376646be935a62599cfb240263fc115e 100644 (file)
@@ -476,8 +476,8 @@ struct cs4281 {
 static irqreturn_t snd_cs4281_interrupt(int irq, void *dev_id);
 
 static const struct pci_device_id snd_cs4281_ids[] = {
-       { PCI_VDEVICE(CIRRUS, 0x6005), 0, },    /* CS4281 */
-       { 0, }
+       { PCI_VDEVICE(CIRRUS, 0x6005) },        /* CS4281 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_cs4281_ids);
index 9c1995737eb7f6fdde665114e4e7317dc27e7fb9..0cb7c2a2929fedd89b165bba227b3a4a978891c0 100644 (file)
@@ -43,10 +43,10 @@ module_param_array(mmap_valid, bool, NULL, 0444);
 MODULE_PARM_DESC(mmap_valid, "Support OSS mmap.");
 
 static const struct pci_device_id snd_cs46xx_ids[] = {
-       { PCI_VDEVICE(CIRRUS, 0x6001), 0, },   /* CS4280 */
-       { PCI_VDEVICE(CIRRUS, 0x6003), 0, },   /* CS4612 */
-       { PCI_VDEVICE(CIRRUS, 0x6004), 0, },   /* CS4615 */
-       { 0, }
+       { PCI_VDEVICE(CIRRUS, 0x6001) },   /* CS4280 */
+       { PCI_VDEVICE(CIRRUS, 0x6003) },   /* CS4612 */
+       { PCI_VDEVICE(CIRRUS, 0x6004) },   /* CS4615 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_cs46xx_ids);
index e295c71c7a3903725ca08d037d38e6a3c083a4fe..48c25bd3f401e97ec497431dd5a436afae2a6eca 100644 (file)
@@ -52,8 +52,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x1801, 0xECC0, 0x0010, 0, 0, 0},      /* DSP 56301 Darla20 rev.0 */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0010) },     /* DSP 56301 Darla20 rev.0 */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index ae816e78f5991fd115d0a605d99d58ca8acdf277..c8cdd1b052df6c702f89870675089a01b9dbc8b8 100644 (file)
@@ -56,9 +56,9 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x1801, 0xECC0, 0x0040, 0, 0, 0},      /* DSP 56301 Darla24 rev.0 */
-       {0x1057, 0x1801, 0xECC0, 0x0041, 0, 0, 0},      /* DSP 56301 Darla24 rev.1 */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0040) },     /* DSP 56301 Darla24 rev.0 */
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0041) },     /* DSP 56301 Darla24 rev.1 */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 3d37bb4030ec2ea40c2aaf6adc27e8fd10e8e8e6..e8b476e073073bf4da7063063ae2831615d72462 100644 (file)
@@ -70,8 +70,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x0100, 0, 0, 0},      /* Echo 3G */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0100) },     /* Echo 3G */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 4f864ddc95309e77fe8eda1d7739647e5eede304..b5f88922e19a246440e257b41e64624ba60cde7a 100644 (file)
@@ -56,8 +56,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x1801, 0xECC0, 0x0020, 0, 0, 0},      /* DSP 56301 Gina20 rev.0 */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0020) },     /* DSP 56301 Gina20 rev.0 */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index eff69e83ca0a1b793afe015a29b43d18d0eeb3c7..fe0e510209ed34d08e6c6ead3db080bccc2a17e7 100644 (file)
@@ -74,11 +74,11 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x1801, 0xECC0, 0x0050, 0, 0, 0},      /* DSP 56301 Gina24 rev.0 */
-       {0x1057, 0x1801, 0xECC0, 0x0051, 0, 0, 0},      /* DSP 56301 Gina24 rev.1 */
-       {0x1057, 0x3410, 0xECC0, 0x0050, 0, 0, 0},      /* DSP 56361 Gina24 rev.0 */
-       {0x1057, 0x3410, 0xECC0, 0x0051, 0, 0, 0},      /* DSP 56361 Gina24 rev.1 */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0050) },     /* DSP 56301 Gina24 rev.0 */
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0051) },     /* DSP 56301 Gina24 rev.1 */
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0050) },     /* DSP 56361 Gina24 rev.0 */
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0051) },     /* DSP 56361 Gina24 rev.1 */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index a9f2efc58f6e0ffb549c776387aab099847358fe..496cc5aa9516da57d765ed6638a77de2aceb14b0 100644 (file)
@@ -57,8 +57,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x0090, 0, 0, 0},      /* Indigo */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0090) },     /* Indigo */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 14e9769ceba141921c67ec4e9ef76dddac3a65de..45ad92e8f5311b73d5a62d0c839201fdcc249be6 100644 (file)
@@ -57,8 +57,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x00B0, 0, 0, 0},      /* Indigo DJ*/
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x00B0) },     /* Indigo DJ*/
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index a14a7dc8c87db0c0288c1ce42e4acd3bb951569d..b1878ecb83753e4c78c0c5777774bced8d94ea17 100644 (file)
@@ -57,8 +57,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x00E0, 0, 0, 0},      /* Indigo DJx*/
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x00E0) },     /* Indigo DJx*/
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 97e024450d19c87b0751f725abd70d82aeec8a7e..2c6a6f74b0bdcc658214367ce2cb13c251f4ae63 100644 (file)
@@ -58,8 +58,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x00A0, 0, 0, 0},      /* Indigo IO*/
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x00A0) },     /* Indigo IO*/
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index a017c966b4dced4c052a7dd773d841c3355eb473..dfaa563317ad14932b62b5d472c064ea664ec180 100644 (file)
@@ -58,8 +58,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x00D0, 0, 0, 0},      /* Indigo IOx */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x00D0) },     /* Indigo IOx */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 7e38bc9c025d5487e037bdcd16408f7cad71da40..82c089f7b452b7c3bbb4b648b8efa10c7a034f4a 100644 (file)
@@ -65,9 +65,9 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x1801, 0xECC0, 0x0030, 0, 0, 0},      /* DSP 56301 Layla20 rev.0 */
-       {0x1057, 0x1801, 0xECC0, 0x0031, 0, 0, 0},      /* DSP 56301 Layla20 rev.1 */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0030) },     /* DSP 56301 Layla20 rev.0 */
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0031) },     /* DSP 56301 Layla20 rev.1 */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 95c52210fb6540d85db5db12d6da0cc1090278a2..efd676467a374c6a83e35828d64c25cca0a40895 100644 (file)
@@ -76,8 +76,8 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x0060, 0, 0, 0},      /* DSP 56361 Layla24 rev.0 */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0060) },     /* DSP 56361 Layla24 rev.0 */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index a2d4b0003b570ed745876c2dd187699ce4092d3f..950aaec74a439ac0a1d8b00d84895ab9decb6a21 100644 (file)
@@ -66,9 +66,9 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x3410, 0xECC0, 0x0080, 0, 0, 0},      /* DSP 56361 Mia rev.0 */
-       {0x1057, 0x3410, 0xECC0, 0x0081, 0, 0, 0},      /* DSP 56361 Mia rev.1 */
-       {0,}
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0080) },     /* DSP 56361 Mia rev.0 */
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0081) },     /* DSP 56361 Mia rev.1 */
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 1b45a2b5066fec443faca65d0d63d89d8f359acf..4f999324f388d8b91442b45c8259f48fe3468c78 100644 (file)
@@ -81,13 +81,19 @@ static const struct firmware card_fw[] = {
 };
 
 static const struct pci_device_id snd_echo_ids[] = {
-       {0x1057, 0x1801, 0xECC0, 0x0070, 0, 0, 0},      /* DSP 56301 Mona rev.0 */
-       {0x1057, 0x1801, 0xECC0, 0x0071, 0, 0, 0},      /* DSP 56301 Mona rev.1 */
-       {0x1057, 0x1801, 0xECC0, 0x0072, 0, 0, 0},      /* DSP 56301 Mona rev.2 */
-       {0x1057, 0x3410, 0xECC0, 0x0070, 0, 0, 0},      /* DSP 56361 Mona rev.0 */
-       {0x1057, 0x3410, 0xECC0, 0x0071, 0, 0, 0},      /* DSP 56361 Mona rev.1 */
-       {0x1057, 0x3410, 0xECC0, 0x0072, 0, 0, 0},      /* DSP 56361 Mona rev.2 */
-       {0,}
+       /* DSP 56301 Mona rev.0 */
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0070) },
+       /* DSP 56301 Mona rev.1 */
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0071) },
+       /* DSP 56301 Mona rev.2 */
+       { PCI_DEVICE_SUB(0x1057, 0x1801, 0xECC0, 0x0072) },
+       /* DSP 56361 Mona rev.0 */
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0070) },
+       /* DSP 56361 Mona rev.1 */
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0071) },
+       /* DSP 56361 Mona rev.2 */
+       { PCI_DEVICE_SUB(0x1057, 0x3410, 0xECC0, 0x0072) },
+       { }
 };
 
 static const struct snd_pcm_hardware pcm_hardware_skel = {
index 548e7d04990139e7e357c3b224009513af6dea36..3b21bd2883b64b5d46de345babe8d514cd5418de 100644 (file)
@@ -58,10 +58,10 @@ MODULE_PARM_DESC(subsystem, "Force card subsystem model.");
  * Class 0401: 1102:0008 (rev 00) Subsystem: 1102:1001 -> Audigy2 Value  Model:SB0400
  */
 static const struct pci_device_id snd_emu10k1_ids[] = {
-       { PCI_VDEVICE(CREATIVE, 0x0002), 0 },   /* EMU10K1 */
-       { PCI_VDEVICE(CREATIVE, 0x0004), 1 },   /* Audigy */
-       { PCI_VDEVICE(CREATIVE, 0x0008), 1 },   /* Audigy 2 Value SB0400 */
-       { 0, }
+       { PCI_VDEVICE(CREATIVE, 0x0002), .driver_data = 0 },    /* EMU10K1 */
+       { PCI_VDEVICE(CREATIVE, 0x0004), .driver_data = 1 },    /* Audigy */
+       { PCI_VDEVICE(CREATIVE, 0x0008), .driver_data = 1 },    /* Audigy 2 Value SB0400 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_emu10k1_ids);
index 1b207ca25814e423697abc94dedd5d5ec3ea3053..ed4630c8342b4385f86ba067dce5edbed31bfdda 100644 (file)
@@ -1518,8 +1518,8 @@ static int snd_emu10k1x_probe(struct pci_dev *pci,
 
 // PCI IDs
 static const struct pci_device_id snd_emu10k1x_ids[] = {
-       { PCI_VDEVICE(CREATIVE, 0x0006), 0 },   /* Dell OEM version (EMU10K1) */
-       { 0, }
+       { PCI_VDEVICE(CREATIVE, 0x0006) },      /* Dell OEM version (EMU10K1) */
+       { }
 };
 MODULE_DEVICE_TABLE(pci, snd_emu10k1x_ids);
 
index 657056a59175bcf851203fd3af2d6fb7fadc1f4d..0b9eb55a212181a08ed3dd2659786cedd3d368cf 100644 (file)
@@ -426,14 +426,14 @@ static irqreturn_t snd_audiopci_interrupt(int irq, void *dev_id);
 
 static const struct pci_device_id snd_audiopci_ids[] = {
 #ifdef CHIP1370
-       { PCI_VDEVICE(ENSONIQ, 0x5000), 0, },   /* ES1370 */
+       { PCI_VDEVICE(ENSONIQ, 0x5000) },       /* ES1370 */
 #endif
 #ifdef CHIP1371
-       { PCI_VDEVICE(ENSONIQ, 0x1371), 0, },   /* ES1371 */
-       { PCI_VDEVICE(ENSONIQ, 0x5880), 0, },   /* ES1373 - CT5880 */
-       { PCI_VDEVICE(ECTIVA, 0x8938), 0, },    /* Ectiva EV1938 */
+       { PCI_VDEVICE(ENSONIQ, 0x1371) },       /* ES1371 */
+       { PCI_VDEVICE(ENSONIQ, 0x5880) },       /* ES1373 - CT5880 */
+       { PCI_VDEVICE(ECTIVA, 0x8938) },        /* Ectiva EV1938 */
 #endif
-       { 0, }
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_audiopci_ids);
index 280125eff36245b88a4022cfe200f38c8f5e113d..f4c7a9532f4a6f81ee9cc6f386b48ab37e4d487b 100644 (file)
@@ -222,8 +222,8 @@ struct es1938 {
 static irqreturn_t snd_es1938_interrupt(int irq, void *dev_id);
 
 static const struct pci_device_id snd_es1938_ids[] = {
-       { PCI_VDEVICE(ESS, 0x1969), 0, },   /* Solo-1 */
-       { 0, }
+       { PCI_VDEVICE(ESS, 0x1969) },   /* Solo-1 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_es1938_ids);
index b7282b3fa1b161c08e3e43af677985d2e1b63715..f04628c8cbb729179913cc560dd62fede86c5066 100644 (file)
@@ -549,13 +549,26 @@ struct es1968 {
 static irqreturn_t snd_es1968_interrupt(int irq, void *dev_id);
 
 static const struct pci_device_id snd_es1968_ids[] = {
-       /* Maestro 1 */
-        { 0x1285, 0x0100, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, TYPE_MAESTRO },
-       /* Maestro 2 */
-       { 0x125d, 0x1968, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, TYPE_MAESTRO2 },
-       /* Maestro 2E */
-        { 0x125d, 0x1978, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, TYPE_MAESTRO2E },
-       { 0, }
+       {
+               /* Maestro 1 */
+               PCI_DEVICE(0x1285, 0x0100),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+               .driver_data = TYPE_MAESTRO,
+       }, {
+               /* Maestro 2 */
+               PCI_DEVICE(0x125d, 0x1968),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+               .driver_data = TYPE_MAESTRO2,
+       }, {
+               /* Maestro 2E */
+               PCI_DEVICE(0x125d, 0x1978),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+               .driver_data = TYPE_MAESTRO2E,
+       },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_es1968_ids);
index 4ca992449ea3019d9e1857b73e894bf5cf1ed440..9cc96b807dd79808848a784a0183a927a0ddadfe 100644 (file)
@@ -240,9 +240,18 @@ static inline u16 fm801_ioread16(struct fm801 *chip, unsigned short offset)
 }
 
 static const struct pci_device_id snd_fm801_ids[] = {
-       { 0x1319, 0x0801, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, },   /* FM801 */
-       { 0x5213, 0x0510, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, },   /* Gallant Odyssey Sound 4 */
-       { 0, }
+       {
+               /* FM801 */
+               PCI_DEVICE(0x1319, 0x0801),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               /* Gallant Odyssey Sound 4 */
+               PCI_DEVICE(0x5213, 0x0510),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_fm801_ids);
index 1e39b985bef263d9e2704097957ff2431b63e51b..0e27e84d2ce453f2887f5c6eb9233b8c41bb81c1 100644 (file)
@@ -86,8 +86,8 @@ MODULE_PARM_DESC(dxr_enable, "Enable DXR support for Terratec DMX6FIRE.");
 
 
 static const struct pci_device_id snd_ice1712_ids[] = {
-       { PCI_VDEVICE(ICE, PCI_DEVICE_ID_ICE_1712), 0 },   /* ICE1712 */
-       { 0, }
+       { PCI_VDEVICE(ICE, PCI_DEVICE_ID_ICE_1712) },   /* ICE1712 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_ice1712_ids);
index 65bf48647d0894cafc08ed53b9a6b6d88ed39ea2..2e64f9c020e5a10acd9de7aca0a57d76b5c706ef 100644 (file)
@@ -62,8 +62,8 @@ MODULE_PARM_DESC(model, "Use the given board model.");
 
 /* Both VT1720 and VT1724 have the same PCI IDs */
 static const struct pci_device_id snd_vt1724_ids[] = {
-       { PCI_VDEVICE(ICE, PCI_DEVICE_ID_VT1724), 0 },
-       { 0, }
+       { PCI_VDEVICE(ICE, PCI_DEVICE_ID_VT1724) },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_vt1724_ids);
index 3b53c5e63c298e12bb48b8561fc277ff12011f0c..e2ea9016a73e464dbe200f307c796335b7e1ca27 100644 (file)
@@ -384,30 +384,100 @@ struct intel8x0 {
 };
 
 static const struct pci_device_id snd_intel8x0_ids[] = {
-       { PCI_VDEVICE(INTEL, 0x2415), DEVICE_INTEL },   /* 82801AA */
-       { PCI_VDEVICE(INTEL, 0x2425), DEVICE_INTEL },   /* 82901AB */
-       { PCI_VDEVICE(INTEL, 0x2445), DEVICE_INTEL },   /* 82801BA */
-       { PCI_VDEVICE(INTEL, 0x2485), DEVICE_INTEL },   /* ICH3 */
-       { PCI_VDEVICE(INTEL, 0x24c5), DEVICE_INTEL_ICH4 }, /* ICH4 */
-       { PCI_VDEVICE(INTEL, 0x24d5), DEVICE_INTEL_ICH4 }, /* ICH5 */
-       { PCI_VDEVICE(INTEL, 0x25a6), DEVICE_INTEL_ICH4 }, /* ESB */
-       { PCI_VDEVICE(INTEL, 0x266e), DEVICE_INTEL_ICH4 }, /* ICH6 */
-       { PCI_VDEVICE(INTEL, 0x27de), DEVICE_INTEL_ICH4 }, /* ICH7 */
-       { PCI_VDEVICE(INTEL, 0x2698), DEVICE_INTEL_ICH4 }, /* ESB2 */
-       { PCI_VDEVICE(INTEL, 0x7195), DEVICE_INTEL },   /* 440MX */
-       { PCI_VDEVICE(SI, 0x7012), DEVICE_SIS },        /* SI7012 */
-       { PCI_VDEVICE(NVIDIA, 0x01b1), DEVICE_NFORCE }, /* NFORCE */
-       { PCI_VDEVICE(NVIDIA, 0x003a), DEVICE_NFORCE }, /* MCP04 */
-       { PCI_VDEVICE(NVIDIA, 0x006a), DEVICE_NFORCE }, /* NFORCE2 */
-       { PCI_VDEVICE(NVIDIA, 0x0059), DEVICE_NFORCE }, /* CK804 */
-       { PCI_VDEVICE(NVIDIA, 0x008a), DEVICE_NFORCE }, /* CK8 */
-       { PCI_VDEVICE(NVIDIA, 0x00da), DEVICE_NFORCE }, /* NFORCE3 */
-       { PCI_VDEVICE(NVIDIA, 0x00ea), DEVICE_NFORCE }, /* CK8S */
-       { PCI_VDEVICE(NVIDIA, 0x026b), DEVICE_NFORCE }, /* MCP51 */
-       { PCI_VDEVICE(AMD, 0x746d), DEVICE_INTEL },     /* AMD8111 */
-       { PCI_VDEVICE(AMD, 0x7445), DEVICE_INTEL },     /* AMD768 */
-       { PCI_VDEVICE(AL, 0x5455), DEVICE_ALI },   /* Ali5455 */
-       { 0, }
+       {
+               /* 82801AA */
+               PCI_VDEVICE(INTEL, 0x2415),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* 82901AB */
+               PCI_VDEVICE(INTEL, 0x2425),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* 82801BA */
+               PCI_VDEVICE(INTEL, 0x2445),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* ICH3 */
+               PCI_VDEVICE(INTEL, 0x2485),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* ICH4 */
+               PCI_VDEVICE(INTEL, 0x24c5),
+               .driver_data = DEVICE_INTEL_ICH4,
+       }, {
+               /* ICH5 */
+               PCI_VDEVICE(INTEL, 0x24d5),
+               .driver_data = DEVICE_INTEL_ICH4,
+       }, {
+               /* ESB */
+               PCI_VDEVICE(INTEL, 0x25a6),
+               .driver_data = DEVICE_INTEL_ICH4,
+       }, {
+               /* ICH6 */
+               PCI_VDEVICE(INTEL, 0x266e),
+               .driver_data = DEVICE_INTEL_ICH4,
+       }, {
+               /* ICH7 */
+               PCI_VDEVICE(INTEL, 0x27de),
+               .driver_data = DEVICE_INTEL_ICH4,
+       }, {
+               /* ESB2 */
+               PCI_VDEVICE(INTEL, 0x2698),
+               .driver_data = DEVICE_INTEL_ICH4,
+       }, {
+               /* 440MX */
+               PCI_VDEVICE(INTEL, 0x7195),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* SI7012 */
+               PCI_VDEVICE(SI, 0x7012),
+               .driver_data = DEVICE_SIS,
+       }, {
+               /* NFORCE */
+               PCI_VDEVICE(NVIDIA, 0x01b1),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* MCP04 */
+               PCI_VDEVICE(NVIDIA, 0x003a),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* NFORCE2 */
+               PCI_VDEVICE(NVIDIA, 0x006a),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* CK804 */
+               PCI_VDEVICE(NVIDIA, 0x0059),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* CK8 */
+               PCI_VDEVICE(NVIDIA, 0x008a),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* NFORCE3 */
+               PCI_VDEVICE(NVIDIA, 0x00da),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* CK8S */
+               PCI_VDEVICE(NVIDIA, 0x00ea),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* MCP51 */
+               PCI_VDEVICE(NVIDIA, 0x026b),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* AMD8111 */
+               PCI_VDEVICE(AMD, 0x746d),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* AMD768 */
+               PCI_VDEVICE(AMD, 0x7445),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* Ali5455 */
+               PCI_VDEVICE(AL, 0x5455),
+               .driver_data = DEVICE_ALI,
+       },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_intel8x0_ids);
index 84e1b7ea34e2a6fae0e156a12aa81c1c7e80941b..27dbf612542783465e491f104ca4847492a77ee4 100644 (file)
@@ -190,26 +190,78 @@ struct intel8x0m {
 };
 
 static const struct pci_device_id snd_intel8x0m_ids[] = {
-       { PCI_VDEVICE(INTEL, 0x2416), DEVICE_INTEL },   /* 82801AA */
-       { PCI_VDEVICE(INTEL, 0x2426), DEVICE_INTEL },   /* 82901AB */
-       { PCI_VDEVICE(INTEL, 0x2446), DEVICE_INTEL },   /* 82801BA */
-       { PCI_VDEVICE(INTEL, 0x2486), DEVICE_INTEL },   /* ICH3 */
-       { PCI_VDEVICE(INTEL, 0x24c6), DEVICE_INTEL }, /* ICH4 */
-       { PCI_VDEVICE(INTEL, 0x24d6), DEVICE_INTEL }, /* ICH5 */
-       { PCI_VDEVICE(INTEL, 0x266d), DEVICE_INTEL },   /* ICH6 */
-       { PCI_VDEVICE(INTEL, 0x27dd), DEVICE_INTEL },   /* ICH7 */
-       { PCI_VDEVICE(INTEL, 0x7196), DEVICE_INTEL },   /* 440MX */
-       { PCI_VDEVICE(AMD, 0x7446), DEVICE_INTEL },     /* AMD768 */
-       { PCI_VDEVICE(SI, 0x7013), DEVICE_SIS },        /* SI7013 */
-       { PCI_VDEVICE(NVIDIA, 0x01c1), DEVICE_NFORCE }, /* NFORCE */
-       { PCI_VDEVICE(NVIDIA, 0x0069), DEVICE_NFORCE }, /* NFORCE2 */
-       { PCI_VDEVICE(NVIDIA, 0x0089), DEVICE_NFORCE }, /* NFORCE2s */
-       { PCI_VDEVICE(NVIDIA, 0x00d9), DEVICE_NFORCE }, /* NFORCE3 */
-       { PCI_VDEVICE(AMD, 0x746e), DEVICE_INTEL },     /* AMD8111 */
+       {
+               /* 82801AA */
+               PCI_VDEVICE(INTEL, 0x2416),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* 82901AB */
+               PCI_VDEVICE(INTEL, 0x2426),
+               .driver_data = DEVICE_INTEL
+       }, {
+               /* 82801BA */
+               PCI_VDEVICE(INTEL, 0x2446),
+               .driver_data = DEVICE_INTEL
+       }, {
+               /* ICH3 */
+               PCI_VDEVICE(INTEL, 0x2486),
+               .driver_data = DEVICE_INTEL
+       }, {
+               /* ICH4 */
+               PCI_VDEVICE(INTEL, 0x24c6),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* ICH5 */
+               PCI_VDEVICE(INTEL, 0x24d6),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* ICH6 */
+               PCI_VDEVICE(INTEL, 0x266d),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* ICH7 */
+               PCI_VDEVICE(INTEL, 0x27dd),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* 440MX */
+               PCI_VDEVICE(INTEL, 0x7196),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* AMD768 */
+               PCI_VDEVICE(AMD, 0x7446),
+               .driver_data = DEVICE_INTEL,
+       }, {
+               /* SI7013 */
+               PCI_VDEVICE(SI, 0x7013),
+               .driver_data = DEVICE_SIS,
+       }, {
+               /* NFORCE */
+               PCI_VDEVICE(NVIDIA, 0x01c1),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* NFORCE2 */
+               PCI_VDEVICE(NVIDIA, 0x0069),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* NFORCE2s */
+               PCI_VDEVICE(NVIDIA, 0x0089),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* NFORCE3 */
+               PCI_VDEVICE(NVIDIA, 0x00d9),
+               .driver_data = DEVICE_NFORCE,
+       }, {
+               /* AMD8111 */
+               PCI_VDEVICE(AMD, 0x746e),
+               .driver_data = DEVICE_INTEL
 #if 0
-       { PCI_VDEVICE(AL, 0x5455), DEVICE_ALI },   /* Ali5455 */
+       }, {
+               /* Ali5455 */
+               PCI_VDEVICE(AL, 0x5455),
+               .driver_data = DEVICE_ALI,
 #endif
-       { 0, }
+       },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_intel8x0m_ids);
index 3353980d5cd8a256dcb68fe51c97a46d8a649ffa..dd45ffa171e183182a04ab99f022e7738bceb581 100644 (file)
@@ -779,23 +779,40 @@ struct snd_m3 {
  * pci ids
  */
 static const struct pci_device_id snd_m3_ids[] = {
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO_1, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_CANYON3D_2LE, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_CANYON3D_2, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3_1, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3_HW, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3_2, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {0,},
+       {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO_1),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_CANYON3D_2LE),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_CANYON3D_2),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3_1),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3_HW),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_MAESTRO3_2),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       },
+       { },
 };
 
 MODULE_DEVICE_TABLE(pci, snd_m3_ids);
index a7760a23bfe90060f6c16166af6549a452b72581..f451554cff5f1f161871434b2d7e906338053b67 100644 (file)
@@ -48,8 +48,8 @@ MODULE_PARM_DESC(enable, "Enable Digigram " CARD_NAME " soundcard.");
  */
 
 static const struct pci_device_id snd_mixart_ids[] = {
-       { PCI_VDEVICE(MOTOROLA, 0x0003), 0, }, /* MC8240 */
-       { 0, }
+       { PCI_VDEVICE(MOTOROLA, 0x0003) }, /* MC8240 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_mixart_ids);
index da74b923bc88fd26221092818c820036f321532e..a7da55d9c025a3c1fdbd54c1082e53fc643cbe13 100644 (file)
@@ -245,10 +245,10 @@ struct nm256 {
  * PCI ids
  */
 static const struct pci_device_id snd_nm256_ids[] = {
-       {PCI_VDEVICE(NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256AV_AUDIO), 0},
-       {PCI_VDEVICE(NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256ZX_AUDIO), 0},
-       {PCI_VDEVICE(NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256XL_PLUS_AUDIO), 0},
-       {0,},
+       { PCI_VDEVICE(NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256AV_AUDIO) },
+       { PCI_VDEVICE(NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256ZX_AUDIO) },
+       { PCI_VDEVICE(NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256XL_PLUS_AUDIO) },
+       { },
 };
 
 MODULE_DEVICE_TABLE(pci, snd_nm256_ids);
index e7d63972c2cafb14d145de40eedae4287ba7cedd..1eea40e94c43cbcc514014d5251a70cc73f3ef4d 100644 (file)
@@ -89,41 +89,41 @@ enum {
 };
 
 static const struct pci_device_id pcxhr_ids[] = {
-       { 0x10b5, 0x9656, 0x1369, 0xb001, 0, 0, PCI_ID_VX882HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xb101, 0, 0, PCI_ID_PCX882HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xb201, 0, 0, PCI_ID_VX881HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xb301, 0, 0, PCI_ID_PCX881HR, },
-       { 0x10b5, 0x9056, 0x1369, 0xb021, 0, 0, PCI_ID_VX882E, },
-       { 0x10b5, 0x9056, 0x1369, 0xb121, 0, 0, PCI_ID_PCX882E, },
-       { 0x10b5, 0x9056, 0x1369, 0xb221, 0, 0, PCI_ID_VX881E, },
-       { 0x10b5, 0x9056, 0x1369, 0xb321, 0, 0, PCI_ID_PCX881E, },
-       { 0x10b5, 0x9656, 0x1369, 0xb401, 0, 0, PCI_ID_VX1222HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xb501, 0, 0, PCI_ID_PCX1222HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xb601, 0, 0, PCI_ID_VX1221HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xb701, 0, 0, PCI_ID_PCX1221HR, },
-       { 0x10b5, 0x9056, 0x1369, 0xb421, 0, 0, PCI_ID_VX1222E, },
-       { 0x10b5, 0x9056, 0x1369, 0xb521, 0, 0, PCI_ID_PCX1222E, },
-       { 0x10b5, 0x9056, 0x1369, 0xb621, 0, 0, PCI_ID_VX1221E, },
-       { 0x10b5, 0x9056, 0x1369, 0xb721, 0, 0, PCI_ID_PCX1221E, },
-       { 0x10b5, 0x9056, 0x1369, 0xba01, 0, 0, PCI_ID_VX222HR, },
-       { 0x10b5, 0x9056, 0x1369, 0xba21, 0, 0, PCI_ID_VX222E, },
-       { 0x10b5, 0x9056, 0x1369, 0xbd01, 0, 0, PCI_ID_PCX22HR, },
-       { 0x10b5, 0x9056, 0x1369, 0xbd21, 0, 0, PCI_ID_PCX22E, },
-       { 0x10b5, 0x9056, 0x1369, 0xbc01, 0, 0, PCI_ID_VX222HRMIC, },
-       { 0x10b5, 0x9056, 0x1369, 0xbc21, 0, 0, PCI_ID_VX222E_MIC, },
-       { 0x10b5, 0x9056, 0x1369, 0xbb01, 0, 0, PCI_ID_PCX924HR, },
-       { 0x10b5, 0x9056, 0x1369, 0xbb21, 0, 0, PCI_ID_PCX924E, },
-       { 0x10b5, 0x9056, 0x1369, 0xbf01, 0, 0, PCI_ID_PCX924HRMIC, },
-       { 0x10b5, 0x9056, 0x1369, 0xbf21, 0, 0, PCI_ID_PCX924E_MIC, },
-       { 0x10b5, 0x9656, 0x1369, 0xd001, 0, 0, PCI_ID_VX442HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xd101, 0, 0, PCI_ID_PCX442HR, },
-       { 0x10b5, 0x9056, 0x1369, 0xd021, 0, 0, PCI_ID_VX442E, },
-       { 0x10b5, 0x9056, 0x1369, 0xd121, 0, 0, PCI_ID_PCX442E, },
-       { 0x10b5, 0x9656, 0x1369, 0xd201, 0, 0, PCI_ID_VX822HR, },
-       { 0x10b5, 0x9656, 0x1369, 0xd301, 0, 0, PCI_ID_PCX822HR, },
-       { 0x10b5, 0x9056, 0x1369, 0xd221, 0, 0, PCI_ID_VX822E, },
-       { 0x10b5, 0x9056, 0x1369, 0xd321, 0, 0, PCI_ID_PCX822E, },
-       { 0, }
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb001), .driver_data = PCI_ID_VX882HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb101), .driver_data = PCI_ID_PCX882HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb201), .driver_data = PCI_ID_VX881HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb301), .driver_data = PCI_ID_PCX881HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb021), .driver_data = PCI_ID_VX882E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb121), .driver_data = PCI_ID_PCX882E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb221), .driver_data = PCI_ID_VX881E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb321), .driver_data = PCI_ID_PCX881E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb401), .driver_data = PCI_ID_VX1222HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb501), .driver_data = PCI_ID_PCX1222HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb601), .driver_data = PCI_ID_VX1221HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xb701), .driver_data = PCI_ID_PCX1221HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb421), .driver_data = PCI_ID_VX1222E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb521), .driver_data = PCI_ID_PCX1222E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb621), .driver_data = PCI_ID_VX1221E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xb721), .driver_data = PCI_ID_PCX1221E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xba01), .driver_data = PCI_ID_VX222HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xba21), .driver_data = PCI_ID_VX222E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbd01), .driver_data = PCI_ID_PCX22HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbd21), .driver_data = PCI_ID_PCX22E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbc01), .driver_data = PCI_ID_VX222HRMIC },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbc21), .driver_data = PCI_ID_VX222E_MIC },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbb01), .driver_data = PCI_ID_PCX924HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbb21), .driver_data = PCI_ID_PCX924E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbf01), .driver_data = PCI_ID_PCX924HRMIC },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xbf21), .driver_data = PCI_ID_PCX924E_MIC },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xd001), .driver_data = PCI_ID_VX442HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xd101), .driver_data = PCI_ID_PCX442HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xd021), .driver_data = PCI_ID_VX442E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xd121), .driver_data = PCI_ID_PCX442E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xd201), .driver_data = PCI_ID_VX822HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9656, 0x1369, 0xd301), .driver_data = PCI_ID_PCX822HR },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xd221), .driver_data = PCI_ID_VX822E },
+       { PCI_DEVICE_SUB(0x10b5, 0x9056, 0x1369, 0xd321), .driver_data = PCI_ID_PCX822E },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, pcxhr_ids);
index ca9bbf55465091e12b7f73777a85b073c0428933..454a30a2c07e17cb51f0645ae4bf4b72ca35bcf3 100644 (file)
@@ -211,10 +211,10 @@ struct rme32 {
 };
 
 static const struct pci_device_id snd_rme32_ids[] = {
-       {PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32), 0,},
-       {PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_8), 0,},
-       {PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_PRO), 0,},
-       {0,}
+       { PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32) },
+       { PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_8) },
+       { PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_PRO) },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_rme32_ids);
index 58b8ebf1a24e7df28de8f4f36bdbf61020078fb3..892fcc5985575da1b360d11e8ab1958480f2711b 100644 (file)
@@ -242,11 +242,11 @@ struct rme96 {
 };
 
 static const struct pci_device_id snd_rme96_ids[] = {
-       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96), 0, },
-       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96_8), 0, },
-       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96_8_PRO), 0, },
-       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST), 0, },
-       { 0, }
+       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96) },
+       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96_8) },
+       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96_8_PRO) },
+       { PCI_VDEVICE(XILINX, PCI_DEVICE_ID_RME_DIGI96_8_PAD_OR_PST) },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_rme96_ids);
index a4c72799d0348d7ab932d3e8697d773dcf212784..a885d544acd654fbb84d8de9a28626ecf8d41c21 100644 (file)
@@ -227,8 +227,8 @@ struct sonicvibes {
 };
 
 static const struct pci_device_id snd_sonic_ids[] = {
-       { PCI_VDEVICE(S3, 0xca00), 0, },
-        { 0, }
+       { PCI_VDEVICE(S3, 0xca00) },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_sonic_ids);
index ddb6ccc72e443d0df6ff55e5d78dd73bb3ee5ab3..8dcbd022ca1fc503910a49ab3d84288565c40edb 100644 (file)
@@ -36,12 +36,16 @@ module_param_array(wavetable_size, int, NULL, 0444);
 MODULE_PARM_DESC(wavetable_size, "Maximum memory size in kB for wavetable synth.");
 
 static const struct pci_device_id snd_trident_ids[] = {
-       {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_DX), 
-               PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0},
-       {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_NX), 
-               0, 0, 0},
-       {PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_7018), 0, 0, 0},
-       { 0, }
+       {
+               PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_DX),
+               .class = PCI_CLASS_MULTIMEDIA_AUDIO << 8,
+               .class_mask = 0xffff00,
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_NX),
+       }, {
+               PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_7018)
+       },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_trident_ids);
index 41b322fbd9efd5f25b89ca0d8404add85be9e0ea..24ee1302f27d33e634ccfc040ec173ad85896af3 100644 (file)
@@ -389,10 +389,10 @@ struct via82xx {
 
 static const struct pci_device_id snd_via82xx_ids[] = {
        /* 0x1106, 0x3058 */
-       { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_82C686_5), TYPE_CARD_VIA686, },    /* 686A */
+       { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_82C686_5), .driver_data = TYPE_CARD_VIA686 },      /* 686A */
        /* 0x1106, 0x3059 */
-       { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8233_5), TYPE_CARD_VIA8233, },     /* VT8233 */
-       { 0, }
+       { PCI_VDEVICE(VIA, PCI_DEVICE_ID_VIA_8233_5), .driver_data = TYPE_CARD_VIA8233 },       /* VT8233 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_via82xx_ids);
index a6f176d612e3af862132a611933cceeba8e663b3..9b84d3fb9eaf5bab8c1609c38fe0029c98ec0b84 100644 (file)
@@ -246,8 +246,8 @@ struct via82xx_modem {
 };
 
 static const struct pci_device_id snd_via82xx_modem_ids[] = {
-       { PCI_VDEVICE(VIA, 0x3068), TYPE_CARD_VIA82XX_MODEM, },
-       { 0, }
+       { PCI_VDEVICE(VIA, 0x3068), .driver_data = TYPE_CARD_VIA82XX_MODEM },
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_via82xx_modem_ids);
index 693a4e471cf7f6dae3d52e55192b646c915072a2..0b89ca859e667daa0349791be07e4f9db1be7bb0 100644 (file)
@@ -47,9 +47,9 @@ enum {
 };
 
 static const struct pci_device_id snd_vx222_ids[] = {
-       { 0x10b5, 0x9050, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_OLD, },   /* PLX */
-       { 0x10b5, 0x9030, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_NEW, },   /* PLX */
-       { 0, }
+       { PCI_DEVICE_SUB(0x10b5, 0x9050, 0x1369, PCI_ANY_ID), .driver_data = VX_PCI_VX222_OLD },   /* PLX */
+       { PCI_DEVICE_SUB(0x10b5, 0x9030, 0x1369, PCI_ANY_ID), .driver_data = VX_PCI_VX222_NEW },   /* PLX */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_vx222_ids);
index 764ca59e98d1d3ea87b24ed07390f1d898cb3834..d3fb047c9a450ae6c6a8f8f903455dac66e7b5af 100644 (file)
@@ -46,13 +46,13 @@ module_param_array(rear_switch, bool, NULL, 0444);
 MODULE_PARM_DESC(rear_switch, "Enable shared rear/line-in switch");
 
 static const struct pci_device_id snd_ymfpci_ids[] = {
-       { PCI_VDEVICE(YAMAHA, 0x0004), 0, },   /* YMF724 */
-       { PCI_VDEVICE(YAMAHA, 0x000d), 0, },   /* YMF724F */
-       { PCI_VDEVICE(YAMAHA, 0x000a), 0, },   /* YMF740 */
-       { PCI_VDEVICE(YAMAHA, 0x000c), 0, },   /* YMF740C */
-       { PCI_VDEVICE(YAMAHA, 0x0010), 0, },   /* YMF744 */
-       { PCI_VDEVICE(YAMAHA, 0x0012), 0, },   /* YMF754 */
-       { 0, }
+       { PCI_VDEVICE(YAMAHA, 0x0004) },   /* YMF724 */
+       { PCI_VDEVICE(YAMAHA, 0x000d) },   /* YMF724F */
+       { PCI_VDEVICE(YAMAHA, 0x000a) },   /* YMF740 */
+       { PCI_VDEVICE(YAMAHA, 0x000c) },   /* YMF740C */
+       { PCI_VDEVICE(YAMAHA, 0x0010) },   /* YMF744 */
+       { PCI_VDEVICE(YAMAHA, 0x0012) },   /* YMF754 */
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, snd_ymfpci_ids);