Skip to content

Commit 52e4502

Browse files
wzyy2rkhuangtao
authored andcommitted
media: i2c: tc35874x: add link freq control
before we get it from dts, but now it must be get from driver Change-Id: I911f02a1c4d6618c539aceb06d485b58eb4906cd Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
1 parent c10f2c4 commit 52e4502

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/media/i2c/tc35874x.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ MODULE_LICENSE("GPL");
6666

6767
#define POLL_INTERVAL_MS 1000
6868

69+
static const s64 link_freq_menu_items[] = {
70+
300000000,
71+
};
72+
6973
static const struct v4l2_dv_timings_cap tc35874x_timings_cap = {
7074
.type = V4L2_DV_BT_656_1120,
7175
/* keep this initialization for compatibility with GCC < 4.4.6 */
@@ -1926,6 +1930,9 @@ static int tc35874x_probe(struct i2c_client *client,
19261930
state->audio_present_ctrl = v4l2_ctrl_new_custom(&state->hdl,
19271931
&tc35874x_ctrl_audio_present, NULL);
19281932

1933+
v4l2_ctrl_new_int_menu(&state->hdl, NULL, V4L2_CID_LINK_FREQ,
1934+
0, 0, link_freq_menu_items);
1935+
19291936
sd->ctrl_handler = &state->hdl;
19301937
if (state->hdl.error) {
19311938
err = state->hdl.error;

0 commit comments

Comments
 (0)