Lines Matching +full:0 +full:xf0
30 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x02, /* 0x00 */
31 0x12, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x00, 0x7f,
32 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x02, /* 0x10 */
33 0x12, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x00, 0x7f,
34 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x02, /* 0x20 */
35 0x12, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x00, 0x7f,
36 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x02, /* 0x30 */
37 0x12, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x00, 0x7f,
38 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x40 */
39 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
40 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x50 */
41 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
42 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x60 */
43 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
44 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x70 */
45 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA3, 0x00,
46 0x00, 0x02, 0x00, 0xcc, 0x00, 0x80, 0x44, 0x50, /* 0x80 */
47 0x22, 0x01, 0xd8, 0xbc, 0xb8, 0x44, 0x38, 0x00,
48 0x00, 0x78, 0x72, 0x3e, 0x14, 0xa5, 0xe4, 0x05, /* 0x90 */
49 0x00, 0x28, 0x44, 0x44, 0xa0, 0x88, 0x5a, 0x01,
50 0x08, 0x08, 0x08, 0x08, 0x1a, 0x1a, 0x1a, 0x1a, /* 0xa0 */
51 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0x44,
52 0x44, 0x0a, 0x00, 0xff, 0xef, 0xef, 0xef, 0xef, /* 0xb0 */
53 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
54 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xc0 */
55 0x00, 0x00, 0x55, 0x00, 0xb1, 0xe4, 0x40, 0x00,
56 0x77, 0x77, 0x01, 0x13, 0x57, 0x9b, 0xdf, 0x20, /* 0xd0 */
57 0x64, 0xa8, 0xec, 0xc1, 0x0f, 0x11, 0x11, 0x81,
58 0x00, 0xe0, 0xbb, 0xbb, 0x00, 0x11, 0x00, 0x00, /* 0xe0 */
59 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00,
60 0x83, 0xb5, 0x09, 0x78, 0x85, 0x00, 0x01, 0x20, /* 0xf0 */
61 0x64, 0x11, 0x40, 0xaf, 0xff, 0x00, 0x00, 0x00,
65 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x00 */
66 0x18, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x01, 0x7f,
67 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x10 */
68 0x18, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x01, 0x7f,
69 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x20 */
70 0x18, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x01, 0x7f,
71 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x30 */
72 0x18, 0xf5, 0x0c, 0xd0, 0x00, 0x00, 0x01, 0x7f,
73 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x40 */
74 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
75 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x50 */
76 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
77 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x60 */
78 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
79 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x70 */
80 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA3, 0x00,
81 0x00, 0x02, 0x00, 0xcc, 0x00, 0x80, 0x44, 0x50, /* 0x80 */
82 0x22, 0x01, 0xd8, 0xbc, 0xb8, 0x44, 0x38, 0x00,
83 0x00, 0x78, 0x72, 0x3e, 0x14, 0xa5, 0xe4, 0x05, /* 0x90 */
84 0x00, 0x28, 0x44, 0x44, 0xa0, 0x90, 0x5a, 0x01,
85 0x0a, 0x0a, 0x0a, 0x0a, 0x1a, 0x1a, 0x1a, 0x1a, /* 0xa0 */
86 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0x44,
87 0x44, 0x0a, 0x00, 0xff, 0xef, 0xef, 0xef, 0xef, /* 0xb0 */
88 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
89 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xc0 */
90 0x00, 0x00, 0x55, 0x00, 0xb1, 0xe4, 0x40, 0x00,
91 0x77, 0x77, 0x01, 0x13, 0x57, 0x9b, 0xdf, 0x20, /* 0xd0 */
92 0x64, 0xa8, 0xec, 0xc1, 0x0f, 0x11, 0x11, 0x81,
93 0x00, 0xe0, 0xbb, 0xbb, 0x00, 0x11, 0x00, 0x00, /* 0xe0 */
94 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00,
95 0x83, 0xb5, 0x09, 0x00, 0xa0, 0x00, 0x01, 0x20, /* 0xf0 */
96 0x64, 0x11, 0x40, 0xaf, 0xff, 0x00, 0x00, 0x00,
100 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x02, /* 0x00 */
101 0x12, 0xff, 0x09, 0xd0, 0x00, 0x00, 0x00, 0x7f,
102 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x02, /* 0x10 */
103 0x12, 0xff, 0x09, 0xd0, 0x00, 0x00, 0x00, 0x7f,
104 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x02, /* 0x20 */
105 0x12, 0xff, 0x09, 0xd0, 0x00, 0x00, 0x00, 0x7f,
106 0x00, 0xf0, 0x70, 0x48, 0x80, 0x80, 0x00, 0x02, /* 0x30 */
107 0x12, 0xff, 0x09, 0xd0, 0x00, 0x00, 0x00, 0x7f,
108 0x00, 0x00, 0x90, 0x68, 0x00, 0x38, 0x80, 0x80, /* 0x40 */
109 0x80, 0x80, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00,
110 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x50 */
111 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
112 0x45, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x60 */
113 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x43,
114 0x08, 0x00, 0x00, 0x01, 0xf1, 0x03, 0xEF, 0x03, /* 0x70 */
115 0xE9, 0x03, 0xD9, 0x15, 0x15, 0xE4, 0xA3, 0x80,
116 0x00, 0x02, 0x00, 0xCC, 0x00, 0x80, 0x44, 0x50, /* 0x80 */
117 0x22, 0x01, 0xD8, 0xBC, 0xB8, 0x44, 0x38, 0x00,
118 0x00, 0x78, 0x44, 0x3D, 0x14, 0xA5, 0xE0, 0x05, /* 0x90 */
119 0x00, 0x28, 0x44, 0x44, 0xA0, 0x90, 0x52, 0x13,
120 0x08, 0x08, 0x08, 0x08, 0x1A, 0x1A, 0x1B, 0x1A, /* 0xa0 */
121 0x00, 0x00, 0x00, 0xF0, 0xF0, 0xF0, 0xF0, 0x44,
122 0x44, 0x4A, 0x00, 0xFF, 0xEF, 0xEF, 0xEF, 0xEF, /* 0xb0 */
123 0xFF, 0xE7, 0xE9, 0xE9, 0xEB, 0xFF, 0xD6, 0xD8,
124 0xD8, 0xD7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xc0 */
125 0x00, 0x00, 0x55, 0x00, 0xE4, 0x39, 0x00, 0x80,
126 0x77, 0x77, 0x03, 0x20, 0x57, 0x9b, 0xdf, 0x31, /* 0xd0 */
127 0x64, 0xa8, 0xec, 0xd1, 0x0f, 0x11, 0x11, 0x81,
128 0x10, 0xC0, 0xAA, 0xAA, 0x00, 0x11, 0x00, 0x00, /* 0xe0 */
129 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00,
130 0x83, 0xB5, 0x09, 0x78, 0x85, 0x00, 0x01, 0x20, /* 0xf0 */
131 0x64, 0x51, 0x40, 0xaf, 0xFF, 0xF0, 0x00, 0xC0,
135 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x00 */
136 0x11, 0xff, 0x01, 0xc3, 0x00, 0x00, 0x01, 0x7f,
137 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x10 */
138 0x11, 0xff, 0x01, 0xc3, 0x00, 0x00, 0x01, 0x7f,
139 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x20 */
140 0x11, 0xff, 0x01, 0xc3, 0x00, 0x00, 0x01, 0x7f,
141 0x00, 0xf0, 0x70, 0x30, 0x80, 0x80, 0x00, 0x12, /* 0x30 */
142 0x11, 0xff, 0x01, 0xc3, 0x00, 0x00, 0x01, 0x7f,
143 0x00, 0x94, 0x90, 0x48, 0x00, 0x38, 0x7F, 0x80, /* 0x40 */
144 0x80, 0x80, 0x77, 0x00, 0x00, 0x00, 0x00, 0x00,
145 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x50 */
146 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
147 0x45, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x60 */
148 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x43,
149 0x08, 0x00, 0x00, 0x01, 0xf1, 0x03, 0xEF, 0x03, /* 0x70 */
150 0xEA, 0x03, 0xD9, 0x15, 0x15, 0xE4, 0xA3, 0x80,
151 0x00, 0x02, 0x00, 0xCC, 0x00, 0x80, 0x44, 0x50, /* 0x80 */
152 0x22, 0x01, 0xD8, 0xBC, 0xB8, 0x44, 0x38, 0x00,
153 0x00, 0x78, 0x44, 0x3D, 0x14, 0xA5, 0xE0, 0x05, /* 0x90 */
154 0x00, 0x28, 0x44, 0x44, 0xA0, 0x90, 0x52, 0x13,
155 0x08, 0x08, 0x08, 0x08, 0x1A, 0x1A, 0x1A, 0x1A, /* 0xa0 */
156 0x00, 0x00, 0x00, 0xF0, 0xF0, 0xF0, 0xF0, 0x44,
157 0x44, 0x4A, 0x00, 0xFF, 0xEF, 0xEF, 0xEF, 0xEF, /* 0xb0 */
158 0xFF, 0xE7, 0xE9, 0xE9, 0xE9, 0xFF, 0xD7, 0xD8,
159 0xD9, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xc0 */
160 0x00, 0x00, 0x55, 0x00, 0xE4, 0x39, 0x00, 0x80,
161 0x77, 0x77, 0x03, 0x20, 0x57, 0x9b, 0xdf, 0x31, /* 0xd0 */
162 0x64, 0xa8, 0xec, 0xd1, 0x0f, 0x11, 0x11, 0x81,
163 0x10, 0xC0, 0xAA, 0xAA, 0x00, 0x11, 0x00, 0x00, /* 0xe0 */
164 0x11, 0x00, 0x00, 0x11, 0x00, 0x00, 0x11, 0x00,
165 0x83, 0xB5, 0x09, 0x00, 0xA0, 0x00, 0x01, 0x20, /* 0xf0 */
166 0x64, 0x51, 0x40, 0xaf, 0xFF, 0xF0, 0x00, 0xC0,
202 for (i = 0; i < 5; i++) { in tw_write_and_verify()
230 tbl_tw2865_common[0xd2] = 0x01; in tw2865_setup()
231 tbl_tw2865_common[0xcf] = 0x00; in tw2865_setup()
233 tbl_tw2865_common[0xd2] = 0x02; in tw2865_setup()
235 tbl_tw2865_common[0xcf] = 0x80; in tw2865_setup()
237 tbl_tw2865_common[0xd2] = 0x03; in tw2865_setup()
239 tbl_tw2865_common[0xcf] = 0x83; in tw2865_setup()
241 tbl_tw2865_common[0xcf] = 0x83; in tw2865_setup()
243 tbl_tw2865_common[0xcf] = 0x80; in tw2865_setup()
246 for (i = 0; i < 0xff; i++) { in tw2865_setup()
249 case 0xb8 ... 0xc1: in tw2865_setup()
250 case 0xc4 ... 0xc7: in tw2865_setup()
251 case 0xfd: in tw2865_setup()
254 switch (i & ~0x30) { in tw2865_setup()
255 case 0x00: in tw2865_setup()
256 case 0x0c ... 0x0d: in tw2865_setup()
264 return 0; in tw2865_setup()
279 if (solo_dev->tw2865 == 0) { in tw2864_setup()
282 tbl_tw2864_common[0xd2] = 0x01; in tw2864_setup()
283 tbl_tw2864_common[0xcf] = 0x00; in tw2864_setup()
285 tbl_tw2864_common[0xd2] = 0x02; in tw2864_setup()
286 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2864_setup()
287 tbl_tw2864_common[0xcf] = 0x43; in tw2864_setup()
289 tbl_tw2864_common[0xcf] = 0x40; in tw2864_setup()
291 tbl_tw2864_common[0xd2] = 0x03; in tw2864_setup()
292 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2864_setup()
293 tbl_tw2864_common[0xcf] = 0x43; in tw2864_setup()
295 tbl_tw2864_common[0xcf] = 0x43; in tw2864_setup()
297 tbl_tw2864_common[0xcf] = 0x43; in tw2864_setup()
299 tbl_tw2864_common[0xcf] = 0x40; in tw2864_setup()
304 for (i = 0; i <= 4; i++) in tw2864_setup()
305 tbl_tw2864_common[0x08 | i << 4] = 0x12; in tw2864_setup()
308 tbl_tw2864_common[0xd2] = 0x02; in tw2864_setup()
310 tbl_tw2864_common[0xcf] = 0x80; in tw2864_setup()
312 tbl_tw2864_common[0xd2] = 0x03; in tw2864_setup()
314 tbl_tw2864_common[0xcf] = 0x83; in tw2864_setup()
316 tbl_tw2864_common[0xcf] = 0x83; in tw2864_setup()
318 tbl_tw2864_common[0xcf] = 0x80; in tw2864_setup()
322 for (i = 0; i < 0xff; i++) { in tw2864_setup()
325 case 0xb8 ... 0xc1: in tw2864_setup()
326 case 0xfd: in tw2864_setup()
329 switch (i & ~0x30) { in tw2864_setup()
330 case 0x00: in tw2864_setup()
331 case 0x0c: in tw2864_setup()
332 case 0x0d: in tw2864_setup()
340 return 0; in tw2864_setup()
346 0x00, 0xc8, 0x20, 0xd0, 0x06, 0xf0, 0x08, 0x80, in tw2815_setup()
347 0x80, 0x80, 0x80, 0x02, 0x06, 0x00, 0x11, in tw2815_setup()
351 0x00, 0x88, 0x20, 0xd0, 0x05, 0x20, 0x28, 0x80, in tw2815_setup()
352 0x80, 0x80, 0x80, 0x82, 0x06, 0x00, 0x11, in tw2815_setup()
356 0x00, 0x00, 0x00, 0xc0, 0x45, 0xa0, 0xd0, 0x2f, /* 0x00 */ in tw2815_setup()
357 0x64, 0x80, 0x80, 0x82, 0x82, 0x00, 0x00, 0x00, in tw2815_setup()
358 0x00, 0x0f, 0x05, 0x00, 0x00, 0x80, 0x06, 0x00, /* 0x10 */ in tw2815_setup()
359 0x00, 0x00, 0x00, 0xff, 0x8f, 0x00, 0x00, 0x00, in tw2815_setup()
360 0x88, 0x88, 0xc0, 0x00, 0x20, 0x64, 0xa8, 0xec, /* 0x20 */ in tw2815_setup()
361 0x31, 0x75, 0xb9, 0xfd, 0x00, 0x00, 0x88, 0x88, in tw2815_setup()
362 0x88, 0x11, 0x00, 0x88, 0x88, 0x00, /* 0x30 */ in tw2815_setup()
368 tbl_ntsc_tw2815_common[0x06] = 0; in tw2815_setup()
371 tbl_ntsc_tw2815_common[0x02] = DEFAULT_HDELAY_NTSC & 0xff; in tw2815_setup()
372 tbl_ntsc_tw2815_common[0x06] |= 0x03 & (DEFAULT_HDELAY_NTSC >> 8); in tw2815_setup()
375 tbl_ntsc_tw2815_common[0x03] = DEFAULT_HACTIVE_NTSC & 0xff; in tw2815_setup()
376 tbl_ntsc_tw2815_common[0x06] |= in tw2815_setup()
377 ((0x03 & (DEFAULT_HACTIVE_NTSC >> 8)) << 2); in tw2815_setup()
380 tbl_ntsc_tw2815_common[0x04] = DEFAULT_VDELAY_NTSC & 0xff; in tw2815_setup()
381 tbl_ntsc_tw2815_common[0x06] |= in tw2815_setup()
382 ((0x01 & (DEFAULT_VDELAY_NTSC >> 8)) << 4); in tw2815_setup()
385 tbl_ntsc_tw2815_common[0x05] = DEFAULT_VACTIVE_NTSC & 0xff; in tw2815_setup()
386 tbl_ntsc_tw2815_common[0x06] |= in tw2815_setup()
387 ((0x01 & (DEFAULT_VACTIVE_NTSC >> 8)) << 5); in tw2815_setup()
389 tbl_pal_tw2815_common[0x06] = 0; in tw2815_setup()
392 tbl_pal_tw2815_common[0x02] = DEFAULT_HDELAY_PAL & 0xff; in tw2815_setup()
393 tbl_pal_tw2815_common[0x06] |= 0x03 & (DEFAULT_HDELAY_PAL >> 8); in tw2815_setup()
396 tbl_pal_tw2815_common[0x03] = DEFAULT_HACTIVE_PAL & 0xff; in tw2815_setup()
397 tbl_pal_tw2815_common[0x06] |= in tw2815_setup()
398 ((0x03 & (DEFAULT_HACTIVE_PAL >> 8)) << 2); in tw2815_setup()
401 tbl_pal_tw2815_common[0x04] = DEFAULT_VDELAY_PAL & 0xff; in tw2815_setup()
402 tbl_pal_tw2815_common[0x06] |= in tw2815_setup()
403 ((0x01 & (DEFAULT_VDELAY_PAL >> 8)) << 4); in tw2815_setup()
406 tbl_pal_tw2815_common[0x05] = DEFAULT_VACTIVE_PAL & 0xff; in tw2815_setup()
407 tbl_pal_tw2815_common[0x06] |= in tw2815_setup()
408 ((0x01 & (DEFAULT_VACTIVE_PAL >> 8)) << 5); in tw2815_setup()
415 tbl_tw2815_common[0x0d] |= 0x04; in tw2815_setup()
418 tbl_tw2815_sfr[0x62 - 0x40] &= ~(3 << 6); in tw2815_setup()
421 tbl_tw2815_sfr[0x63 - 0x40] |= 1; in tw2815_setup()
422 tbl_tw2815_sfr[0x62 - 0x40] |= 3 << 6; in tw2815_setup()
424 tbl_tw2815_sfr[0x63 - 0x40] |= 2; in tw2815_setup()
425 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2815_setup()
426 tbl_tw2815_sfr[0x62 - 0x40] |= 1 << 6; in tw2815_setup()
428 tbl_tw2815_sfr[0x62 - 0x40] |= 2 << 6; in tw2815_setup()
430 tbl_tw2815_sfr[0x63 - 0x40] |= 3; in tw2815_setup()
431 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2815_setup()
432 tbl_tw2815_sfr[0x62 - 0x40] |= 1 << 6; in tw2815_setup()
434 tbl_tw2815_sfr[0x62 - 0x40] |= 0 << 6; in tw2815_setup()
436 tbl_tw2815_sfr[0x62 - 0x40] |= 0 << 6; in tw2815_setup()
438 tbl_tw2815_sfr[0x62 - 0x40] |= 2 << 6; in tw2815_setup()
441 /* Output mode of R_ADATM pin (0 mixing, 1 record) */ in tw2815_setup()
442 /* tbl_tw2815_sfr[0x63 - 0x40] |= 0 << 2; */ in tw2815_setup()
445 tbl_tw2815_sfr[0x62 - 0x40] |= 0 << 2; in tw2815_setup()
446 tbl_tw2815_sfr[0x6c - 0x40] |= 0 << 2; in tw2815_setup()
449 tbl_tw2815_sfr[0x6c - 0x40] |= 1 << 5; in tw2815_setup()
452 tbl_tw2815_sfr[0x5c - 0x40] |= 1 << 5; in tw2815_setup()
455 tbl_tw2815_sfr[0x70 - 0x40] |= 0xff; in tw2815_setup()
457 tbl_tw2815_sfr[0x71 - 0x40] |= 0x10; in tw2815_setup()
458 tbl_tw2815_sfr[0x6d - 0x40] |= 0x0f; in tw2815_setup()
462 for (ch = 0; ch < 4; ch++) { in tw2815_setup()
463 tbl_tw2815_common[0x0d] &= ~3; in tw2815_setup()
465 case 0: in tw2815_setup()
466 tbl_tw2815_common[0x0d] |= 0x21; in tw2815_setup()
469 tbl_tw2815_common[0x0d] |= 0x20; in tw2815_setup()
472 tbl_tw2815_common[0x0d] |= 0x23; in tw2815_setup()
475 tbl_tw2815_common[0x0d] |= 0x22; in tw2815_setup()
479 for (i = 0; i < 0x0f; i++) { in tw2815_setup()
480 if (i == 0x00) in tw2815_setup()
483 dev_addr, (ch * 0x10) + i, in tw2815_setup()
488 for (i = 0x40; i < 0x76; i++) { in tw2815_setup()
490 if (i == 0x40 || i == 0x59 || i == 0x5a || in tw2815_setup()
491 i == 0x5d || i == 0x5e || i == 0x5f) in tw2815_setup()
495 tbl_tw2815_sfr[i - 0x40]); in tw2815_setup()
498 return 0; in tw2815_setup()
501 #define FIRST_ACTIVE_LINE 0x0008
502 #define LAST_ACTIVE_LINE 0x0102
510 /* case 0x00 ... 0x25: */ in saa712x_write_regs()
511 case 0x2e ... 0x37: in saa712x_write_regs()
512 case 0x60: in saa712x_write_regs()
513 case 0x7d: in saa712x_write_regs()
516 solo_i2c_writebyte(dev, SOLO_I2C_SAA, 0x46, start, *vals); in saa712x_write_regs()
520 #define SAA712x_reg7c (0x80 | ((LAST_ACTIVE_LINE & 0x100) >> 2) \
521 | ((FIRST_ACTIVE_LINE & 0x100) >> 4))
525 const int reg_start = 0x26; in saa712x_setup()
527 /* :0x26 */ in saa712x_setup()
528 0x0d, 0x00, in saa712x_setup()
529 /* :0x28 */ in saa712x_setup()
530 0x59, 0x1d, 0x75, 0x3f, 0x06, 0x3f, in saa712x_setup()
531 /* :0x2e XXX: read-only */ in saa712x_setup()
532 0x00, 0x00, in saa712x_setup()
533 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in saa712x_setup()
534 /* :0x38 */ in saa712x_setup()
535 0x1a, 0x1a, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, in saa712x_setup()
536 /* :0x40 */ in saa712x_setup()
537 0x00, 0x00, 0x00, 0x68, 0x10, 0x97, 0x4c, 0x18, in saa712x_setup()
538 0x9b, 0x93, 0x9f, 0xff, 0x7c, 0x34, 0x3f, 0x3f, in saa712x_setup()
539 /* :0x50 */ in saa712x_setup()
540 0x3f, 0x83, 0x83, 0x80, 0x0d, 0x0f, 0xc3, 0x06, in saa712x_setup()
541 0x02, 0x80, 0x71, 0x77, 0xa7, 0x67, 0x66, 0x2e, in saa712x_setup()
542 /* :0x60 */ in saa712x_setup()
543 0x7b, 0x11, 0x4f, 0x1f, 0x7c, 0xf0, 0x21, 0x77, in saa712x_setup()
544 0x41, 0x88, 0x41, 0x52, 0xed, 0x10, 0x10, 0x00, in saa712x_setup()
545 /* :0x70 */ in saa712x_setup()
546 0x41, 0xc3, 0x00, 0x3e, 0xb8, 0x02, 0x00, 0x00, in saa712x_setup()
547 0x00, 0x00, FIRST_ACTIVE_LINE, LAST_ACTIVE_LINE & 0xff, in saa712x_setup()
548 SAA712x_reg7c, 0x00, 0xff, 0xff, in saa712x_setup()
550 /* :0x26 */ in saa712x_setup()
551 0x0d, 0x00, in saa712x_setup()
552 /* :0x28 */ in saa712x_setup()
553 0xe1, 0x1d, 0x75, 0x3f, 0x06, 0x3f, in saa712x_setup()
554 /* :0x2e XXX: read-only */ in saa712x_setup()
555 0x00, 0x00, in saa712x_setup()
556 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in saa712x_setup()
557 /* :0x38 */ in saa712x_setup()
558 0x1a, 0x1a, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, in saa712x_setup()
559 /* :0x40 */ in saa712x_setup()
560 0x00, 0x00, 0x00, 0x68, 0x10, 0x97, 0x4c, 0x18, in saa712x_setup()
561 0x9b, 0x93, 0x9f, 0xff, 0x7c, 0x34, 0x3f, 0x3f, in saa712x_setup()
562 /* :0x50 */ in saa712x_setup()
563 0x3f, 0x83, 0x83, 0x80, 0x0d, 0x0f, 0xc3, 0x06, in saa712x_setup()
564 0x02, 0x80, 0x0f, 0x77, 0xa7, 0x67, 0x66, 0x2e, in saa712x_setup()
565 /* :0x60 */ in saa712x_setup()
566 0x7b, 0x02, 0x35, 0xcb, 0x8a, 0x09, 0x2a, 0x77, in saa712x_setup()
567 0x41, 0x88, 0x41, 0x52, 0xf1, 0x10, 0x20, 0x00, in saa712x_setup()
568 /* :0x70 */ in saa712x_setup()
569 0x41, 0xc3, 0x00, 0x3e, 0xb8, 0x02, 0x00, 0x00, in saa712x_setup()
570 0x00, 0x00, 0x12, 0x30, in saa712x_setup()
571 SAA712x_reg7c | 0x40, 0x00, 0xff, 0xff, in saa712x_setup()
587 solo_dev->tw28_cnt = 0; in solo_tw28_init()
590 for (i = 0; i < solo_dev->nr_chans / 4; i++) { in solo_tw28_init()
592 TW_CHIP_OFFSET_ADDR(i), 0xFF); in solo_tw28_init()
595 case 0x18: in solo_tw28_init()
599 case 0x0c: in solo_tw28_init()
600 case 0x0d: in solo_tw28_init()
607 0x59); in solo_tw28_init()
608 if ((value >> 3) == 0x04) { in solo_tw28_init()
623 for (i = 0; i < solo_dev->tw28_cnt; i++) { in solo_tw28_init()
632 return 0; in solo_tw28_init()
638 * (address 0x012C) of the SOLO6010 chip doesn't give the correct video
650 TW_AV_STAT_ADDR) & 0x0f; in tw28_get_video_status()
652 return val & (1 << ch) ? 1 : 0; in tw28_get_video_status()
655 #if 0
661 u16 status = 0;
664 for (i = 0; i < solo_dev->tw28_cnt; i++) {
666 TW_AV_STAT_ADDR) & 0xf0) >> 4;
689 if (val > 255 || val < 0) in tw28_set_ctrl_val()
699 v &= 0xf0; in tw28_set_ctrl_val()
749 return 0; in tw28_set_ctrl_val()
768 *val = rval & 0x0f; in tw28_get_ctrl_val()
770 *val = 0; in tw28_get_ctrl_val()
803 return 0; in tw28_get_ctrl_val()
806 #if 0
822 u_val = (val & 0x0f) | (u_val << 4);
842 return (ch % 2) ? (val >> 4) : (val & 0x0f); in tw28_get_audio_gain()
858 val = (old_val & ((ch % 2) ? 0x0f : 0xf0)) | in tw28_set_audio_gain()