diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-12-17 10:05:13 -0300 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:55:27 +0900 |
commit | 34dc946e0124b670a12c536d6851656460a294ec (patch) | |
tree | e6c7eef03b44c790640bd4eb9456a2a7e3db4254 | |
parent | c791b07d5d03370fc34e08133087d71a692123cb (diff) | |
download | linux-3.10-34dc946e0124b670a12c536d6851656460a294ec.tar.gz linux-3.10-34dc946e0124b670a12c536d6851656460a294ec.tar.bz2 linux-3.10-34dc946e0124b670a12c536d6851656460a294ec.zip |
upstream: [media] adv7604: 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/adv7604.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index be9699e2873..71c8570bd9e 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -2207,6 +2207,8 @@ static struct i2c_client *adv7604_dummy_client(struct v4l2_subdev *sd, static int adv7604_probe(struct i2c_client *client, const struct i2c_device_id *id) { + static const struct v4l2_dv_timings cea640x480 = + V4L2_DV_BT_CEA_640X480P59_94; struct adv7604_state *state; struct adv7604_platform_data *pdata = client->dev.platform_data; struct v4l2_ctrl_handler *hdl; @@ -2234,7 +2236,8 @@ static int adv7604_probe(struct i2c_client *client, v4l_err(client, "No platform data!\n"); return -ENODEV; } - memcpy(&state->pdata, pdata, sizeof(state->pdata)); + state->pdata = *pdata; + state->timings = cea640x480; sd = &state->sd; v4l2_i2c_subdev_init(sd, client, &adv7604_ops); |