diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-12-17 08:09:51 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-07 03:47:32 -0500 |
commit | 0bb4e7ab643be0c97c378ba39b4e6f9dcf508749 (patch) | |
tree | bb6634bce40ca62fe6bfe7216538e2ebc82762b1 | |
parent | fe808f3c9342cbd77fb0102c462e8555e458b286 (diff) |
[media] adv7842: initialize timings to CEA 640x480p59.94
This timing must be supported by all HDMI equipment, so that's a
reasonable default.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/i2c/adv7842.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c index 78986869b46b..515a870216ca 100644 --- a/drivers/media/i2c/adv7842.c +++ b/drivers/media/i2c/adv7842.c | |||
@@ -2936,6 +2936,8 @@ static int adv7842_probe(struct i2c_client *client, | |||
2936 | const struct i2c_device_id *id) | 2936 | const struct i2c_device_id *id) |
2937 | { | 2937 | { |
2938 | struct adv7842_state *state; | 2938 | struct adv7842_state *state; |
2939 | static const struct v4l2_dv_timings cea640x480 = | ||
2940 | V4L2_DV_BT_CEA_640X480P59_94; | ||
2939 | struct adv7842_platform_data *pdata = client->dev.platform_data; | 2941 | struct adv7842_platform_data *pdata = client->dev.platform_data; |
2940 | struct v4l2_ctrl_handler *hdl; | 2942 | struct v4l2_ctrl_handler *hdl; |
2941 | struct v4l2_subdev *sd; | 2943 | struct v4l2_subdev *sd; |
@@ -2962,6 +2964,7 @@ static int adv7842_probe(struct i2c_client *client, | |||
2962 | 2964 | ||
2963 | /* platform data */ | 2965 | /* platform data */ |
2964 | state->pdata = *pdata; | 2966 | state->pdata = *pdata; |
2967 | state->timings = cea640x480; | ||
2965 | 2968 | ||
2966 | sd = &state->sd; | 2969 | sd = &state->sd; |
2967 | v4l2_i2c_subdev_init(sd, client, &adv7842_ops); | 2970 | v4l2_i2c_subdev_init(sd, client, &adv7842_ops); |