.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * ALSA driver for ICEnsemble ICE1724 (Envy24) |
---|
3 | 4 | * |
---|
4 | 5 | * Lowlevel functions for Terratec PHASE 22 |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright (c) 2005 Misha Zhilin <misha@epiphan.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, write to the Free Software |
---|
20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | | - * |
---|
22 | 8 | */ |
---|
23 | 9 | |
---|
24 | 10 | /* PHASE 22 overview: |
---|
.. | .. |
---|
171 | 157 | return 0; |
---|
172 | 158 | } |
---|
173 | 159 | |
---|
174 | | -static unsigned char phase22_eeprom[] = { |
---|
| 160 | +static const unsigned char phase22_eeprom[] = { |
---|
175 | 161 | [ICE_EEP2_SYSCONF] = 0x28, /* clock 512, mpu 401, |
---|
176 | 162 | spdif-in/1xADC, 1xDACs */ |
---|
177 | 163 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
---|
.. | .. |
---|
188 | 174 | [ICE_EEP2_GPIO_STATE2] = 0x00, |
---|
189 | 175 | }; |
---|
190 | 176 | |
---|
191 | | -static unsigned char phase28_eeprom[] = { |
---|
| 177 | +static const unsigned char phase28_eeprom[] = { |
---|
192 | 178 | [ICE_EEP2_SYSCONF] = 0x2b, /* clock 512, mpu401, |
---|
193 | 179 | spdif-in/1xADC, 4xDACs */ |
---|
194 | 180 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
---|
.. | .. |
---|
759 | 745 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); |
---|
760 | 746 | static const DECLARE_TLV_DB_SCALE(db_scale_wm_pcm, -6400, 50, 1); |
---|
761 | 747 | |
---|
762 | | -static struct snd_kcontrol_new phase28_dac_controls[] = { |
---|
| 748 | +static const struct snd_kcontrol_new phase28_dac_controls[] = { |
---|
763 | 749 | { |
---|
764 | 750 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
---|
765 | 751 | .name = "Master Playback Switch", |
---|
.. | .. |
---|
874 | 860 | } |
---|
875 | 861 | }; |
---|
876 | 862 | |
---|
877 | | -static struct snd_kcontrol_new wm_controls[] = { |
---|
| 863 | +static const struct snd_kcontrol_new wm_controls[] = { |
---|
878 | 864 | { |
---|
879 | 865 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
---|
880 | 866 | .name = "PCM Playback Switch", |
---|