forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/i2c/tea6330t.c
....@@ -1,23 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Routines for control of the TEA6330T circuit via i2c bus
34 * Sound fader control circuit for car radios by Philips Semiconductors
45 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
5
- *
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
- *
216 */
227
238 #include <linux/init.h>
....@@ -275,7 +260,7 @@
275260 return change;
276261 }
277262
278
-static struct snd_kcontrol_new snd_tea6330t_controls[] = {
263
+static const struct snd_kcontrol_new snd_tea6330t_controls[] = {
279264 TEA6330T_MASTER_SWITCH("Master Playback Switch", 0),
280265 TEA6330T_MASTER_VOLUME("Master Playback Volume", 0),
281266 TEA6330T_BASS("Tone Control - Bass", 0),
....@@ -293,7 +278,7 @@
293278 {
294279 struct snd_i2c_device *device;
295280 struct tea6330t *tea;
296
- struct snd_kcontrol_new *knew;
281
+ const struct snd_kcontrol_new *knew;
297282 unsigned int idx;
298283 int err = -ENOMEM;
299284 u8 default_treble, default_bass;