[media] v4l2-dv-timings: fill in type field
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 19 Aug 2013 11:38:29 +0000 (08:38 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:27:29 +0000 (04:27 -0300)
The detect_cvt/gtf functions didn't fill in the type field.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-dv-timings.c

index 1a9d393307a1fe427d09525343eaa8bc9cc9ee00..c2f5af7acbedb89227cbe036daa1230b5067973c 100644 (file)
@@ -408,6 +408,7 @@ bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync,
                h_fp = h_blank - hsync - h_bp;
        }
 
+       fmt->type = V4L2_DV_BT_656_1120;
        fmt->bt.polarities = polarities;
        fmt->bt.width = image_width;
        fmt->bt.height = image_height;
@@ -527,6 +528,7 @@ bool v4l2_detect_gtf(unsigned frame_height,
 
        h_fp = h_blank / 2 - hsync;
 
+       fmt->type = V4L2_DV_BT_656_1120;
        fmt->bt.polarities = polarities;
        fmt->bt.width = image_width;
        fmt->bt.height = image_height;