hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/pci/emu10k1/io.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
34 * Creative Labs, Inc.
....@@ -8,21 +9,6 @@
89 *
910 * TODO:
1011 * --
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation; either version 2 of the License, or
15
- * (at your option) any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program; if not, write to the Free Software
24
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
- *
2612 */
2713
2814 #include <linux/time.h>
....@@ -524,7 +510,7 @@
524510
525511 unsigned int snd_emu10k1_rate_to_pitch(unsigned int rate)
526512 {
527
- static u32 logMagTable[128] = {
513
+ static const u32 logMagTable[128] = {
528514 0x00000, 0x02dfc, 0x05b9e, 0x088e6, 0x0b5d6, 0x0e26f, 0x10eb3, 0x13aa2,
529515 0x1663f, 0x1918a, 0x1bc84, 0x1e72e, 0x2118b, 0x23b9a, 0x2655d, 0x28ed5,
530516 0x2b803, 0x2e0e8, 0x30985, 0x331db, 0x359eb, 0x381b6, 0x3a93d, 0x3d081,
....@@ -542,7 +528,7 @@
542528 0xe829f, 0xe9b31, 0xeb3a9, 0xecc08, 0xee44c, 0xefc78, 0xf148a, 0xf2c83,
543529 0xf4463, 0xf5c2a, 0xf73da, 0xf8b71, 0xfa2f0, 0xfba57, 0xfd1a7, 0xfe8df
544530 };
545
- static char logSlopeTable[128] = {
531
+ static const char logSlopeTable[128] = {
546532 0x5c, 0x5c, 0x5b, 0x5a, 0x5a, 0x59, 0x58, 0x58,
547533 0x57, 0x56, 0x56, 0x55, 0x55, 0x54, 0x53, 0x53,
548534 0x52, 0x52, 0x51, 0x51, 0x50, 0x50, 0x4f, 0x4f,