Lines Matching +full:dc +full:- +full:dc +full:- +full:freq +full:- +full:hz

2  * ths7303/53- THS7303/53 Video Amplifier driver
4 * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
29 #include <media/v4l2-device.h>
87 const struct ths7303_platform_data *pdata = state->pdata; in ths7303_setval()
92 return -EINVAL; in ths7303_setval()
105 sel = 0x0; /* SDTV, S-Video, 480i/576i */ in ths7303_setval()
114 val |= (pdata->ch_1 & 0x27); in ths7303_setval()
121 val |= (pdata->ch_2 & 0x27); in ths7303_setval()
128 val |= (pdata->ch_3 & 0x27); in ths7303_setval()
144 state->std_id = 1; in ths7303_s_std_output()
145 state->bt.pixelclock = 0; in ths7303_s_std_output()
157 if (!state->stream_on) { in ths7303_config()
170 if (state->bt.pixelclock > 120000000) in ths7303_config()
172 else if (state->bt.pixelclock > 70000000) in ths7303_config()
174 else if (state->bt.pixelclock > 20000000) in ths7303_config()
176 else if (state->std_id) in ths7303_config()
190 state->stream_on = enable; in ths7303_s_stream()
201 if (!dv_timings || dv_timings->type != V4L2_DV_BT_656_1120) in ths7303_s_dv_timings()
202 return -EINVAL; in ths7303_s_dv_timings()
204 state->bt = dv_timings->bt; in ths7303_s_dv_timings()
205 state->std_id = 0; in ths7303_s_dv_timings()
221 reg->size = 1; in ths7303_g_register()
222 reg->val = ths7303_read(sd, reg->reg); in ths7303_g_register()
229 ths7303_write(sd, reg->reg, reg->val); in ths7303_s_register()
235 "500-kHz Filter",
236 "2.5-MHz Filter",
237 "5-MHz Filter",
238 "5-MHz Filter",
247 "9-MHz LPF",
248 "16-MHz LPF",
249 "35-MHz LPF",
255 "Mute Function - No Output",
256 "DC Bias Select",
257 "DC Bias + 250 mV Offset Select",
285 v4l2_info(sd, "stream %s\n", state->stream_on ? "On" : "Off"); in ths7303_log_status()
287 if (state->bt.pixelclock) { in ths7303_log_status()
288 struct v4l2_bt_timings *bt = &state->bt; in ths7303_log_status()
294 "timings: %dx%d%s%d (%dx%d). Pix freq. = %d Hz. Polarities = 0x%x\n", in ths7303_log_status()
295 bt->width, bt->height, bt->interlaced ? "i" : "p", in ths7303_log_status()
297 (int)bt->pixelclock / in ths7303_log_status()
300 (int)bt->pixelclock, bt->polarities); in ths7303_log_status()
327 struct ths7303_platform_data *pdata = client->dev.platform_data; in ths7303_probe()
332 dev_err(&client->dev, "No platform data\n"); in ths7303_probe()
333 return -EINVAL; in ths7303_probe()
336 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) in ths7303_probe()
337 return -ENODEV; in ths7303_probe()
340 client->addr << 1, client->adapter->name); in ths7303_probe()
342 state = devm_kzalloc(&client->dev, sizeof(struct ths7303_state), in ths7303_probe()
345 return -ENOMEM; in ths7303_probe()
347 state->pdata = pdata; in ths7303_probe()
348 sd = &state->sd; in ths7303_probe()
354 return -EINVAL; in ths7303_probe()