.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Beep using pcm |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) by Takashi Iwai <tiwai@suse.de> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
9 | | - * (at your option) any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program; if not, write to the Free Software |
---|
18 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
19 | 6 | */ |
---|
20 | 7 | |
---|
21 | 8 | #include <linux/io.h> |
---|
.. | .. |
---|
57 | 44 | * so we can multiply by an amplitude in the range 0..100 to get a |
---|
58 | 45 | * signed short value to put in the output buffer. |
---|
59 | 46 | */ |
---|
60 | | -static short beep_wform[256] = { |
---|
| 47 | +static const short beep_wform[256] = { |
---|
61 | 48 | 0, 40, 79, 117, 153, 187, 218, 245, |
---|
62 | 49 | 269, 288, 304, 316, 323, 327, 327, 324, |
---|
63 | 50 | 318, 310, 299, 288, 275, 262, 249, 236, |
---|