hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/sound/pci/ice1712/se.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA driver for ICEnsemble VT1724 (Envy24HT)
34 *
....@@ -5,21 +6,6 @@
56 *
67 * Copyright (c) 2007 Shin-ya Okada sh_okada(at)d4.dion.ne.jp
78 * (at) -> @
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, write to the Free Software
21
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
- *
239 */
2410
2511 #include <linux/delay.h>
....@@ -259,7 +245,7 @@
259245 static void se200pci_WM8776_set_input_selector(struct snd_ice1712 *ice,
260246 unsigned int sel)
261247 {
262
- static unsigned char vals[] = {
248
+ static const unsigned char vals[] = {
263249 /* LINE, CD, MIC, ALL, GND */
264250 0x10, 0x04, 0x08, 0x1c, 0x03
265251 };
....@@ -302,7 +288,7 @@
302288 static void se200pci_WM8776_init(struct snd_ice1712 *ice)
303289 {
304290 int i;
305
- static unsigned short default_values[] = {
291
+ static const unsigned short default_values[] = {
306292 0x100, 0x100, 0x100,
307293 0x100, 0x100, 0x100,
308294 0x000, 0x090, 0x000, 0x000,
....@@ -715,7 +701,7 @@
715701 /* entry point */
716702 /****************************************************************************/
717703
718
-static unsigned char se200pci_eeprom[] = {
704
+static const unsigned char se200pci_eeprom[] = {
719705 [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */
720706 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
721707 [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */
....@@ -734,7 +720,7 @@
734720 [ICE_EEP2_GPIO_STATE2] = 0x07, /* WM8766 ML/MC/MD */
735721 };
736722
737
-static unsigned char se90pci_eeprom[] = {
723
+static const unsigned char se90pci_eeprom[] = {
738724 [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */
739725 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
740726 [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */