forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/pci/ice1712/prodigy192.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA driver for ICEnsemble VT1724 (Envy24HT)
34 *
....@@ -37,21 +38,6 @@
3738 * Copyright (c) 2003 Takashi Iwai <tiwai@suse.de>
3839 * Copyright (c) 2003 Dimitromanolakis Apostolos <apostol@cs.utoronto.ca>
3940 * Copyright (c) 2004 Kouichi ONO <co2b@ceres.dti.ne.jp>
40
- *
41
- * This program is free software; you can redistribute it and/or modify
42
- * it under the terms of the GNU General Public License as published by
43
- * the Free Software Foundation; either version 2 of the License, or
44
- * (at your option) any later version.
45
- *
46
- * This program is distributed in the hope that it will be useful,
47
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
48
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49
- * GNU General Public License for more details.
50
- *
51
- * You should have received a copy of the GNU General Public License
52
- * along with this program; if not, write to the Free Software
53
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
54
- *
5541 */
5642
5743 #include <linux/delay.h>
....@@ -360,7 +346,7 @@
360346 * mixers
361347 */
362348
363
-static struct snd_kcontrol_new stac_controls[] = {
349
+static const struct snd_kcontrol_new stac_controls[] = {
364350 {
365351 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
366352 .name = "Master Playback Switch",
....@@ -592,7 +578,7 @@
592578 }
593579
594580
595
-static struct snd_kcontrol_new ak4114_controls[] = {
581
+static const struct snd_kcontrol_new ak4114_controls[] = {
596582 {
597583 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
598584 .name = "MIODIO IEC958 Capture Input",
....@@ -651,9 +637,8 @@
651637
652638 static void stac9460_proc_init(struct snd_ice1712 *ice)
653639 {
654
- struct snd_info_entry *entry;
655
- if (!snd_card_proc_new(ice->card, "stac9460_codec", &entry))
656
- snd_info_set_text_ops(entry, ice, stac9460_proc_regs_read);
640
+ snd_card_ro_proc_new(ice->card, "stac9460_codec", ice,
641
+ stac9460_proc_regs_read);
657642 }
658643
659644
....@@ -768,7 +753,7 @@
768753 * hence the driver needs to sets up it properly.
769754 */
770755
771
-static unsigned char prodigy71_eeprom[] = {
756
+static const unsigned char prodigy71_eeprom[] = {
772757 [ICE_EEP2_SYSCONF] = 0x6a, /* 49MHz crystal, mpu401,
773758 * spdif-in+ 1 stereo ADC,
774759 * 3 stereo DACs