提交 1153f04d 编写于 作者: H Hans de Goede 提交者: Mauro Carvalho Chehab

[media] gspca - main: Take numerator into account in fps calculations

In case we ever get sub drivers which do 7.5 fps and express this as
15 / 2 fps.
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NJean-François Moine <moinejf@free.fr>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 d0d3435b
......@@ -646,9 +646,9 @@ static u32 which_bandwidth(struct gspca_dev *gspca_dev)
if (gspca_dev->sd_desc->get_streamparm) {
struct v4l2_streamparm parm;
parm.parm.capture.timeperframe.denominator = 15;
gspca_dev->sd_desc->get_streamparm(gspca_dev, &parm);
bandwidth *= parm.parm.capture.timeperframe.denominator;
bandwidth /= parm.parm.capture.timeperframe.numerator;
} else {
/* don't hope more than 15 fps with USB 1.1 and
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册