hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/pci/pcxhr/pcxhr_core.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for Digigram pcxhr compatible soundcards
34 *
45 * low level interface with interrupt and message handling implementation
56 *
67 * 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
218 */
229
2310 #include <linux/delay.h>
....@@ -479,7 +466,7 @@
479466 /*
480467 * Array of DSP commands
481468 */
482
-static struct pcxhr_cmd_info pcxhr_dsp_cmds[] = {
469
+static const struct pcxhr_cmd_info pcxhr_dsp_cmds[] = {
483470 [CMD_VERSION] = { 0x010000, 1, RMH_SSIZE_FIXED },
484471 [CMD_SUPPORTED] = { 0x020000, 4, RMH_SSIZE_FIXED },
485472 [CMD_TEST_IT] = { 0x040000, 1, RMH_SSIZE_FIXED },
....@@ -510,7 +497,7 @@
510497 };
511498
512499 #ifdef CONFIG_SND_DEBUG_VERBOSE
513
-static char* cmd_names[] = {
500
+static const char * const cmd_names[] = {
514501 [CMD_VERSION] = "CMD_VERSION",
515502 [CMD_SUPPORTED] = "CMD_SUPPORTED",
516503 [CMD_TEST_IT] = "CMD_TEST_IT",
....@@ -1019,7 +1006,7 @@
10191006 enum pcxhr_async_err_src err_src, int pipe,
10201007 int is_capture)
10211008 {
1022
- static char* err_src_name[] = {
1009
+ static const char * const err_src_name[] = {
10231010 [PCXHR_ERR_PIPE] = "Pipe",
10241011 [PCXHR_ERR_STREAM] = "Stream",
10251012 [PCXHR_ERR_AUDIO] = "Audio"