.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Generic routines and proc interface for ELD(EDID Like Data) information |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Authors: |
---|
8 | 9 | * 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 |
---|
23 | 10 | */ |
---|
24 | 11 | |
---|
25 | 12 | #include <linux/init.h> |
---|
.. | .. |
---|
27 | 14 | #include <sound/core.h> |
---|
28 | 15 | #include <asm/unaligned.h> |
---|
29 | 16 | #include <sound/hda_chmap.h> |
---|
30 | | -#include "hda_codec.h" |
---|
| 17 | +#include <sound/hda_codec.h> |
---|
31 | 18 | #include "hda_local.h" |
---|
32 | 19 | |
---|
33 | 20 | enum eld_versions { |
---|
.. | .. |
---|
111 | 98 | /* |
---|
112 | 99 | * SS1:SS0 index => sample size |
---|
113 | 100 | */ |
---|
114 | | -static int cea_sample_sizes[4] = { |
---|
| 101 | +static const int cea_sample_sizes[4] = { |
---|
115 | 102 | 0, /* 0: Refer to Stream Header */ |
---|
116 | 103 | AC_SUPPCM_BITS_16, /* 1: 16 bits */ |
---|
117 | 104 | AC_SUPPCM_BITS_20, /* 2: 20 bits */ |
---|
.. | .. |
---|
121 | 108 | /* |
---|
122 | 109 | * SF2:SF1:SF0 index => sampling frequency |
---|
123 | 110 | */ |
---|
124 | | -static int cea_sampling_frequencies[8] = { |
---|
| 111 | +static const int cea_sampling_frequencies[8] = { |
---|
125 | 112 | 0, /* 0: Refer to Stream Header */ |
---|
126 | 113 | SNDRV_PCM_RATE_32000, /* 1: 32000Hz */ |
---|
127 | 114 | SNDRV_PCM_RATE_44100, /* 2: 44100Hz */ |
---|
.. | .. |
---|
365 | 352 | */ |
---|
366 | 353 | static void hdmi_print_pcm_rates(int pcm, char *buf, int buflen) |
---|
367 | 354 | { |
---|
368 | | - static unsigned int alsa_rates[] = { |
---|
| 355 | + static const unsigned int alsa_rates[] = { |
---|
369 | 356 | 5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000, 64000, |
---|
370 | 357 | 88200, 96000, 176400, 192000, 384000 |
---|
371 | 358 | }; |
---|