.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for Digigram pcxhr compatible soundcards |
---|
3 | 4 | * |
---|
4 | 5 | * low level interface with interrupt and message handling implementation |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright (c) 2004 by Digigram <alsa@digigram.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, write to the Free Software |
---|
20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | 8 | */ |
---|
22 | 9 | |
---|
23 | 10 | #include <linux/delay.h> |
---|
.. | .. |
---|
479 | 466 | /* |
---|
480 | 467 | * Array of DSP commands |
---|
481 | 468 | */ |
---|
482 | | -static struct pcxhr_cmd_info pcxhr_dsp_cmds[] = { |
---|
| 469 | +static const struct pcxhr_cmd_info pcxhr_dsp_cmds[] = { |
---|
483 | 470 | [CMD_VERSION] = { 0x010000, 1, RMH_SSIZE_FIXED }, |
---|
484 | 471 | [CMD_SUPPORTED] = { 0x020000, 4, RMH_SSIZE_FIXED }, |
---|
485 | 472 | [CMD_TEST_IT] = { 0x040000, 1, RMH_SSIZE_FIXED }, |
---|
.. | .. |
---|
510 | 497 | }; |
---|
511 | 498 | |
---|
512 | 499 | #ifdef CONFIG_SND_DEBUG_VERBOSE |
---|
513 | | -static char* cmd_names[] = { |
---|
| 500 | +static const char * const cmd_names[] = { |
---|
514 | 501 | [CMD_VERSION] = "CMD_VERSION", |
---|
515 | 502 | [CMD_SUPPORTED] = "CMD_SUPPORTED", |
---|
516 | 503 | [CMD_TEST_IT] = "CMD_TEST_IT", |
---|
.. | .. |
---|
1019 | 1006 | enum pcxhr_async_err_src err_src, int pipe, |
---|
1020 | 1007 | int is_capture) |
---|
1021 | 1008 | { |
---|
1022 | | - static char* err_src_name[] = { |
---|
| 1009 | + static const char * const err_src_name[] = { |
---|
1023 | 1010 | [PCXHR_ERR_PIPE] = "Pipe", |
---|
1024 | 1011 | [PCXHR_ERR_STREAM] = "Stream", |
---|
1025 | 1012 | [PCXHR_ERR_AUDIO] = "Audio" |
---|