hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/sound/pci/ctxfi/ctdaio.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /**
23 * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
3
- *
4
- * This source file is released under GPL v2 license (no other versions).
5
- * See the COPYING file included in the main directory of this source
6
- * distribution for the license terms and conditions.
74 *
85 * @File ctdaio.c
96 *
....@@ -13,7 +10,6 @@
1310 *
1411 * @Author Liu Chun
1512 * @Date May 23 2008
16
- *
1713 */
1814
1915 #include "ctdaio.h"
....@@ -33,7 +29,7 @@
3329 unsigned short right;
3430 };
3531
36
-static struct daio_rsc_idx idx_20k1[NUM_DAIOTYP] = {
32
+static const struct daio_rsc_idx idx_20k1[NUM_DAIOTYP] = {
3733 [LINEO1] = {.left = 0x00, .right = 0x01},
3834 [LINEO2] = {.left = 0x18, .right = 0x19},
3935 [LINEO3] = {.left = 0x08, .right = 0x09},
....@@ -44,7 +40,7 @@
4440 [SPDIFI1] = {.left = 0x95, .right = 0x9d},
4541 };
4642
47
-static struct daio_rsc_idx idx_20k2[NUM_DAIOTYP] = {
43
+static const struct daio_rsc_idx idx_20k2[NUM_DAIOTYP] = {
4844 [LINEO1] = {.left = 0x40, .right = 0x41},
4945 [LINEO2] = {.left = 0x60, .right = 0x61},
5046 [LINEO3] = {.left = 0x50, .right = 0x51},