forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/pci/ac97/ac97_pcm.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
34 * Universal interface for Audio Codec '97
....@@ -5,22 +6,6 @@
56 * For more details look to AC '97 component specification revision 2.2
67 * by Intel Corporation (http://developer.intel.com) and to datasheets
78 * for specific codecs.
8
- *
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
- *
249 */
2510
2611 #include <linux/delay.h>
....@@ -41,7 +26,7 @@
4126 * PCM support
4227 */
4328
44
-static unsigned char rate_reg_tables[2][4][9] = {
29
+static const unsigned char rate_reg_tables[2][4][9] = {
4530 {
4631 /* standard rates */
4732 {
....@@ -144,7 +129,7 @@
144129 }};
145130
146131 /* FIXME: more various mappings for ADC? */
147
-static unsigned char rate_cregs[9] = {
132
+static const unsigned char rate_cregs[9] = {
148133 AC97_PCM_LR_ADC_RATE, /* 3 */
149134 AC97_PCM_LR_ADC_RATE, /* 4 */
150135 0xff, /* 5 */