| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA driver for ICEnsemble ICE1712 (Envy24) |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Audiophile, Digigram VX442 |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (c) 2000 Jaroslav Kysela <perex@perex.cz> |
|---|
| 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> |
|---|
| .. | .. |
|---|
| 705 | 691 | break; |
|---|
| 706 | 692 | case ICE1712_SUBDEVICE_DELTADIO2496: |
|---|
| 707 | 693 | ice->gpio.set_pro_rate = delta_1010_set_rate_val; |
|---|
| 708 | | - /* fall thru */ |
|---|
| 694 | + fallthrough; |
|---|
| 709 | 695 | case ICE1712_SUBDEVICE_DELTA66: |
|---|
| 710 | 696 | ice->spdif.ops.open = delta_open_spdif; |
|---|
| 711 | 697 | ice->spdif.ops.setup_rate = delta_setup_spdif; |
|---|
| .. | .. |
|---|
| 767 | 753 | * additional controls for M-Audio cards |
|---|
| 768 | 754 | */ |
|---|
| 769 | 755 | |
|---|
| 770 | | -static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_select = |
|---|
| 756 | +static const struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_select = |
|---|
| 771 | 757 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_WORD_CLOCK_SELECT, 1, 0); |
|---|
| 772 | | -static struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_select = |
|---|
| 758 | +static const struct snd_kcontrol_new snd_ice1712_delta1010lt_wordclock_select = |
|---|
| 773 | 759 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Sync", 0, ICE1712_DELTA_1010LT_WORDCLOCK, 0, 0); |
|---|
| 774 | | -static struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_status = |
|---|
| 760 | +static const struct snd_kcontrol_new snd_ice1712_delta1010_wordclock_status = |
|---|
| 775 | 761 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Word Clock Status", 0, ICE1712_DELTA_WORD_CLOCK_STATUS, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE); |
|---|
| 776 | | -static struct snd_kcontrol_new snd_ice1712_deltadio2496_spdif_in_select = |
|---|
| 762 | +static const struct snd_kcontrol_new snd_ice1712_deltadio2496_spdif_in_select = |
|---|
| 777 | 763 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "IEC958 Input Optical", 0, ICE1712_DELTA_SPDIF_INPUT_SELECT, 0, 0); |
|---|
| 778 | | -static struct snd_kcontrol_new snd_ice1712_delta_spdif_in_status = |
|---|
| 764 | +static const struct snd_kcontrol_new snd_ice1712_delta_spdif_in_status = |
|---|
| 779 | 765 | ICE1712_GPIO(SNDRV_CTL_ELEM_IFACE_MIXER, "Delta IEC958 Input Status", 0, ICE1712_DELTA_SPDIF_IN_STAT, 1, SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE); |
|---|
| 780 | 766 | |
|---|
| 781 | 767 | |
|---|