| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA driver for ICEnsemble VT1724 (Envy24HT) |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 37 | 38 | * Copyright (c) 2003 Takashi Iwai <tiwai@suse.de> |
|---|
| 38 | 39 | * Copyright (c) 2003 Dimitromanolakis Apostolos <apostol@cs.utoronto.ca> |
|---|
| 39 | 40 | * Copyright (c) 2004 Kouichi ONO <co2b@ceres.dti.ne.jp> |
|---|
| 40 | | - * |
|---|
| 41 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 42 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 43 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 44 | | - * (at your option) any later version. |
|---|
| 45 | | - * |
|---|
| 46 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 47 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 48 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 49 | | - * GNU General Public License for more details. |
|---|
| 50 | | - * |
|---|
| 51 | | - * You should have received a copy of the GNU General Public License |
|---|
| 52 | | - * along with this program; if not, write to the Free Software |
|---|
| 53 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 54 | | - * |
|---|
| 55 | 41 | */ |
|---|
| 56 | 42 | |
|---|
| 57 | 43 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 360 | 346 | * mixers |
|---|
| 361 | 347 | */ |
|---|
| 362 | 348 | |
|---|
| 363 | | -static struct snd_kcontrol_new stac_controls[] = { |
|---|
| 349 | +static const struct snd_kcontrol_new stac_controls[] = { |
|---|
| 364 | 350 | { |
|---|
| 365 | 351 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
|---|
| 366 | 352 | .name = "Master Playback Switch", |
|---|
| .. | .. |
|---|
| 592 | 578 | } |
|---|
| 593 | 579 | |
|---|
| 594 | 580 | |
|---|
| 595 | | -static struct snd_kcontrol_new ak4114_controls[] = { |
|---|
| 581 | +static const struct snd_kcontrol_new ak4114_controls[] = { |
|---|
| 596 | 582 | { |
|---|
| 597 | 583 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
|---|
| 598 | 584 | .name = "MIODIO IEC958 Capture Input", |
|---|
| .. | .. |
|---|
| 651 | 637 | |
|---|
| 652 | 638 | static void stac9460_proc_init(struct snd_ice1712 *ice) |
|---|
| 653 | 639 | { |
|---|
| 654 | | - struct snd_info_entry *entry; |
|---|
| 655 | | - if (!snd_card_proc_new(ice->card, "stac9460_codec", &entry)) |
|---|
| 656 | | - snd_info_set_text_ops(entry, ice, stac9460_proc_regs_read); |
|---|
| 640 | + snd_card_ro_proc_new(ice->card, "stac9460_codec", ice, |
|---|
| 641 | + stac9460_proc_regs_read); |
|---|
| 657 | 642 | } |
|---|
| 658 | 643 | |
|---|
| 659 | 644 | |
|---|
| .. | .. |
|---|
| 768 | 753 | * hence the driver needs to sets up it properly. |
|---|
| 769 | 754 | */ |
|---|
| 770 | 755 | |
|---|
| 771 | | -static unsigned char prodigy71_eeprom[] = { |
|---|
| 756 | +static const unsigned char prodigy71_eeprom[] = { |
|---|
| 772 | 757 | [ICE_EEP2_SYSCONF] = 0x6a, /* 49MHz crystal, mpu401, |
|---|
| 773 | 758 | * spdif-in+ 1 stereo ADC, |
|---|
| 774 | 759 | * 3 stereo DACs |
|---|