aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/gus/interwave.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/gus/interwave.c')
-rw-r--r--sound/isa/gus/interwave.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/sound/isa/gus/interwave.c b/sound/isa/gus/interwave.c
index f703a9f4257c..f2e9c5073548 100644
--- a/sound/isa/gus/interwave.c
+++ b/sound/isa/gus/interwave.c
@@ -112,9 +112,9 @@ MODULE_PARM_DESC(effect, "Effects enable for InterWave driver.");
112 112
113struct snd_interwave { 113struct snd_interwave {
114 int irq; 114 int irq;
115 snd_card_t *card; 115 struct snd_card *card;
116 snd_gus_card_t *gus; 116 struct snd_gus_card *gus;
117 cs4231_t *cs4231; 117 struct snd_cs4231 *cs4231;
118#ifdef SNDRV_STB 118#ifdef SNDRV_STB
119 struct resource *i2c_res; 119 struct resource *i2c_res;
120#endif 120#endif
@@ -128,7 +128,7 @@ struct snd_interwave {
128#endif 128#endif
129}; 129};
130 130
131static snd_card_t *snd_interwave_legacy[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; 131static struct snd_card *snd_interwave_legacy[SNDRV_CARDS] = SNDRV_DEFAULT_PTR;
132 132
133#ifdef CONFIG_PNP 133#ifdef CONFIG_PNP
134 134
@@ -160,7 +160,7 @@ MODULE_DEVICE_TABLE(pnp_card, snd_interwave_pnpids);
160 160
161 161
162#ifdef SNDRV_STB 162#ifdef SNDRV_STB
163static void snd_interwave_i2c_setlines(snd_i2c_bus_t *bus, int ctrl, int data) 163static void snd_interwave_i2c_setlines(struct snd_i2c_bus *bus, int ctrl, int data)
164{ 164{
165 unsigned long port = bus->private_value; 165 unsigned long port = bus->private_value;
166 166
@@ -171,7 +171,7 @@ static void snd_interwave_i2c_setlines(snd_i2c_bus_t *bus, int ctrl, int data)
171 udelay(10); 171 udelay(10);
172} 172}
173 173
174static int snd_interwave_i2c_getclockline(snd_i2c_bus_t *bus) 174static int snd_interwave_i2c_getclockline(struct snd_i2c_bus *bus)
175{ 175{
176 unsigned long port = bus->private_value; 176 unsigned long port = bus->private_value;
177 unsigned char res; 177 unsigned char res;
@@ -183,7 +183,7 @@ static int snd_interwave_i2c_getclockline(snd_i2c_bus_t *bus)
183 return res; 183 return res;
184} 184}
185 185
186static int snd_interwave_i2c_getdataline(snd_i2c_bus_t *bus, int ack) 186static int snd_interwave_i2c_getdataline(struct snd_i2c_bus *bus, int ack)
187{ 187{
188 unsigned long port = bus->private_value; 188 unsigned long port = bus->private_value;
189 unsigned char res; 189 unsigned char res;
@@ -197,19 +197,19 @@ static int snd_interwave_i2c_getdataline(snd_i2c_bus_t *bus, int ack)
197 return res; 197 return res;
198} 198}
199 199
200static snd_i2c_bit_ops_t snd_interwave_i2c_bit_ops = { 200static struct snd_i2c_bit_ops snd_interwave_i2c_bit_ops = {
201 .setlines = snd_interwave_i2c_setlines, 201 .setlines = snd_interwave_i2c_setlines,
202 .getclock = snd_interwave_i2c_getclockline, 202 .getclock = snd_interwave_i2c_getclockline,
203 .getdata = snd_interwave_i2c_getdataline, 203 .getdata = snd_interwave_i2c_getdataline,
204}; 204};
205 205
206static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard, 206static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard,
207 snd_gus_card_t * gus, int dev, 207 struct snd_gus_card * gus, int dev,
208 snd_i2c_bus_t **rbus) 208 struct snd_i2c_bus **rbus)
209{ 209{
210 unsigned long port; 210 unsigned long port;
211 snd_i2c_bus_t *bus; 211 struct snd_i2c_bus *bus;
212 snd_card_t *card = iwcard->card; 212 struct snd_card *card = iwcard->card;
213 char name[32]; 213 char name[32];
214 int err; 214 int err;
215 215
@@ -246,10 +246,10 @@ static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard,
246#endif 246#endif
247 247
248static int __devinit snd_interwave_detect(struct snd_interwave *iwcard, 248static int __devinit snd_interwave_detect(struct snd_interwave *iwcard,
249 snd_gus_card_t * gus, 249 struct snd_gus_card * gus,
250 int dev 250 int dev
251#ifdef SNDRV_STB 251#ifdef SNDRV_STB
252 , snd_i2c_bus_t **rbus 252 , struct snd_i2c_bus **rbus
253#endif 253#endif
254 ) 254 )
255{ 255{
@@ -314,7 +314,7 @@ static irqreturn_t snd_interwave_interrupt(int irq, void *dev_id, struct pt_regs
314 return IRQ_RETVAL(handled); 314 return IRQ_RETVAL(handled);
315} 315}
316 316
317static void __devinit snd_interwave_reset(snd_gus_card_t * gus) 317static void __devinit snd_interwave_reset(struct snd_gus_card * gus)
318{ 318{
319 snd_gf1_write8(gus, SNDRV_GF1_GB_RESET, 0x00); 319 snd_gf1_write8(gus, SNDRV_GF1_GB_RESET, 0x00);
320 udelay(160); 320 udelay(160);
@@ -322,7 +322,7 @@ static void __devinit snd_interwave_reset(snd_gus_card_t * gus)
322 udelay(160); 322 udelay(160);
323} 323}
324 324
325static void __devinit snd_interwave_bank_sizes(snd_gus_card_t * gus, int *sizes) 325static void __devinit snd_interwave_bank_sizes(struct snd_gus_card * gus, int *sizes)
326{ 326{
327 unsigned int idx; 327 unsigned int idx;
328 unsigned int local; 328 unsigned int local;
@@ -371,7 +371,7 @@ struct rom_hdr {
371 /* 511 */ unsigned char csum; 371 /* 511 */ unsigned char csum;
372}; 372};
373 373
374static void __devinit snd_interwave_detect_memory(snd_gus_card_t * gus) 374static void __devinit snd_interwave_detect_memory(struct snd_gus_card * gus)
375{ 375{
376 static unsigned int lmc[13] = 376 static unsigned int lmc[13] =
377 { 377 {
@@ -470,7 +470,7 @@ static void __devinit snd_interwave_detect_memory(snd_gus_card_t * gus)
470 snd_interwave_reset(gus); 470 snd_interwave_reset(gus);
471} 471}
472 472
473static void __devinit snd_interwave_init(int dev, snd_gus_card_t * gus) 473static void __devinit snd_interwave_init(int dev, struct snd_gus_card * gus)
474{ 474{
475 unsigned long flags; 475 unsigned long flags;
476 476
@@ -492,17 +492,17 @@ static void __devinit snd_interwave_init(int dev, snd_gus_card_t * gus)
492 492
493} 493}
494 494
495static snd_kcontrol_new_t snd_interwave_controls[] = { 495static struct snd_kcontrol_new snd_interwave_controls[] = {
496CS4231_DOUBLE("Master Playback Switch", 0, CS4231_LINE_LEFT_OUTPUT, CS4231_LINE_RIGHT_OUTPUT, 7, 7, 1, 1), 496CS4231_DOUBLE("Master Playback Switch", 0, CS4231_LINE_LEFT_OUTPUT, CS4231_LINE_RIGHT_OUTPUT, 7, 7, 1, 1),
497CS4231_DOUBLE("Master Playback Volume", 0, CS4231_LINE_LEFT_OUTPUT, CS4231_LINE_RIGHT_OUTPUT, 0, 0, 31, 1), 497CS4231_DOUBLE("Master Playback Volume", 0, CS4231_LINE_LEFT_OUTPUT, CS4231_LINE_RIGHT_OUTPUT, 0, 0, 31, 1),
498CS4231_DOUBLE("Mic Playback Switch", 0, CS4231_LEFT_MIC_INPUT, CS4231_RIGHT_MIC_INPUT, 7, 7, 1, 1), 498CS4231_DOUBLE("Mic Playback Switch", 0, CS4231_LEFT_MIC_INPUT, CS4231_RIGHT_MIC_INPUT, 7, 7, 1, 1),
499CS4231_DOUBLE("Mic Playback Volume", 0, CS4231_LEFT_MIC_INPUT, CS4231_RIGHT_MIC_INPUT, 0, 0, 31, 1) 499CS4231_DOUBLE("Mic Playback Volume", 0, CS4231_LEFT_MIC_INPUT, CS4231_RIGHT_MIC_INPUT, 0, 0, 31, 1)
500}; 500};
501 501
502static int __devinit snd_interwave_mixer(cs4231_t *chip) 502static int __devinit snd_interwave_mixer(struct snd_cs4231 *chip)
503{ 503{
504 snd_card_t *card = chip->card; 504 struct snd_card *card = chip->card;
505 snd_ctl_elem_id_t id1, id2; 505 struct snd_ctl_elem_id id1, id2;
506 unsigned int idx; 506 unsigned int idx;
507 int err; 507 int err;
508 508
@@ -631,7 +631,7 @@ static int __devinit snd_interwave_pnp(int dev, struct snd_interwave *iwcard,
631} 631}
632#endif /* CONFIG_PNP */ 632#endif /* CONFIG_PNP */
633 633
634static void snd_interwave_free(snd_card_t *card) 634static void snd_interwave_free(struct snd_card *card)
635{ 635{
636 struct snd_interwave *iwcard = (struct snd_interwave *)card->private_data; 636 struct snd_interwave *iwcard = (struct snd_interwave *)card->private_data;
637 637
@@ -650,14 +650,14 @@ static int __devinit snd_interwave_probe(int dev, struct pnp_card_link *pcard,
650 static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1}; 650 static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1};
651 static int possible_dmas[] = {0, 1, 3, 5, 6, 7, -1}; 651 static int possible_dmas[] = {0, 1, 3, 5, 6, 7, -1};
652 int xirq, xdma1, xdma2; 652 int xirq, xdma1, xdma2;
653 snd_card_t *card; 653 struct snd_card *card;
654 struct snd_interwave *iwcard; 654 struct snd_interwave *iwcard;
655 cs4231_t *cs4231; 655 struct snd_cs4231 *cs4231;
656 snd_gus_card_t *gus; 656 struct snd_gus_card *gus;
657#ifdef SNDRV_STB 657#ifdef SNDRV_STB
658 snd_i2c_bus_t *i2c_bus; 658 struct snd_i2c_bus *i2c_bus;
659#endif 659#endif
660 snd_pcm_t *pcm; 660 struct snd_pcm *pcm;
661 char *str; 661 char *str;
662 int err; 662 int err;
663 663
@@ -761,7 +761,7 @@ static int __devinit snd_interwave_probe(int dev, struct pnp_card_link *pcard,
761 761
762#ifdef SNDRV_STB 762#ifdef SNDRV_STB
763 { 763 {
764 snd_ctl_elem_id_t id1, id2; 764 struct snd_ctl_elem_id id1, id2;
765 memset(&id1, 0, sizeof(id1)); 765 memset(&id1, 0, sizeof(id1));
766 memset(&id2, 0, sizeof(id2)); 766 memset(&id2, 0, sizeof(id2));
767 id1.iface = id2.iface = SNDRV_CTL_ELEM_IFACE_MIXER; 767 id1.iface = id2.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
@@ -863,7 +863,7 @@ static int __devinit snd_interwave_pnp_detect(struct pnp_card_link *card,
863 863
864static void __devexit snd_interwave_pnp_remove(struct pnp_card_link * pcard) 864static void __devexit snd_interwave_pnp_remove(struct pnp_card_link * pcard)
865{ 865{
866 snd_card_t *card = (snd_card_t *) pnp_get_card_drvdata(pcard); 866 struct snd_card *card = (struct snd_card *) pnp_get_card_drvdata(pcard);
867 867
868 snd_card_disconnect(card); 868 snd_card_disconnect(card);
869 snd_card_free_in_thread(card); 869 snd_card_free_in_thread(card);