ALSA: ctxfi - Move PCI ID definitions to linux/pci_ids.h
authorTakashi Iwai <tiwai@suse.de>
Thu, 14 May 2009 13:14:18 +0000 (15:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 May 2009 13:14:18 +0000 (15:14 +0200)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/linux/pci_ids.h
sound/pci/ctxfi/ctatc.c
sound/pci/ctxfi/ctdrv.h [deleted file]
sound/pci/ctxfi/xfi.c

index 06ba90c211a53b694a13fb371cbde61ff963b75b..619153138986ac05d557d07ed42694530e7198c1 100644 (file)
 
 #define PCI_VENDOR_ID_CREATIVE         0x1102 /* duplicate: ECTIVA */
 #define PCI_DEVICE_ID_CREATIVE_EMU10K1 0x0002
+#define PCI_DEVICE_ID_CREATIVE_20K1    0x0005
+#define PCI_DEVICE_ID_CREATIVE_20K2    0x000b
+#define PCI_SUBDEVICE_ID_CREATIVE_SB0760       0x0024
+#define PCI_SUBDEVICE_ID_CREATIVE_SB08801      0x0041
+#define PCI_SUBDEVICE_ID_CREATIVE_SB08802      0x0042
+#define PCI_SUBDEVICE_ID_CREATIVE_SB08803      0x0043
+#define PCI_SUBDEVICE_ID_CREATIVE_HENDRIX      0x6000
 
 #define PCI_VENDOR_ID_ECTIVA           0x1102 /* duplicate: CREATIVE */
 #define PCI_DEVICE_ID_ECTIVA_EV1938    0x8938
index 5f35374863fb96b1c286079df3170c414c0bdc9d..073fe2a59daed77b6aea088d406a449eb3c53db4 100644 (file)
@@ -18,7 +18,6 @@
 #include "ctatc.h"
 #include "ctpcm.h"
 #include "ctmixer.h"
-#include "ctdrv.h"
 #include "cthardware.h"
 #include "ctsrc.h"
 #include "ctamixer.h"
                            | ((IEC958_AES3_CON_FS_48000) << 24))
 
 static const struct ct_atc_chip_sub_details atc_sub_details[NUM_CTCARDS] = {
-       [CTSB0760] = {.subsys = PCI_SUBSYS_CREATIVE_SB0760,
+       [CTSB0760] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB0760,
                      .nm_model = "SB076x"},
-       [CTHENDRIX] = {.subsys = PCI_SUBSYS_CREATIVE_HENDRIX,
+       [CTHENDRIX] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_HENDRIX,
                      .nm_model = "Hendrix"},
-       [CTSB08801] = {.subsys = PCI_SUBSYS_CREATIVE_SB08801,
+       [CTSB08801] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB08801,
                      .nm_model = "SB0880"},
-       [CTSB08802] = {.subsys = PCI_SUBSYS_CREATIVE_SB08802,
+       [CTSB08802] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB08802,
                      .nm_model = "SB0880"},
-       [CTSB08803] = {.subsys = PCI_SUBSYS_CREATIVE_SB08803,
+       [CTSB08803] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB08803,
                      .nm_model = "SB0880"}
 };
 
 static struct ct_atc_chip_details atc_chip_details[] = {
-       {.vendor = PCI_VENDOR_CREATIVE, .device = PCI_DEVICE_CREATIVE_20K1,
+       {.vendor = PCI_VENDOR_ID_CREATIVE,
+        .device = PCI_DEVICE_ID_CREATIVE_20K1,
         .sub_details = NULL,
         .nm_card = "X-Fi 20k1"},
-       {.vendor = PCI_VENDOR_CREATIVE, .device = PCI_DEVICE_CREATIVE_20K2,
+       {.vendor = PCI_VENDOR_ID_CREATIVE,
+        .device = PCI_DEVICE_ID_CREATIVE_20K2,
         .sub_details = atc_sub_details,
         .nm_card = "X-Fi 20k2"},
        {} /* terminator */
diff --git a/sound/pci/ctxfi/ctdrv.h b/sound/pci/ctxfi/ctdrv.h
deleted file mode 100644 (file)
index f776a44..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
- *
- * This source file is released under GPL v2 license (no other versions).
- * See the COPYING file included in the main directory of this source
- * distribution for the license terms and conditions.
- *
- * @file    ctdrv.h
- *
- * @breaf
- * This file contains the definition of card IDs supported by this driver.
- *
- * @author Liu Chun
- *
- */
-
-#ifndef CTDRV_H
-#define CTDRV_H
-
-#define PCI_VENDOR_CREATIVE            0x1102
-#define PCI_DEVICE_CREATIVE_20K1       0x0005
-#define PCI_DEVICE_CREATIVE_20K2       0x000B
-#define PCI_SUBVENDOR_CREATIVE         0x1102
-#define PCI_SUBSYS_CREATIVE_SB0760     0x0024
-#define PCI_SUBSYS_CREATIVE_SB08801    0x0041
-#define PCI_SUBSYS_CREATIVE_SB08802    0x0042
-#define PCI_SUBSYS_CREATIVE_SB08803    0x0043
-#define PCI_SUBSYS_CREATIVE_HENDRIX    0x6000
-
-#endif /* CTDRV_H */
index f911440365126c5b52b9d789200da4fc620a93f8..b7368fded53c201c97f054dd2c16017e6926c1e3 100644 (file)
 #include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/moduleparam.h>
+#include <linux/pci_ids.h>
 #include <sound/core.h>
 #include <sound/initval.h>
 #include "ctatc.h"
-#include "ctdrv.h"
 
 MODULE_AUTHOR("Creative Technology Ltd");
 MODULE_DESCRIPTION("X-Fi driver version 1.03");
@@ -32,8 +32,8 @@ static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
 
 static struct pci_device_id ct_pci_dev_ids[] = {
        /* only X-Fi is supported, so... */
-       { PCI_DEVICE(PCI_VENDOR_CREATIVE, PCI_DEVICE_CREATIVE_20K1) },
-       { PCI_DEVICE(PCI_VENDOR_CREATIVE, PCI_DEVICE_CREATIVE_20K2) },
+       { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K1) },
+       { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K2) },
        { 0, }
 };
 MODULE_DEVICE_TABLE(pci, ct_pci_dev_ids);