.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
---|
3 | 4 | * Universal interface for Audio Codec '97 |
---|
.. | .. |
---|
5 | 6 | * For more details look to AC '97 component specification revision 2.2 |
---|
6 | 7 | * by Intel Corporation (http://developer.intel.com) and to datasheets |
---|
7 | 8 | * for specific codecs. |
---|
8 | | - * |
---|
9 | | - * |
---|
10 | | - * This program 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 program 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 | | - * |
---|
24 | 9 | */ |
---|
25 | 10 | |
---|
26 | 11 | #include <linux/delay.h> |
---|
.. | .. |
---|
41 | 26 | * PCM support |
---|
42 | 27 | */ |
---|
43 | 28 | |
---|
44 | | -static unsigned char rate_reg_tables[2][4][9] = { |
---|
| 29 | +static const unsigned char rate_reg_tables[2][4][9] = { |
---|
45 | 30 | { |
---|
46 | 31 | /* standard rates */ |
---|
47 | 32 | { |
---|
.. | .. |
---|
144 | 129 | }}; |
---|
145 | 130 | |
---|
146 | 131 | /* FIXME: more various mappings for ADC? */ |
---|
147 | | -static unsigned char rate_cregs[9] = { |
---|
| 132 | +static const unsigned char rate_cregs[9] = { |
---|
148 | 133 | AC97_PCM_LR_ADC_RATE, /* 3 */ |
---|
149 | 134 | AC97_PCM_LR_ADC_RATE, /* 4 */ |
---|
150 | 135 | 0xff, /* 5 */ |
---|