forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/media/usb/pvrusb2/pvrusb2-cx2584x-v4l.c
....@@ -1,18 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- *
33 *
44 * Copyright (C) 2005 Mike Isely <isely@pobox.com>
55 * Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License
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
- *
166 */
177
188 /*
....@@ -111,10 +101,35 @@
111101 .cnt = ARRAY_SIZE(routing_schemeav400),
112102 };
113103
104
+static const struct routing_scheme_item routing_scheme160xxx[] = {
105
+ [PVR2_CVAL_INPUT_TV] = {
106
+ .vid = CX25840_COMPOSITE7,
107
+ .aud = CX25840_AUDIO8,
108
+ },
109
+ [PVR2_CVAL_INPUT_RADIO] = {
110
+ .vid = CX25840_COMPOSITE4,
111
+ .aud = CX25840_AUDIO6,
112
+ },
113
+ [PVR2_CVAL_INPUT_COMPOSITE] = {
114
+ .vid = CX25840_COMPOSITE3,
115
+ .aud = CX25840_AUDIO_SERIAL,
116
+ },
117
+ [PVR2_CVAL_INPUT_SVIDEO] = {
118
+ .vid = CX25840_SVIDEO1,
119
+ .aud = CX25840_AUDIO_SERIAL,
120
+ },
121
+};
122
+
123
+static const struct routing_scheme routing_def160xxx = {
124
+ .def = routing_scheme160xxx,
125
+ .cnt = ARRAY_SIZE(routing_scheme160xxx),
126
+};
127
+
114128 static const struct routing_scheme *routing_schemes[] = {
115129 [PVR2_ROUTING_SCHEME_HAUPPAUGE] = &routing_def0,
116130 [PVR2_ROUTING_SCHEME_GOTVIEW] = &routing_defgv,
117131 [PVR2_ROUTING_SCHEME_AV400] = &routing_defav400,
132
+ [PVR2_ROUTING_SCHEME_HAUP160XXX] = &routing_def160xxx,
118133 };
119134
120135 void pvr2_cx25840_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd)