| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, |
|---|
| 3 | 4 | * Hannu Savolainen 1993-1996, |
|---|
| .. | .. |
|---|
| 6 | 7 | * Routines for control of AdLib FM cards (OPL2/OPL3/OPL4 chips) |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * Most if code is ported from OSS/Lite. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | | - * (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * You should have received a copy of the GNU General Public License |
|---|
| 21 | | - * along with this program; if not, write to the Free Software |
|---|
| 22 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 23 | | - * |
|---|
| 24 | 10 | */ |
|---|
| 25 | 11 | |
|---|
| 26 | 12 | #include <sound/opl3.h> |
|---|
| .. | .. |
|---|
| 228 | 214 | |
|---|
| 229 | 215 | */ |
|---|
| 230 | 216 | |
|---|
| 231 | | -static struct snd_timer_hardware snd_opl3_timer1 = |
|---|
| 217 | +static const struct snd_timer_hardware snd_opl3_timer1 = |
|---|
| 232 | 218 | { |
|---|
| 233 | 219 | .flags = SNDRV_TIMER_HW_STOP, |
|---|
| 234 | 220 | .resolution = 80000, |
|---|
| .. | .. |
|---|
| 237 | 223 | .stop = snd_opl3_timer1_stop, |
|---|
| 238 | 224 | }; |
|---|
| 239 | 225 | |
|---|
| 240 | | -static struct snd_timer_hardware snd_opl3_timer2 = |
|---|
| 226 | +static const struct snd_timer_hardware snd_opl3_timer2 = |
|---|
| 241 | 227 | { |
|---|
| 242 | 228 | .flags = SNDRV_TIMER_HW_STOP, |
|---|
| 243 | 229 | .resolution = 320000, |
|---|
| .. | .. |
|---|
| 346 | 332 | unsigned short hardware, |
|---|
| 347 | 333 | struct snd_opl3 **ropl3) |
|---|
| 348 | 334 | { |
|---|
| 349 | | - static struct snd_device_ops ops = { |
|---|
| 335 | + static const struct snd_device_ops ops = { |
|---|
| 350 | 336 | .dev_free = snd_opl3_dev_free, |
|---|
| 351 | 337 | }; |
|---|
| 352 | 338 | struct snd_opl3 *opl3; |
|---|