| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
|---|
| 3 | 4 | * Creative Labs, Inc. |
|---|
| .. | .. |
|---|
| 8 | 9 | * |
|---|
| 9 | 10 | * TODO: |
|---|
| 10 | 11 | * -- |
|---|
| 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 | | - * |
|---|
| 26 | 12 | */ |
|---|
| 27 | 13 | |
|---|
| 28 | 14 | #include <linux/time.h> |
|---|
| .. | .. |
|---|
| 524 | 510 | |
|---|
| 525 | 511 | unsigned int snd_emu10k1_rate_to_pitch(unsigned int rate) |
|---|
| 526 | 512 | { |
|---|
| 527 | | - static u32 logMagTable[128] = { |
|---|
| 513 | + static const u32 logMagTable[128] = { |
|---|
| 528 | 514 | 0x00000, 0x02dfc, 0x05b9e, 0x088e6, 0x0b5d6, 0x0e26f, 0x10eb3, 0x13aa2, |
|---|
| 529 | 515 | 0x1663f, 0x1918a, 0x1bc84, 0x1e72e, 0x2118b, 0x23b9a, 0x2655d, 0x28ed5, |
|---|
| 530 | 516 | 0x2b803, 0x2e0e8, 0x30985, 0x331db, 0x359eb, 0x381b6, 0x3a93d, 0x3d081, |
|---|
| .. | .. |
|---|
| 542 | 528 | 0xe829f, 0xe9b31, 0xeb3a9, 0xecc08, 0xee44c, 0xefc78, 0xf148a, 0xf2c83, |
|---|
| 543 | 529 | 0xf4463, 0xf5c2a, 0xf73da, 0xf8b71, 0xfa2f0, 0xfba57, 0xfd1a7, 0xfe8df |
|---|
| 544 | 530 | }; |
|---|
| 545 | | - static char logSlopeTable[128] = { |
|---|
| 531 | + static const char logSlopeTable[128] = { |
|---|
| 546 | 532 | 0x5c, 0x5c, 0x5b, 0x5a, 0x5a, 0x59, 0x58, 0x58, |
|---|
| 547 | 533 | 0x57, 0x56, 0x56, 0x55, 0x55, 0x54, 0x53, 0x53, |
|---|
| 548 | 534 | 0x52, 0x52, 0x51, 0x51, 0x50, 0x50, 0x4f, 0x4f, |
|---|