| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for Sound Core PDAudioCF soundcard |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2003 by Jaroslav Kysela <perex@perex.cz> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License |
|---|
| 17 | | - * along with this program; if not, write to the Free Software |
|---|
| 18 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 19 | 6 | */ |
|---|
| 20 | 7 | |
|---|
| 21 | 8 | #include <sound/core.h> |
|---|
| .. | .. |
|---|
| 95 | 82 | int i, err; |
|---|
| 96 | 83 | struct snd_pdacf *pdacf; |
|---|
| 97 | 84 | struct snd_card *card; |
|---|
| 98 | | - static struct snd_device_ops ops = { |
|---|
| 85 | + static const struct snd_device_ops ops = { |
|---|
| 99 | 86 | .dev_free = snd_pdacf_dev_free, |
|---|
| 100 | 87 | }; |
|---|
| 101 | 88 | |
|---|
| .. | .. |
|---|
| 152 | 139 | |
|---|
| 153 | 140 | /** |
|---|
| 154 | 141 | * snd_pdacf_assign_resources - initialize the hardware and card instance. |
|---|
| 142 | + * @pdacf: context |
|---|
| 155 | 143 | * @port: i/o port for the card |
|---|
| 156 | 144 | * @irq: irq number for the card |
|---|
| 157 | 145 | * |
|---|
| .. | .. |
|---|
| 237 | 225 | link->irq) < 0) |
|---|
| 238 | 226 | goto failed; |
|---|
| 239 | 227 | |
|---|
| 228 | + pdacf->card->sync_irq = link->irq; |
|---|
| 240 | 229 | return 0; |
|---|
| 241 | 230 | |
|---|
| 242 | 231 | failed: |
|---|