Lines Matching +full:sync +full:- +full:on +full:- +full:green +full:- +full:active
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * saa7185 - Philips SAA7185B video encoder driver version 0.0.3
11 * - moved over to linux>=2.4.x i2c protocol (1/1/2003)
21 #include <media/v4l2-device.h>
29 MODULE_PARM_DESC(debug, "Debug level (0-1)");
32 /* ----------------------------------------------------------------------- */
46 /* ----------------------------------------------------------------------- */
61 encoder->reg[reg] = value; in saa7185_write()
70 int ret = -1; in saa7185_write_block()
75 if (i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { in saa7185_write_block()
85 encoder->reg[reg++] = data[1]; in saa7185_write_block()
86 len -= 2; in saa7185_write_block()
100 len -= 2; in saa7185_write_block()
107 /* ----------------------------------------------------------------------- */
123 0x4c, 0xc8, /* OVLU3=200 green */
146 /* 0x61 - 0x66 set according to norm */
212 if (encoder->norm & V4L2_STD_NTSC) in saa7185_init()
228 return -EINVAL; in saa7185_s_std_output()
229 encoder->norm = std; in saa7185_s_std_output()
246 saa7185_write(sd, 0x61, (encoder->reg[0x61] & 0xf7) | 0x08); in saa7185_s_routing()
254 saa7185_write(sd, 0x61, (encoder->reg[0x61] & 0xf7) | 0x00); in saa7185_s_routing()
255 /* SW: a slight sync problem... */ in saa7185_s_routing()
260 /* turn on colorbar */ in saa7185_s_routing()
263 saa7185_write(sd, 0x61, (encoder->reg[0x61] & 0xf7) | 0x08); in saa7185_s_routing()
264 /* SW: a slight sync problem... */ in saa7185_s_routing()
269 return -EINVAL; in saa7185_s_routing()
274 /* ----------------------------------------------------------------------- */
291 /* ----------------------------------------------------------------------- */
300 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) in saa7185_probe()
301 return -ENODEV; in saa7185_probe()
304 client->addr << 1, client->adapter->name); in saa7185_probe()
306 encoder = devm_kzalloc(&client->dev, sizeof(*encoder), GFP_KERNEL); in saa7185_probe()
308 return -ENOMEM; in saa7185_probe()
309 encoder->norm = V4L2_STD_NTSC; in saa7185_probe()
310 sd = &encoder->sd; in saa7185_probe()
330 /* SW: output off is active */ in saa7185_remove()
331 saa7185_write(sd, 0x61, (encoder->reg[0x61]) | 0x40); in saa7185_remove()
334 /* ----------------------------------------------------------------------- */