forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/pci/ice1712/delta.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA driver for ICEnsemble ICE1712 (Envy24)
34 *
....@@ -5,21 +6,6 @@
56 * Audiophile, Digigram VX442
67 *
78 * Copyright (c) 2000 Jaroslav Kysela <perex@perex.cz>
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>
....@@ -705,7 +691,7 @@
705691 break;
706692 case ICE1712_SUBDEVICE_DELTADIO2496:
707693 ice->gpio.set_pro_rate = delta_1010_set_rate_val;
708
- /* fall thru */
694
+ fallthrough;
709695 case ICE1712_SUBDEVICE_DELTA66:
710696 ice->spdif.ops.open = delta_open_spdif;
711697 ice->spdif.ops.setup_rate = delta_setup_spdif;
....@@ -767,15 +753,15 @@
767753 * additional controls for M-Audio cards
768754 */
769755
770
-static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_select =
756
+static const struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_select =
771757 ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_WORD_CLOCK_SELECT, 1, 0);
772
-static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_select =
758
+static const struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_select =
773759 ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_1010LT_WORDCLOCK, 0, 0);
774
-static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_status =
760
+static const struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_status =
775761 ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Status", 0, ICE1712_DELTA_WORD_CLOCK_STATUS, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE);
776
-static struct snd_kcontrol_new snd_ice1712_deltadio2496_spdif_in_select =
762
+static const struct snd_kcontrol_new snd_ice1712_deltadio2496_spdif_in_select =
777763 ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "IEC958 Input Optical", 0, ICE1712_DELTA_SPDIF_INPUT_SELECT, 0, 0);
778
-static struct snd_kcontrol_new snd_ice1712_delta_spdif_in_status =
764
+static const struct snd_kcontrol_new snd_ice1712_delta_spdif_in_status =
779765 ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Delta IEC958 Input Status", 0, ICE1712_DELTA_SPDIF_IN_STAT, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE);
780766
781767