| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /***************************************************************************** |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2008 Cedric Bregardis <cedric.bregardis@free.fr> and |
|---|
| .. | .. |
|---|
| 6 | 7 | * Copyright 2002 Martijn Sipkema |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * 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. |
|---|
| 23 | 10 | * |
|---|
| 24 | 11 | *****************************************************************************/ |
|---|
| 25 | 12 | |
|---|
| .. | .. |
|---|
| 72 | 59 | /* SD3: >-------<_4-L___>-------<_4-R___> */ |
|---|
| 73 | 60 | /* WS4: -------\_______________/--------- */ |
|---|
| 74 | 61 | |
|---|
| 75 | | -static int tsl1[8] = { |
|---|
| 62 | +static const int tsl1[8] = { |
|---|
| 76 | 63 | 1 * TSL_SDW_A1 | 3 * TSL_BSEL_A1 | |
|---|
| 77 | 64 | 0 * TSL_DIS_A1 | 0 * TSL_DOD_A1 | TSL_LF_A1, |
|---|
| 78 | 65 | |
|---|
| .. | .. |
|---|
| 98 | 85 | 0 * TSL_DOD_A1 | TSL_WS1 | TSL_WS0 | TSL_SF_A1 | TSL_EOS, |
|---|
| 99 | 86 | }; |
|---|
| 100 | 87 | |
|---|
| 101 | | -static int tsl2[8] = { |
|---|
| 88 | +static const int tsl2[8] = { |
|---|
| 102 | 89 | 0 * TSL_SDW_A2 | 3 * TSL_BSEL_A2 | 2 * TSL_DOD_A2 | TSL_LF_A2, |
|---|
| 103 | 90 | 0 * TSL_SDW_A2 | 2 * TSL_BSEL_A2 | 2 * TSL_DOD_A2, |
|---|
| 104 | 91 | 0 * TSL_SDW_A2 | 3 * TSL_BSEL_A2 | 2 * TSL_DOD_A2, |
|---|