forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/pci/aw2/aw2-tsl.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*****************************************************************************
23 *
34 * Copyright (C) 2008 Cedric Bregardis <cedric.bregardis@free.fr> and
....@@ -6,20 +7,6 @@
67 * Copyright 2002 Martijn Sipkema
78 *
89 * This file is part of the Audiowerk2 ALSA driver
9
- *
10
- * The Audiowerk2 ALSA driver is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; version 2.
13
- *
14
- * The Audiowerk2 ALSA driver is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with the Audiowerk2 ALSA driver; if not, write to the Free Software
21
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22
- * USA.
2310 *
2411 *****************************************************************************/
2512
....@@ -72,7 +59,7 @@
7259 /* SD3: >-------<_4-L___>-------<_4-R___> */
7360 /* WS4: -------\_______________/--------- */
7461
75
-static int tsl1[8] = {
62
+static const int tsl1[8] = {
7663 1 * TSL_SDW_A1 | 3 * TSL_BSEL_A1 |
7764 0 * TSL_DIS_A1 | 0 * TSL_DOD_A1 | TSL_LF_A1,
7865
....@@ -98,7 +85,7 @@
9885 0 * TSL_DOD_A1 | TSL_WS1 | TSL_WS0 | TSL_SF_A1 | TSL_EOS,
9986 };
10087
101
-static int tsl2[8] = {
88
+static const int tsl2[8] = {
10289 0 * TSL_SDW_A2 | 3 * TSL_BSEL_A2 | 2 * TSL_DOD_A2 | TSL_LF_A2,
10390 0 * TSL_SDW_A2 | 2 * TSL_BSEL_A2 | 2 * TSL_DOD_A2,
10491 0 * TSL_SDW_A2 | 3 * TSL_BSEL_A2 | 2 * TSL_DOD_A2,