forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/pci/ice1712/phase.c
....@@ -1,24 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA driver for ICEnsemble ICE1724 (Envy24)
34 *
45 * Lowlevel functions for Terratec PHASE 22
56 *
67 * Copyright (c) 2005 Misha Zhilin <misha@epiphan.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
- *
228 */
239
2410 /* PHASE 22 overview:
....@@ -171,7 +157,7 @@
171157 return 0;
172158 }
173159
174
-static unsigned char phase22_eeprom[] = {
160
+static const unsigned char phase22_eeprom[] = {
175161 [ICE_EEP2_SYSCONF] = 0x28, /* clock 512, mpu 401,
176162 spdif-in/1xADC, 1xDACs */
177163 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
....@@ -188,7 +174,7 @@
188174 [ICE_EEP2_GPIO_STATE2] = 0x00,
189175 };
190176
191
-static unsigned char phase28_eeprom[] = {
177
+static const unsigned char phase28_eeprom[] = {
192178 [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401,
193179 spdif-in/1xADC, 4xDACs */
194180 [ICE_EEP2_ACLINK] = 0x80, /* I2S */
....@@ -759,7 +745,7 @@
759745 static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1);
760746 static const DECLARE_TLV_DB_SCALE(db_scale_wm_pcm, -6400, 50, 1);
761747
762
-static struct snd_kcontrol_new phase28_dac_controls[] = {
748
+static const struct snd_kcontrol_new phase28_dac_controls[] = {
763749 {
764750 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
765751 .name = "Master Playback Switch",
....@@ -874,7 +860,7 @@
874860 }
875861 };
876862
877
-static struct snd_kcontrol_new wm_controls[] = {
863
+static const struct snd_kcontrol_new wm_controls[] = {
878864 {
879865 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
880866 .name = "PCM Playback Switch",