.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* 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. |
---|
12 | 3 | */ |
---|
13 | 4 | |
---|
14 | 5 | |
---|
.. | .. |
---|
95 | 86 | memset(svbi->service_lines, 0, sizeof(svbi->service_lines)); |
---|
96 | 87 | svbi->service_set = 0; |
---|
97 | 88 | /* we're done if raw VBI is active */ |
---|
| 89 | + /* TODO: this will have to be changed for generic_mode VBI */ |
---|
98 | 90 | if ((cx25840_read(client, 0x404) & 0x10) == 0) |
---|
99 | 91 | return 0; |
---|
100 | 92 | |
---|
.. | .. |
---|
137 | 129 | cx25840_write(client, 0x54f, vbi_offset); |
---|
138 | 130 | else |
---|
139 | 131 | cx25840_write(client, 0x47f, vbi_offset); |
---|
| 132 | + /* TODO: this will have to be changed for generic_mode VBI */ |
---|
140 | 133 | cx25840_write(client, 0x404, 0x2e); |
---|
141 | 134 | return 0; |
---|
142 | 135 | } |
---|
.. | .. |
---|
157 | 150 | cx25840_std_setup(client); |
---|
158 | 151 | |
---|
159 | 152 | /* Sliced VBI */ |
---|
| 153 | + /* TODO: this will have to be changed for generic_mode VBI */ |
---|
160 | 154 | cx25840_write(client, 0x404, 0x32); /* Ancillary data */ |
---|
161 | 155 | cx25840_write(client, 0x406, 0x13); |
---|
162 | 156 | if (is_cx23888(state)) |
---|
.. | .. |
---|
211 | 205 | } |
---|
212 | 206 | |
---|
213 | 207 | cx25840_write(client, state->vbi_regs_offset + 0x43c, 0x16); |
---|
| 208 | + /* TODO: this will have to be changed for generic_mode VBI */ |
---|
214 | 209 | if (is_cx23888(state)) |
---|
215 | 210 | cx25840_write(client, 0x428, is_pal ? 0x2a : 0x22); |
---|
216 | 211 | else |
---|