.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /********************************************************************* |
---|
2 | 3 | * |
---|
3 | 4 | * Linux multisound pinnacle/fiji driver for ALSA. |
---|
.. | .. |
---|
9 | 10 | * to make it easier for some brave heart to implemt classic |
---|
10 | 11 | * support in alsa, i left all the MSND_CLASSIC tokens in this file. |
---|
11 | 12 | * but for now this untested & undone. |
---|
12 | | - * |
---|
13 | 13 | * |
---|
14 | 14 | * ripped from linux kernel 2.4.18 by Karsten Wiese. |
---|
15 | 15 | * |
---|
.. | .. |
---|
29 | 29 | * 12-3-2000 Modified IO port validation Steve Sycamore |
---|
30 | 30 | * |
---|
31 | 31 | * Copyright (C) 1998 Andrew Veliath |
---|
32 | | - * |
---|
33 | | - * This program is free software; you can redistribute it and/or modify |
---|
34 | | - * it under the terms of the GNU General Public License as published by |
---|
35 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
36 | | - * (at your option) any later version. |
---|
37 | | - * |
---|
38 | | - * This program is distributed in the hope that it will be useful, |
---|
39 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
40 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
41 | | - * GNU General Public License for more details. |
---|
42 | | - * |
---|
43 | | - * You should have received a copy of the GNU General Public License |
---|
44 | | - * along with this program; if not, write to the Free Software |
---|
45 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
46 | 32 | * |
---|
47 | 33 | ********************************************************************/ |
---|
48 | 34 | |
---|
.. | .. |
---|
542 | 528 | { |
---|
543 | 529 | struct snd_msnd *chip = card->private_data; |
---|
544 | 530 | int err; |
---|
545 | | - static struct snd_device_ops ops = { |
---|
| 531 | + static const struct snd_device_ops ops = { |
---|
546 | 532 | .dev_free = snd_msnd_dev_free, |
---|
547 | 533 | }; |
---|
548 | 534 | |
---|
.. | .. |
---|
552 | 538 | printk(KERN_ERR LOGNAME ": Couldn't grab IRQ %d\n", chip->irq); |
---|
553 | 539 | return err; |
---|
554 | 540 | } |
---|
| 541 | + card->sync_irq = chip->irq; |
---|
555 | 542 | if (request_region(chip->io, DSP_NUMIO, card->shortname) == NULL) { |
---|
556 | 543 | free_irq(chip->irq, chip); |
---|
557 | 544 | return -EBUSY; |
---|
.. | .. |
---|
565 | 552 | free_irq(chip->irq, chip); |
---|
566 | 553 | return -EBUSY; |
---|
567 | 554 | } |
---|
568 | | - chip->mappedbase = ioremap_nocache(chip->base, 0x8000); |
---|
| 555 | + chip->mappedbase = ioremap(chip->base, 0x8000); |
---|
569 | 556 | if (!chip->mappedbase) { |
---|
570 | 557 | printk(KERN_ERR LOGNAME |
---|
571 | 558 | ": unable to map memory region 0x%lx-0x%lx\n", |
---|