提交 074ca43f 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] v4l2-dv-timings: fill in type field

The detect_cvt/gtf functions didn't fill in the type field.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 fe9c2564
...@@ -408,6 +408,7 @@ bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync, ...@@ -408,6 +408,7 @@ bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync,
h_fp = h_blank - hsync - h_bp; h_fp = h_blank - hsync - h_bp;
} }
fmt->type = V4L2_DV_BT_656_1120;
fmt->bt.polarities = polarities; fmt->bt.polarities = polarities;
fmt->bt.width = image_width; fmt->bt.width = image_width;
fmt->bt.height = image_height; fmt->bt.height = image_height;
...@@ -527,6 +528,7 @@ bool v4l2_detect_gtf(unsigned frame_height, ...@@ -527,6 +528,7 @@ bool v4l2_detect_gtf(unsigned frame_height,
h_fp = h_blank / 2 - hsync; h_fp = h_blank / 2 - hsync;
fmt->type = V4L2_DV_BT_656_1120;
fmt->bt.polarities = polarities; fmt->bt.polarities = polarities;
fmt->bt.width = image_width; fmt->bt.width = image_width;
fmt->bt.height = image_height; fmt->bt.height = image_height;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册