forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/pci/mixart/mixart_mixer.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for Digigram miXart soundcards
34 *
45 * mixer callbacks
56 *
67 * Copyright (c) 2003 by Digigram <alsa@digigram.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
218 */
229
2310 #include <linux/time.h>
....@@ -33,7 +20,7 @@
3320 #include <sound/tlv.h>
3421 #include "mixart_mixer.h"
3522
36
-static u32 mixart_analog_level[256] = {
23
+static const u32 mixart_analog_level[256] = {
3724 0xc2c00000, /* [000] -96.0 dB */
3825 0xc2bf0000, /* [001] -95.5 dB */
3926 0xc2be0000, /* [002] -95.0 dB */
....@@ -456,7 +443,7 @@
456443 .put = mixart_audio_sw_put
457444 };
458445
459
-static u32 mixart_digital_level[256] = {
446
+static const u32 mixart_digital_level[256] = {
460447 0x00000000, /* [000] = 0.00e+000 = mute if <= -109.5dB */
461448 0x366e1c7a, /* [001] = 3.55e-006 = pow(10.0, 0.05 * -109.0dB) */
462449 0x367c3860, /* [002] = 3.76e-006 = pow(10.0, 0.05 * -108.5dB) */