| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /** |
|---|
| 2 | 3 | * 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. |
|---|
| 7 | 4 | * |
|---|
| 8 | 5 | * @File ctdaio.c |
|---|
| 9 | 6 | * |
|---|
| .. | .. |
|---|
| 13 | 10 | * |
|---|
| 14 | 11 | * @Author Liu Chun |
|---|
| 15 | 12 | * @Date May 23 2008 |
|---|
| 16 | | - * |
|---|
| 17 | 13 | */ |
|---|
| 18 | 14 | |
|---|
| 19 | 15 | #include "ctdaio.h" |
|---|
| .. | .. |
|---|
| 33 | 29 | unsigned short right; |
|---|
| 34 | 30 | }; |
|---|
| 35 | 31 | |
|---|
| 36 | | -static struct daio_rsc_idx idx_20k1[NUM_DAIOTYP] = { |
|---|
| 32 | +static const struct daio_rsc_idx idx_20k1[NUM_DAIOTYP] = { |
|---|
| 37 | 33 | [LINEO1] = {.left = 0x00, .right = 0x01}, |
|---|
| 38 | 34 | [LINEO2] = {.left = 0x18, .right = 0x19}, |
|---|
| 39 | 35 | [LINEO3] = {.left = 0x08, .right = 0x09}, |
|---|
| .. | .. |
|---|
| 44 | 40 | [SPDIFI1] = {.left = 0x95, .right = 0x9d}, |
|---|
| 45 | 41 | }; |
|---|
| 46 | 42 | |
|---|
| 47 | | -static struct daio_rsc_idx idx_20k2[NUM_DAIOTYP] = { |
|---|
| 43 | +static const struct daio_rsc_idx idx_20k2[NUM_DAIOTYP] = { |
|---|
| 48 | 44 | [LINEO1] = {.left = 0x40, .right = 0x41}, |
|---|
| 49 | 45 | [LINEO2] = {.left = 0x60, .right = 0x61}, |
|---|
| 50 | 46 | [LINEO3] = {.left = 0x50, .right = 0x51}, |
|---|