Changeset 679 for GPL/trunk/alsa-kernel/isa/wavefront
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (5 years ago)
- Location:
- GPL/trunk
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
alsa-kernel/isa/wavefront/wavefront.c (modified) (27 diffs)
-
alsa-kernel/isa/wavefront/wavefront_fx.c (modified) (6 diffs)
-
alsa-kernel/isa/wavefront/wavefront_midi.c (modified) (8 diffs)
-
alsa-kernel/isa/wavefront/wavefront_synth.c (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/isa/wavefront/wavefront.c
r598 r679 1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * ALSA card-level driver for Turtle Beach Wavefront cards … … 4 5 * 5 6 * Copyright (c) 1997-1999 by Paul Barton-Davis <pbd@op.net> 6 *7 * This program is free software; you can redistribute it and/or modify8 * it under the terms of the GNU General Public License as published by9 * the Free Software Foundation; either version 2 of the License, or10 * (at your option) any later version.11 *12 * This program is distributed in the hope that it will be useful,13 * but WITHOUT ANY WARRANTY; without even the implied warranty of14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15 * GNU General Public License for more details.16 *17 * You should have received a copy of the GNU General Public License18 * along with this program; if not, write to the Free Software19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA20 7 */ 21 8 … … 25 12 #include <linux/isa.h> 26 13 #include <linux/pnp.h> 27 #include <linux/module param.h>14 #include <linux/module.h> 28 15 #include <sound/core.h> 29 16 #include <sound/initval.h> … … 39 26 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 40 27 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 41 static intenable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */28 static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ 42 29 #ifdef CONFIG_PNP 43 static intisapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1};30 static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 44 31 #endif 45 32 static long cs4232_pcm_port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* PnP setup */ … … 52 39 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ 53 40 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ 54 static intuse_cs4232_midi[SNDRV_CARDS];41 static bool use_cs4232_midi[SNDRV_CARDS]; 55 42 56 43 module_param_array(index, int, NULL, 0444); … … 64 51 MODULE_PARM_DESC(isapnp, "ISA PnP detection for WaveFront soundcards."); 65 52 #endif 66 module_param_ array(cs4232_pcm_port, long, NULL, 0444);53 module_param_hw_array(cs4232_pcm_port, long, ioport, NULL, 0444); 67 54 MODULE_PARM_DESC(cs4232_pcm_port, "Port # for CS4232 PCM interface."); 68 module_param_ array(cs4232_pcm_irq, int, NULL, 0444);55 module_param_hw_array(cs4232_pcm_irq, int, irq, NULL, 0444); 69 56 MODULE_PARM_DESC(cs4232_pcm_irq, "IRQ # for CS4232 PCM interface."); 70 module_param_ array(dma1, int, NULL, 0444);57 module_param_hw_array(dma1, int, dma, NULL, 0444); 71 58 MODULE_PARM_DESC(dma1, "DMA1 # for CS4232 PCM interface."); 72 module_param_ array(dma2, int, NULL, 0444);59 module_param_hw_array(dma2, int, dma, NULL, 0444); 73 60 MODULE_PARM_DESC(dma2, "DMA2 # for CS4232 PCM interface."); 74 module_param_ array(cs4232_mpu_port, long, NULL, 0444);61 module_param_hw_array(cs4232_mpu_port, long, ioport, NULL, 0444); 75 62 MODULE_PARM_DESC(cs4232_mpu_port, "port # for CS4232 MPU-401 interface."); 76 module_param_ array(cs4232_mpu_irq, int, NULL, 0444);63 module_param_hw_array(cs4232_mpu_irq, int, irq, NULL, 0444); 77 64 MODULE_PARM_DESC(cs4232_mpu_irq, "IRQ # for CS4232 MPU-401 interface."); 78 module_param_ array(ics2115_irq, int, NULL, 0444);65 module_param_hw_array(ics2115_irq, int, irq, NULL, 0444); 79 66 MODULE_PARM_DESC(ics2115_irq, "IRQ # for ICS2115."); 80 module_param_ array(ics2115_port, long, NULL, 0444);67 module_param_hw_array(ics2115_port, long, ioport, NULL, 0444); 81 68 MODULE_PARM_DESC(ics2115_port, "Port # for ICS2115."); 82 module_param_ array(fm_port, long, NULL, 0444);69 module_param_hw_array(fm_port, long, ioport, NULL, 0444); 83 70 MODULE_PARM_DESC(fm_port, "FM port #."); 84 71 module_param_array(use_cs4232_midi, bool, NULL, 0444); … … 89 76 static int pnp_registered; 90 77 91 static struct pnp_card_device_id snd_wavefront_pnpids[] = {78 static const struct pnp_card_device_id snd_wavefront_pnpids[] = { 92 79 /* Tropez */ 93 80 { .id = "CSC7532", .devs = { { "CSC0000" }, { "CSC0010" }, { "PnPb006" }, { "CSC0004" } } }, … … 99 86 MODULE_DEVICE_TABLE(pnp_card, snd_wavefront_pnpids); 100 87 101 static int __devinit88 static int 102 89 snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, 103 90 const struct pnp_card_device_id *id) … … 232 219 } 233 220 234 static struct snd_hwdep * __devinit 235 snd_wavefront_new_synth (struct snd_card *card, 236 int hw_dev, 237 snd_wavefront_card_t *acard) 221 static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, 222 int hw_dev, 223 snd_wavefront_card_t *acard) 238 224 { 239 225 struct snd_hwdep *wavefront_synth; … … 258 244 } 259 245 260 static struct snd_hwdep * __devinit 261 snd_wavefront_new_fx (struct snd_card *card, 262 int hw_dev, 263 snd_wavefront_card_t *acard, 264 unsigned long port) 246 static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, 247 int hw_dev, 248 snd_wavefront_card_t *acard, 249 unsigned long port) 265 250 266 251 { … … 285 270 static snd_wavefront_mpu_id external_id = external_mpu; 286 271 287 static struct snd_rawmidi *__devinit 288 snd_wavefront_new_midi (struct snd_card *card, 289 int midi_dev, 290 snd_wavefront_card_t *acard, 291 unsigned long port, 292 snd_wavefront_mpu_id mpu) 272 static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, 273 int midi_dev, 274 snd_wavefront_card_t *acard, 275 unsigned long port, 276 snd_wavefront_mpu_id mpu) 293 277 294 278 { … … 338 322 } 339 323 340 static int snd_wavefront_card_new(int dev, struct snd_card **cardp) 324 static int snd_wavefront_card_new(struct device *pdev, int dev, 325 struct snd_card **cardp) 341 326 { 342 327 struct snd_card *card; … … 344 329 int err; 345 330 346 err = snd_card_ create(index[dev], id[dev], THIS_MODULE,347 sizeof(snd_wavefront_card_t), &card);331 err = snd_card_new(pdev, index[dev], id[dev], THIS_MODULE, 332 sizeof(snd_wavefront_card_t), &card); 348 333 if (err < 0) 349 334 return err; … … 362 347 } 363 348 364 static int __devinit349 static int 365 350 snd_wavefront_probe (struct snd_card *card, int dev) 366 351 { … … 383 368 } 384 369 385 err = snd_wss_pcm(chip, 0 , NULL);370 err = snd_wss_pcm(chip, 0); 386 371 if (err < 0) 387 372 return err; 388 373 389 err = snd_wss_timer(chip, 0 , NULL);374 err = snd_wss_timer(chip, 0); 390 375 if (err < 0) 391 376 return err; … … 419 404 } 420 405 if (request_irq(ics2115_irq[dev], snd_wavefront_ics2115_interrupt, 421 IRQF_DISABLED, "ICS2115", acard)) {406 0, "ICS2115", acard)) { 422 407 snd_printk(KERN_ERR "unable to use ICS2115 IRQ %d\n", ics2115_irq[dev]); 423 408 return -EBUSY; … … 425 410 426 411 acard->wavefront.irq = ics2115_irq[dev]; 412 card->sync_irq = acard->wavefront.irq; 427 413 acard->wavefront.base = ics2115_port[dev]; 428 414 … … 450 436 err = snd_mpu401_uart_new(card, midi_dev, MPU401_HW_CS4232, 451 437 cs4232_mpu_port[dev], 0, 452 cs4232_mpu_irq[dev], IRQF_DISABLED, 453 NULL); 438 cs4232_mpu_irq[dev], NULL); 454 439 if (err < 0) { 455 440 snd_printk (KERN_ERR "can't allocate CS4232 MPU-401 device\n"); … … 543 528 } 544 529 545 static int __devinitsnd_wavefront_isa_match(struct device *pdev,546 unsigned int dev)530 static int snd_wavefront_isa_match(struct device *pdev, 531 unsigned int dev) 547 532 { 548 533 if (!enable[dev]) … … 563 548 } 564 549 565 static int __devinitsnd_wavefront_isa_probe(struct device *pdev,566 unsigned int dev)550 static int snd_wavefront_isa_probe(struct device *pdev, 551 unsigned int dev) 567 552 { 568 553 struct snd_card *card; 569 554 int err; 570 555 571 err = snd_wavefront_card_new( dev, &card);556 err = snd_wavefront_card_new(pdev, dev, &card); 572 557 if (err < 0) 573 558 return err; 574 snd_card_set_dev(card, pdev);575 559 if ((err = snd_wavefront_probe(card, dev)) < 0) { 576 560 snd_card_free(card); … … 582 566 } 583 567 584 static int __devexitsnd_wavefront_isa_remove(struct device *devptr,585 unsigned int dev)568 static int snd_wavefront_isa_remove(struct device *devptr, 569 unsigned int dev) 586 570 { 587 571 snd_card_free(dev_get_drvdata(devptr)); 588 dev_set_drvdata(devptr, NULL);589 572 return 0; 590 573 } … … 595 578 .match = snd_wavefront_isa_match, 596 579 .probe = snd_wavefront_isa_probe, 597 .remove = __devexit_p(snd_wavefront_isa_remove),580 .remove = snd_wavefront_isa_remove, 598 581 /* FIXME: suspend, resume */ 599 582 .driver = { … … 604 587 605 588 #ifdef CONFIG_PNP 606 static int __devinitsnd_wavefront_pnp_detect(struct pnp_card_link *pcard,607 const struct pnp_card_device_id *pid)589 static int snd_wavefront_pnp_detect(struct pnp_card_link *pcard, 590 const struct pnp_card_device_id *pid) 608 591 { 609 592 static int dev; … … 618 601 return -ENODEV; 619 602 620 res = snd_wavefront_card_new( dev, &card);603 res = snd_wavefront_card_new(&pcard->card->dev, dev, &card); 621 604 if (res < 0) 622 605 return res; … … 629 612 } 630 613 } 631 snd_card_set_dev(card, &pcard->card->dev);632 614 633 615 if ((res = snd_wavefront_probe(card, dev)) < 0) … … 639 621 } 640 622 641 static void __devexit snd_wavefront_pnp_remove(struct pnp_card_link *pcard)623 static void snd_wavefront_pnp_remove(struct pnp_card_link *pcard) 642 624 { 643 625 snd_card_free(pnp_get_card_drvdata(pcard)); … … 650 632 .id_table = snd_wavefront_pnpids, 651 633 .probe = snd_wavefront_pnp_detect, 652 .remove = __devexit_p(snd_wavefront_pnp_remove),634 .remove = snd_wavefront_pnp_remove, 653 635 /* FIXME: suspend,resume */ 654 636 }; -
GPL/trunk/alsa-kernel/isa/wavefront/wavefront_fx.c
r598 r679 1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * Copyright (c) 1998-2002 by Paul Davis <pbd@op.net> 3 *4 * This program is free software; you can redistribute it and/or modify5 * it under the terms of the GNU General Public License as published by6 * the Free Software Foundation; either version 2 of the License, or7 * (at your option) any later version.8 *9 * This program is distributed in the hope that it will be useful,10 * but WITHOUT ANY WARRANTY; without even the implied warranty of11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12 * GNU General Public License for more details.13 *14 * You should have received a copy of the GNU General Public License15 * along with this program; if not, write to the Free Software16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17 4 */ 18 5 19 #include < asm/io.h>6 #include <linux/io.h> 20 7 #include <linux/init.h> 21 8 #include <linux/time.h> 22 9 #include <linux/wait.h> 23 10 #include <linux/slab.h> 11 #include <linux/module.h> 24 12 #include <linux/firmware.h> 25 13 #include <sound/core.h> 26 14 #include <sound/snd_wavefront.h> 27 15 #include <sound/initval.h> 28 #include <proto.h>29 16 30 17 /* Control bits for the Load Control Register … … 80 67 snd_printk ("FX memset: " 81 68 "page must be >= 0 and <= 7\n"); 82 return - (EINVAL);69 return -EINVAL; 83 70 } 84 71 … … 86 73 snd_printk ("FX memset: " 87 74 "addr must be >= 0 and <= 7f\n"); 88 return - (EINVAL);75 return -EINVAL; 89 76 } 90 77 … … 119 106 "(0x%x, 0x%x, 0x%lx, %d) incomplete\n", 120 107 page, addr, (unsigned long) data, cnt); 121 return - (EIO);108 return -EIO; 122 109 } 123 110 } … … 154 141 } 155 142 156 int 143 int 157 144 snd_wavefront_fx_release (struct snd_hwdep *hw, struct file *file) 158 145 … … 241 228 */ 242 229 243 int __devinit230 int 244 231 snd_wavefront_fx_start (snd_wavefront_t *dev) 245 232 { -
GPL/trunk/alsa-kernel/isa/wavefront/wavefront_midi.c
r399 r679 1 // SPDX-License-Identifier: GPL-2.0-only 1 2 /* 2 3 * Copyright (C) by Paul Barton-Davis 1998-1999 3 *4 * This file is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)5 * Version 2 (June 1991). See the "COPYING" file distributed with this6 * software for more info.7 4 */ 8 5 … … 48 45 */ 49 46 50 #include < asm/io.h>47 #include <linux/io.h> 51 48 #include <linux/init.h> 52 49 #include <linux/time.h> … … 350 347 } 351 348 352 static void snd_wavefront_midi_output_timer( unsigned long data)353 { 354 snd_wavefront_ card_t *card = (snd_wavefront_card_t *)data;355 snd_wavefront_ midi_t *midi = &card->wavefront.midi;349 static void snd_wavefront_midi_output_timer(struct timer_list *t) 350 { 351 snd_wavefront_midi_t *midi = from_timer(midi, t, timer); 352 snd_wavefront_card_t *card = midi->timer_card; 356 353 unsigned long flags; 357 354 358 355 spin_lock_irqsave (&midi->virtual, flags); 359 midi->timer.expires = 1 + jiffies; 360 add_timer(&midi->timer); 356 mod_timer(&midi->timer, 1 + jiffies); 361 357 spin_unlock_irqrestore (&midi->virtual, flags); 362 358 snd_wavefront_midi_output_write(card); … … 385 381 if ((midi->mode[mpu] & MPU401_MODE_OUTPUT_TRIGGER) == 0) { 386 382 if (!midi->istimer) { 387 init_timer(&midi->timer); 388 midi->timer.function = snd_wavefront_midi_output_timer; 389 midi->timer.data = (unsigned long) substream->rmidi->card->private_data; 390 midi->timer.expires = 1 + jiffies; 391 add_timer(&midi->timer); 383 timer_setup(&midi->timer, 384 snd_wavefront_midi_output_timer, 385 0); 386 mod_timer(&midi->timer, 1 + jiffies); 392 387 } 393 388 midi->istimer++; … … 482 477 } 483 478 484 int __devinit479 int 485 480 snd_wavefront_midi_start (snd_wavefront_card_t *card) 486 481 … … 538 533 539 534 /* Turn on Virtual MIDI, but first *always* turn it off, 540 since otherwise consec tutive reloads of the driver will535 since otherwise consecutive reloads of the driver will 541 536 never cause the hardware to generate the initial "internal" or 542 537 "external" source bytes in the MIDI data stream. This … … 562 557 } 563 558 564 struct snd_rawmidi_ops snd_wavefront_midi_output =559 const struct snd_rawmidi_ops snd_wavefront_midi_output = 565 560 { 566 561 .open = snd_wavefront_midi_output_open, … … 569 564 }; 570 565 571 struct snd_rawmidi_ops snd_wavefront_midi_input =566 const struct snd_rawmidi_ops snd_wavefront_midi_input = 572 567 { 573 568 .open = snd_wavefront_midi_input_open, -
GPL/trunk/alsa-kernel/isa/wavefront/wavefront_synth.c
r598 r679 1 // SPDX-License-Identifier: GPL-2.0-only 1 2 /* Copyright (C) by Paul Barton-Davis 1998-1999 2 3 * 3 4 * Some portions of this file are taken from work that is 4 5 * copyright (C) by Hannu Savolainen 1993-1996 5 *6 * This program is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)7 * Version 2 (June 1991). See the "COPYING" file distributed with this software8 * for more info.9 6 */ 10 7 … … 21 18 */ 22 19 23 #include < asm/io.h>20 #include <linux/io.h> 24 21 #include <linux/interrupt.h> 25 22 #include <linux/init.h> … … 27 24 #include <linux/time.h> 28 25 #include <linux/wait.h> 26 #include <linux/sched/signal.h> 29 27 #include <linux/firmware.h> 30 28 #include <linux/moduleparam.h> 31 29 #include <linux/slab.h> 30 #include <linux/module.h> 32 31 #include <sound/core.h> 33 32 #include <sound/snd_wavefront.h> … … 539 538 540 539 dst++; 541 }; 540 } 542 541 return dst; 543 542 }; … … 787 786 header->number); 788 787 788 if (header->number >= ARRAY_SIZE(dev->patch_status)) 789 return -EINVAL; 790 789 791 dev->patch_status[header->number] |= WF_SLOT_FILLED; 790 792 791 bptr = buf;792 793 bptr = munge_int32 (header->number, buf, 2); 793 794 munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES); … … 795 796 if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_PATCH, NULL, buf)) { 796 797 snd_printk ("download patch failed\n"); 797 return - (EIO);798 return -EIO; 798 799 } 799 800 … … 810 811 DPRINT (WF_DEBUG_LOAD_PATCH, "downloading program %d\n", 811 812 header->number); 813 814 if (header->number >= ARRAY_SIZE(dev->prog_status)) 815 return -EINVAL; 812 816 813 817 dev->prog_status[header->number] = WF_SLOT_USED; … … 833 837 if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_PROGRAM, NULL, buf)) { 834 838 snd_printk ("download patch failed\n"); 835 return - (EIO);839 return -EIO; 836 840 } 837 841 … … 900 904 } 901 905 906 if (header->number >= WF_MAX_SAMPLE) 907 return -EINVAL; 908 902 909 if (header->size) { 903 910 … … 954 961 snd_printk ("channel selection only " 955 962 "possible on 16-bit samples"); 956 return - (EINVAL);963 return -EINVAL; 957 964 } 958 965 … … 1051 1058 snd_printk ("sample %sdownload refused.\n", 1052 1059 header->size ? "" : "header "); 1053 return - (EIO);1060 return -EIO; 1054 1061 } 1055 1062 … … 1077 1084 snd_printk ("download block " 1078 1085 "request refused.\n"); 1079 return - (EIO);1086 return -EIO; 1080 1087 } 1081 1088 … … 1137 1144 snd_printk ("upload sample " 1138 1145 "DMA ack timeout\n"); 1139 return - (EIO);1146 return -EIO; 1140 1147 } else { 1141 1148 snd_printk ("upload sample " 1142 1149 "DMA ack error 0x%x\n", 1143 1150 dma_ack); 1144 return - (EIO);1151 return -EIO; 1145 1152 } 1146 1153 } … … 1167 1174 header->number, 1168 1175 header->hdr.a.OriginalSample); 1169 1176 1177 if (header->number >= WF_MAX_SAMPLE) 1178 return -EINVAL; 1179 1170 1180 munge_int32 (header->number, &alias_hdr[0], 2); 1171 1181 munge_int32 (header->hdr.a.OriginalSample, &alias_hdr[2], 2); … … 1183 1193 if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_SAMPLE_ALIAS, NULL, alias_hdr)) { 1184 1194 snd_printk ("download alias failed.\n"); 1185 return - (EIO);1195 return -EIO; 1186 1196 } 1187 1197 … … 1198 1208 unsigned char *msample_hdr; 1199 1209 1200 msample_hdr = kmalloc(sizeof(WF_MSAMPLE_BYTES), GFP_KERNEL); 1210 if (header->number >= WF_MAX_SAMPLE) 1211 return -EINVAL; 1212 1213 msample_hdr = kmalloc(WF_MSAMPLE_BYTES, GFP_KERNEL); 1201 1214 if (! msample_hdr) 1202 1215 return -ENOMEM; … … 1234 1247 snd_printk ("download of multisample failed.\n"); 1235 1248 kfree(msample_hdr); 1236 return - (EIO);1249 return -EIO; 1237 1250 } 1238 1251 … … 1256 1269 if (snd_wavefront_cmd (dev, WFC_UPLOAD_MULTISAMPLE, log_ns, number)) { 1257 1270 snd_printk ("upload multisample failed.\n"); 1258 return - (EIO);1271 return -EIO; 1259 1272 } 1260 1273 … … 1275 1288 snd_printk ("upload multisample failed " 1276 1289 "during sample loop.\n"); 1277 return - (EIO);1290 return -EIO; 1278 1291 } 1279 1292 d[0] = val; … … 1282 1295 snd_printk ("upload multisample failed " 1283 1296 "during sample loop.\n"); 1284 return - (EIO);1297 return -EIO; 1285 1298 } 1286 1299 d[1] = val; … … 1317 1330 if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_EDRUM_PROGRAM, NULL, drumbuf)) { 1318 1331 snd_printk ("download drum failed.\n"); 1319 return - (EIO);1332 return -EIO; 1320 1333 } 1321 1334 … … 1743 1756 */ 1744 1757 1745 static int __devinit1758 static int 1746 1759 snd_wavefront_interrupt_bits (int irq) 1747 1760 … … 1771 1784 } 1772 1785 1773 static void __devinit1786 static void 1774 1787 wavefront_should_cause_interrupt (snd_wavefront_t *dev, 1775 1788 int val, int port, unsigned long timeout) 1776 1789 1777 1790 { 1778 wait_queue_ t wait;1791 wait_queue_entry_t wait; 1779 1792 1780 1793 init_waitqueue_entry(&wait, current); … … 1790 1803 } 1791 1804 1792 static int __devinit1805 static int 1793 1806 wavefront_reset_to_cleanliness (snd_wavefront_t *dev) 1794 1807 … … 1941 1954 } 1942 1955 1943 static int __devinit1956 static int 1944 1957 wavefront_download_firmware (snd_wavefront_t *dev, char *path) 1945 1958 … … 2014 2027 2015 2028 2016 static int __devinit2029 static int 2017 2030 wavefront_do_reset (snd_wavefront_t *dev) 2018 2031 … … 2103 2116 } 2104 2117 2105 int __devinit2118 int 2106 2119 snd_wavefront_start (snd_wavefront_t *dev) 2107 2120 … … 2145 2158 } 2146 2159 2147 int __devinit2160 int 2148 2161 snd_wavefront_detect (snd_wavefront_card_t *card) 2149 2162
Note:
See TracChangeset
for help on using the changeset viewer.
