hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/sound/pci/hda/hda_eld.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Generic routines and proc interface for ELD(EDID Like Data) information
34 *
....@@ -6,20 +7,6 @@
67 *
78 * Authors:
89 * Wu Fengguang <wfg@linux.intel.com>
9
- *
10
- * This driver 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 driver 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
2310 */
2411
2512 #include <linux/init.h>
....@@ -27,7 +14,7 @@
2714 #include <sound/core.h>
2815 #include <asm/unaligned.h>
2916 #include <sound/hda_chmap.h>
30
-#include "hda_codec.h"
17
+#include <sound/hda_codec.h>
3118 #include "hda_local.h"
3219
3320 enum eld_versions {
....@@ -111,7 +98,7 @@
11198 /*
11299 * SS1:SS0 index => sample size
113100 */
114
-static int cea_sample_sizes[4] = {
101
+static const int cea_sample_sizes[4] = {
115102 0, /* 0: Refer to Stream Header */
116103 AC_SUPPCM_BITS_16, /* 1: 16 bits */
117104 AC_SUPPCM_BITS_20, /* 2: 20 bits */
....@@ -121,7 +108,7 @@
121108 /*
122109 * SF2:SF1:SF0 index => sampling frequency
123110 */
124
-static int cea_sampling_frequencies[8] = {
111
+static const int cea_sampling_frequencies[8] = {
125112 0, /* 0: Refer to Stream Header */
126113 SNDRV_PCM_RATE_32000, /* 1: 32000Hz */
127114 SNDRV_PCM_RATE_44100, /* 2: 44100Hz */
....@@ -365,7 +352,7 @@
365352 */
366353 static void hdmi_print_pcm_rates(int pcm, char *buf, int buflen)
367354 {
368
- static unsigned int alsa_rates[] = {
355
+ static const unsigned int alsa_rates[] = {
369356 5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000, 64000,
370357 88200, 96000, 176400, 192000, 384000
371358 };