aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ctxfi/ctatc.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-08 12:10:32 -0400
committerTakashi Iwai <tiwai@suse.de>2009-06-08 12:10:32 -0400
commit9470195a9cd13e6d90221b8b5d897e9232da8d28 (patch)
tree12f57a49fe94310396f7108c267560c74189c0e0 /sound/pci/ctxfi/ctatc.h
parentd362af62ed98f58c64a2b3dd58c79d25ad181b0b (diff)
ALSA: ctxfi - Clean up probe routines
Clean up probe routines and model detection routines so that the driver won't call and check the PCI subsystem id at each time. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctatc.h')
-rw-r--r--sound/pci/ctxfi/ctatc.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/sound/pci/ctxfi/ctatc.h b/sound/pci/ctxfi/ctatc.h
index 04459aa0d4d9..a03347232e84 100644
--- a/sound/pci/ctxfi/ctatc.h
+++ b/sound/pci/ctxfi/ctatc.h
@@ -37,15 +37,6 @@ enum CTALSADEVS { /* Types of alsa devices */
37 NUM_CTALSADEVS /* This should always be the last */ 37 NUM_CTALSADEVS /* This should always be the last */
38}; 38};
39 39
40enum CTCARDS {
41 CTSB0760,
42 CTHENDRIX,
43 CTSB08801,
44 CTSB08802,
45 CTSB08803,
46 NUM_CTCARDS /* This should always be the last */
47};
48
49struct ct_atc_chip_sub_details { 40struct ct_atc_chip_sub_details {
50 u16 subsys; 41 u16 subsys;
51 const char *nm_model; 42 const char *nm_model;
@@ -89,8 +80,10 @@ struct ct_atc {
89 unsigned int msr; /* master sample rate in rsr */ 80 unsigned int msr; /* master sample rate in rsr */
90 unsigned int pll_rate; /* current rate of Phase Lock Loop */ 81 unsigned int pll_rate; /* current rate of Phase Lock Loop */
91 82
92 const struct ct_atc_chip_details *chip_details; 83 int chip_type;
93 enum CTCARDS model; 84 int model;
85 const char *chip_name;
86 const char *model_name;
94 87
95 struct ct_vm *vm; /* device virtual memory manager for this card */ 88 struct ct_vm *vm; /* device virtual memory manager for this card */
96 int (*map_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm); 89 int (*map_audio_buffer)(struct ct_atc *atc, struct ct_atc_pcm *apcm);
@@ -147,7 +140,7 @@ struct ct_atc {
147 140
148 141
149int __devinit ct_atc_create(struct snd_card *card, struct pci_dev *pci, 142int __devinit ct_atc_create(struct snd_card *card, struct pci_dev *pci,
150 unsigned int rsr, unsigned int msr, 143 unsigned int rsr, unsigned int msr, int chip_type,
151 struct ct_atc **ratc); 144 struct ct_atc **ratc);
152int __devinit ct_atc_create_alsa_devs(struct ct_atc *atc); 145int __devinit ct_atc_create_alsa_devs(struct ct_atc *atc);
153 146