]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[media] adv7842: initialize timings to CEA 640x480p59.94
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 17 Dec 2013 13:09:51 +0000 (10:09 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 08:47:32 +0000 (06:47 -0200)
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>
drivers/media/i2c/adv7842.c

index 78986869b46b5ddb47710771c2f77b03104f90a3..515a870216cad909096c73cd1cebf8db8810e5b2 100644 (file)
@@ -2936,6 +2936,8 @@ static int adv7842_probe(struct i2c_client *client,
                         const struct i2c_device_id *id)
 {
        struct adv7842_state *state;
+       static const struct v4l2_dv_timings cea640x480 =
+               V4L2_DV_BT_CEA_640X480P59_94;
        struct adv7842_platform_data *pdata = client->dev.platform_data;
        struct v4l2_ctrl_handler *hdl;
        struct v4l2_subdev *sd;
@@ -2962,6 +2964,7 @@ static int adv7842_probe(struct i2c_client *client,
 
        /* platform data */
        state->pdata = *pdata;
+       state->timings = cea640x480;
 
        sd = &state->sd;
        v4l2_i2c_subdev_init(sd, client, &adv7842_ops);