| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA driver for ICEnsemble VT1724 (Envy24HT) |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * Copyright (c) 2006 Guedez Clement <klem.dev@gmail.com> |
|---|
| 7 | 8 | * Some functions are taken from the Prodigy192 driver |
|---|
| 8 | 9 | * source |
|---|
| 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 | 10 | */ |
|---|
| 25 | 11 | |
|---|
| 26 | 12 | |
|---|
| .. | .. |
|---|
| 491 | 477 | /* |
|---|
| 492 | 478 | * Control tabs |
|---|
| 493 | 479 | */ |
|---|
| 494 | | -static struct snd_kcontrol_new stac9640_controls[] = { |
|---|
| 480 | +static const struct snd_kcontrol_new stac9640_controls[] = { |
|---|
| 495 | 481 | { |
|---|
| 496 | 482 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
|---|
| 497 | 483 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
|---|
| .. | .. |
|---|
| 581 | 567 | |
|---|
| 582 | 568 | static int wtm_init(struct snd_ice1712 *ice) |
|---|
| 583 | 569 | { |
|---|
| 584 | | - static unsigned short stac_inits_wtm[] = { |
|---|
| 570 | + static const unsigned short stac_inits_wtm[] = { |
|---|
| 585 | 571 | STAC946X_RESET, 0, |
|---|
| 586 | 572 | STAC946X_MASTER_CLOCKING, 0x11, |
|---|
| 587 | 573 | (unsigned short)-1 |
|---|
| 588 | 574 | }; |
|---|
| 589 | | - unsigned short *p; |
|---|
| 575 | + const unsigned short *p; |
|---|
| 590 | 576 | struct wtm_spec *spec; |
|---|
| 591 | 577 | |
|---|
| 592 | 578 | /*WTM 192M*/ |
|---|
| .. | .. |
|---|
| 613 | 599 | } |
|---|
| 614 | 600 | |
|---|
| 615 | 601 | |
|---|
| 616 | | -static unsigned char wtm_eeprom[] = { |
|---|
| 602 | +static const unsigned char wtm_eeprom[] = { |
|---|
| 617 | 603 | [ICE_EEP2_SYSCONF] = 0x67, /*SYSCONF: clock 192KHz, mpu401, |
|---|
| 618 | 604 | 4ADC, 8DAC */ |
|---|
| 619 | 605 | [ICE_EEP2_ACLINK] = 0x80, /* ACLINK : I2S */ |
|---|