hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/media/i2c/cx25840/cx25840-vbi.c
....@@ -1,14 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* cx25840 VBI functions
2
- *
3
- * This program is free software; you can redistribute it and/or
4
- * modify it under the terms of the GNU General Public License
5
- * as published by the Free Software Foundation; either version 2
6
- * of the License, or (at your option) any later version.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
123 */
134
145
....@@ -95,6 +86,7 @@
9586 memset(svbi->service_lines, 0, sizeof(svbi->service_lines));
9687 svbi->service_set = 0;
9788 /* we're done if raw VBI is active */
89
+ /* TODO: this will have to be changed for generic_mode VBI */
9890 if ((cx25840_read(client, 0x404) & 0x10) == 0)
9991 return 0;
10092
....@@ -137,6 +129,7 @@
137129 cx25840_write(client, 0x54f, vbi_offset);
138130 else
139131 cx25840_write(client, 0x47f, vbi_offset);
132
+ /* TODO: this will have to be changed for generic_mode VBI */
140133 cx25840_write(client, 0x404, 0x2e);
141134 return 0;
142135 }
....@@ -157,6 +150,7 @@
157150 cx25840_std_setup(client);
158151
159152 /* Sliced VBI */
153
+ /* TODO: this will have to be changed for generic_mode VBI */
160154 cx25840_write(client, 0x404, 0x32); /* Ancillary data */
161155 cx25840_write(client, 0x406, 0x13);
162156 if (is_cx23888(state))
....@@ -211,6 +205,7 @@
211205 }
212206
213207 cx25840_write(client, state->vbi_regs_offset + 0x43c, 0x16);
208
+ /* TODO: this will have to be changed for generic_mode VBI */
214209 if (is_cx23888(state))
215210 cx25840_write(client, 0x428, is_pal ? 0x2a : 0x22);
216211 else