diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-05-14 09:14:18 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-05-14 09:14:18 -0400 |
commit | 9fc20f030ba457d20eb994e1def7e2ce7d5ae1a8 (patch) | |
tree | 4a2e7cd2d90d7352deabb7bb6d5ac8c0a730ad33 /sound/pci/ctxfi | |
parent | d0da727e025da8b443a4a614dbb7a031b89857d0 (diff) |
ALSA: ctxfi - Move PCI ID definitions to linux/pci_ids.h
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi')
-rw-r--r-- | sound/pci/ctxfi/ctatc.c | 17 | ||||
-rw-r--r-- | sound/pci/ctxfi/ctdrv.h | 30 | ||||
-rw-r--r-- | sound/pci/ctxfi/xfi.c | 6 |
3 files changed, 12 insertions, 41 deletions
diff --git a/sound/pci/ctxfi/ctatc.c b/sound/pci/ctxfi/ctatc.c index 5f35374863fb..073fe2a59dae 100644 --- a/sound/pci/ctxfi/ctatc.c +++ b/sound/pci/ctxfi/ctatc.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include "ctatc.h" | 18 | #include "ctatc.h" |
19 | #include "ctpcm.h" | 19 | #include "ctpcm.h" |
20 | #include "ctmixer.h" | 20 | #include "ctmixer.h" |
21 | #include "ctdrv.h" | ||
22 | #include "cthardware.h" | 21 | #include "cthardware.h" |
23 | #include "ctsrc.h" | 22 | #include "ctsrc.h" |
24 | #include "ctamixer.h" | 23 | #include "ctamixer.h" |
@@ -40,23 +39,25 @@ | |||
40 | | ((IEC958_AES3_CON_FS_48000) << 24)) | 39 | | ((IEC958_AES3_CON_FS_48000) << 24)) |
41 | 40 | ||
42 | static const struct ct_atc_chip_sub_details atc_sub_details[NUM_CTCARDS] = { | 41 | static const struct ct_atc_chip_sub_details atc_sub_details[NUM_CTCARDS] = { |
43 | [CTSB0760] = {.subsys = PCI_SUBSYS_CREATIVE_SB0760, | 42 | [CTSB0760] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB0760, |
44 | .nm_model = "SB076x"}, | 43 | .nm_model = "SB076x"}, |
45 | [CTHENDRIX] = {.subsys = PCI_SUBSYS_CREATIVE_HENDRIX, | 44 | [CTHENDRIX] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_HENDRIX, |
46 | .nm_model = "Hendrix"}, | 45 | .nm_model = "Hendrix"}, |
47 | [CTSB08801] = {.subsys = PCI_SUBSYS_CREATIVE_SB08801, | 46 | [CTSB08801] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB08801, |
48 | .nm_model = "SB0880"}, | 47 | .nm_model = "SB0880"}, |
49 | [CTSB08802] = {.subsys = PCI_SUBSYS_CREATIVE_SB08802, | 48 | [CTSB08802] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB08802, |
50 | .nm_model = "SB0880"}, | 49 | .nm_model = "SB0880"}, |
51 | [CTSB08803] = {.subsys = PCI_SUBSYS_CREATIVE_SB08803, | 50 | [CTSB08803] = {.subsys = PCI_SUBDEVICE_ID_CREATIVE_SB08803, |
52 | .nm_model = "SB0880"} | 51 | .nm_model = "SB0880"} |
53 | }; | 52 | }; |
54 | 53 | ||
55 | static struct ct_atc_chip_details atc_chip_details[] = { | 54 | static struct ct_atc_chip_details atc_chip_details[] = { |
56 | {.vendor = PCI_VENDOR_CREATIVE, .device = PCI_DEVICE_CREATIVE_20K1, | 55 | {.vendor = PCI_VENDOR_ID_CREATIVE, |
56 | .device = PCI_DEVICE_ID_CREATIVE_20K1, | ||
57 | .sub_details = NULL, | 57 | .sub_details = NULL, |
58 | .nm_card = "X-Fi 20k1"}, | 58 | .nm_card = "X-Fi 20k1"}, |
59 | {.vendor = PCI_VENDOR_CREATIVE, .device = PCI_DEVICE_CREATIVE_20K2, | 59 | {.vendor = PCI_VENDOR_ID_CREATIVE, |
60 | .device = PCI_DEVICE_ID_CREATIVE_20K2, | ||
60 | .sub_details = atc_sub_details, | 61 | .sub_details = atc_sub_details, |
61 | .nm_card = "X-Fi 20k2"}, | 62 | .nm_card = "X-Fi 20k2"}, |
62 | {} /* terminator */ | 63 | {} /* terminator */ |
diff --git a/sound/pci/ctxfi/ctdrv.h b/sound/pci/ctxfi/ctdrv.h deleted file mode 100644 index f776a44f52cf..000000000000 --- a/sound/pci/ctxfi/ctdrv.h +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /** | ||
2 | * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. | ||
3 | * | ||
4 | * This source file is released under GPL v2 license (no other versions). | ||
5 | * See the COPYING file included in the main directory of this source | ||
6 | * distribution for the license terms and conditions. | ||
7 | * | ||
8 | * @file ctdrv.h | ||
9 | * | ||
10 | * @breaf | ||
11 | * This file contains the definition of card IDs supported by this driver. | ||
12 | * | ||
13 | * @author Liu Chun | ||
14 | * | ||
15 | */ | ||
16 | |||
17 | #ifndef CTDRV_H | ||
18 | #define CTDRV_H | ||
19 | |||
20 | #define PCI_VENDOR_CREATIVE 0x1102 | ||
21 | #define PCI_DEVICE_CREATIVE_20K1 0x0005 | ||
22 | #define PCI_DEVICE_CREATIVE_20K2 0x000B | ||
23 | #define PCI_SUBVENDOR_CREATIVE 0x1102 | ||
24 | #define PCI_SUBSYS_CREATIVE_SB0760 0x0024 | ||
25 | #define PCI_SUBSYS_CREATIVE_SB08801 0x0041 | ||
26 | #define PCI_SUBSYS_CREATIVE_SB08802 0x0042 | ||
27 | #define PCI_SUBSYS_CREATIVE_SB08803 0x0043 | ||
28 | #define PCI_SUBSYS_CREATIVE_HENDRIX 0x6000 | ||
29 | |||
30 | #endif /* CTDRV_H */ | ||
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index f91144036512..b7368fded53c 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -11,10 +11,10 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/pci.h> | 12 | #include <linux/pci.h> |
13 | #include <linux/moduleparam.h> | 13 | #include <linux/moduleparam.h> |
14 | #include <linux/pci_ids.h> | ||
14 | #include <sound/core.h> | 15 | #include <sound/core.h> |
15 | #include <sound/initval.h> | 16 | #include <sound/initval.h> |
16 | #include "ctatc.h" | 17 | #include "ctatc.h" |
17 | #include "ctdrv.h" | ||
18 | 18 | ||
19 | MODULE_AUTHOR("Creative Technology Ltd"); | 19 | MODULE_AUTHOR("Creative Technology Ltd"); |
20 | MODULE_DESCRIPTION("X-Fi driver version 1.03"); | 20 | MODULE_DESCRIPTION("X-Fi driver version 1.03"); |
@@ -32,8 +32,8 @@ static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | |||
32 | 32 | ||
33 | static struct pci_device_id ct_pci_dev_ids[] = { | 33 | static struct pci_device_id ct_pci_dev_ids[] = { |
34 | /* only X-Fi is supported, so... */ | 34 | /* only X-Fi is supported, so... */ |
35 | { PCI_DEVICE(PCI_VENDOR_CREATIVE, PCI_DEVICE_CREATIVE_20K1) }, | 35 | { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K1) }, |
36 | { PCI_DEVICE(PCI_VENDOR_CREATIVE, PCI_DEVICE_CREATIVE_20K2) }, | 36 | { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K2) }, |
37 | { 0, } | 37 | { 0, } |
38 | }; | 38 | }; |
39 | MODULE_DEVICE_TABLE(pci, ct_pci_dev_ids); | 39 | MODULE_DEVICE_TABLE(pci, ct_pci_dev_ids); |