| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
|---|
| 3 | 4 | * Uros Bizjak <uros@kss-loka.si> |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Lowlevel routines for control of Sound Blaster cards |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 9 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | | - * (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 of |
|---|
| 14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | | - * GNU General Public License for more details. |
|---|
| 16 | | - * |
|---|
| 17 | | - * You should have received a copy of the GNU General Public License |
|---|
| 18 | | - * along with this program; if not, write to the Free Software |
|---|
| 19 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 20 | | - * |
|---|
| 21 | 7 | */ |
|---|
| 22 | 8 | |
|---|
| 23 | 9 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 94 | 80 | |
|---|
| 95 | 81 | static int snd_sbdsp_version(struct snd_sb * chip) |
|---|
| 96 | 82 | { |
|---|
| 97 | | - unsigned int result = -ENODEV; |
|---|
| 83 | + unsigned int result; |
|---|
| 98 | 84 | |
|---|
| 99 | 85 | snd_sbdsp_command(chip, SB_DSP_GET_VERSION); |
|---|
| 100 | 86 | result = (short) snd_sbdsp_get_byte(chip) << 8; |
|---|
| .. | .. |
|---|
| 218 | 204 | { |
|---|
| 219 | 205 | struct snd_sb *chip; |
|---|
| 220 | 206 | int err; |
|---|
| 221 | | - static struct snd_device_ops ops = { |
|---|
| 207 | + static const struct snd_device_ops ops = { |
|---|
| 222 | 208 | .dev_free = snd_sbdsp_dev_free, |
|---|
| 223 | 209 | }; |
|---|
| 224 | 210 | |
|---|
| .. | .. |
|---|
| 247 | 233 | return -EBUSY; |
|---|
| 248 | 234 | } |
|---|
| 249 | 235 | chip->irq = irq; |
|---|
| 236 | + card->sync_irq = chip->irq; |
|---|
| 250 | 237 | |
|---|
| 251 | 238 | if (hardware == SB_HW_ALS4000) |
|---|
| 252 | 239 | goto __skip_allocation; |
|---|