| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA driver for ICEnsemble VT1724 (Envy24HT) |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (c) 2007 Shin-ya Okada sh_okada(at)d4.dion.ne.jp |
|---|
| 7 | 8 | * (at) -> @ |
|---|
| 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 | | - * |
|---|
| 23 | 9 | */ |
|---|
| 24 | 10 | |
|---|
| 25 | 11 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 259 | 245 | static void se200pci_WM8776_set_input_selector(struct snd_ice1712 *ice, |
|---|
| 260 | 246 | unsigned int sel) |
|---|
| 261 | 247 | { |
|---|
| 262 | | - static unsigned char vals[] = { |
|---|
| 248 | + static const unsigned char vals[] = { |
|---|
| 263 | 249 | /* LINE, CD, MIC, ALL, GND */ |
|---|
| 264 | 250 | 0x10, 0x04, 0x08, 0x1c, 0x03 |
|---|
| 265 | 251 | }; |
|---|
| .. | .. |
|---|
| 302 | 288 | static void se200pci_WM8776_init(struct snd_ice1712 *ice) |
|---|
| 303 | 289 | { |
|---|
| 304 | 290 | int i; |
|---|
| 305 | | - static unsigned short default_values[] = { |
|---|
| 291 | + static const unsigned short default_values[] = { |
|---|
| 306 | 292 | 0x100, 0x100, 0x100, |
|---|
| 307 | 293 | 0x100, 0x100, 0x100, |
|---|
| 308 | 294 | 0x000, 0x090, 0x000, 0x000, |
|---|
| .. | .. |
|---|
| 715 | 701 | /* entry point */ |
|---|
| 716 | 702 | /****************************************************************************/ |
|---|
| 717 | 703 | |
|---|
| 718 | | -static unsigned char se200pci_eeprom[] = { |
|---|
| 704 | +static const unsigned char se200pci_eeprom[] = { |
|---|
| 719 | 705 | [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */ |
|---|
| 720 | 706 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
|---|
| 721 | 707 | [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */ |
|---|
| .. | .. |
|---|
| 734 | 720 | [ICE_EEP2_GPIO_STATE2] = 0x07, /* WM8766 ML/MC/MD */ |
|---|
| 735 | 721 | }; |
|---|
| 736 | 722 | |
|---|
| 737 | | -static unsigned char se90pci_eeprom[] = { |
|---|
| 723 | +static const unsigned char se90pci_eeprom[] = { |
|---|
| 738 | 724 | [ICE_EEP2_SYSCONF] = 0x4b, /* 49.152Hz, spdif-in/ADC, 4DACs */ |
|---|
| 739 | 725 | [ICE_EEP2_ACLINK] = 0x80, /* I2S */ |
|---|
| 740 | 726 | [ICE_EEP2_I2S] = 0x78, /* 96k-ok, 24bit, 192k-ok */ |
|---|