Lines Matching +full:video +full:- +full:encoder
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 bt866 - BT866 Digital Video Encoder (Rockwell Part)
26 #include <media/v4l2-device.h>
28 MODULE_DESCRIPTION("Brooktree-866 video encoder driver");
34 MODULE_PARM_DESC(debug, "Debug level (0-1)");
37 /* ----------------------------------------------------------------------- */
49 static int bt866_write(struct bt866 *encoder, u8 subaddr, u8 data) in bt866_write() argument
51 struct i2c_client *client = v4l2_get_subdevdata(&encoder->sd); in bt866_write()
58 encoder->reg[subaddr] = data; in bt866_write()
72 return -1; in bt866_write()
84 return -EINVAL; in bt866_s_std_output()
118 struct bt866 *encoder = to_bt866(sd); in bt866_s_routing() local
123 bt866_write(encoder, init[i], init[i+1]); in bt866_s_routing()
125 val = encoder->reg[0xdc]; in bt866_s_routing()
132 bt866_write(encoder, 0xdc, val); in bt866_s_routing()
134 val = encoder->reg[0xcc]; in bt866_s_routing()
139 bt866_write(encoder, 0xcc, val); in bt866_s_routing()
149 return -EINVAL; in bt866_s_routing()
157 val = encoder->reg[0xdc];
165 /* ----------------------------------------------------------------------- */
173 .video = &bt866_video_ops,
178 struct bt866 *encoder; in bt866_probe() local
182 client->addr << 1, client->adapter->name); in bt866_probe()
184 encoder = devm_kzalloc(&client->dev, sizeof(*encoder), GFP_KERNEL); in bt866_probe()
185 if (encoder == NULL) in bt866_probe()
186 return -ENOMEM; in bt866_probe()
187 sd = &encoder->sd; in bt866_probe()