hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/pci/ice1712/wtm.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA driver for ICEnsemble VT1724 (Envy24HT)
34 *
....@@ -6,21 +7,6 @@
67 * Copyright (c) 2006 Guedez Clement <klem.dev@gmail.com>
78 * Some functions are taken from the Prodigy192 driver
89 * source
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
- *
2410 */
2511
2612
....@@ -491,7 +477,7 @@
491477 /*
492478 * Control tabs
493479 */
494
-static struct snd_kcontrol_new stac9640_controls[] = {
480
+static const struct snd_kcontrol_new stac9640_controls[] = {
495481 {
496482 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
497483 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE |
....@@ -581,12 +567,12 @@
581567
582568 static int wtm_init(struct snd_ice1712 *ice)
583569 {
584
- static unsigned short stac_inits_wtm[] = {
570
+ static const unsigned short stac_inits_wtm[] = {
585571 STAC946X_RESET, 0,
586572 STAC946X_MASTER_CLOCKING, 0x11,
587573 (unsigned short)-1
588574 };
589
- unsigned short *p;
575
+ const unsigned short *p;
590576 struct wtm_spec *spec;
591577
592578 /*WTM 192M*/
....@@ -613,7 +599,7 @@
613599 }
614600
615601
616
-static unsigned char wtm_eeprom[] = {
602
+static const unsigned char wtm_eeprom[] = {
617603 [ICE_EEP2_SYSCONF] = 0x67, /*SYSCONF: clock 192KHz, mpu401,
618604 4ADC, 8DAC */
619605 [ICE_EEP2_ACLINK] = 0x80, /* ACLINK : I2S */