diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-12-30 16:13:07 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-06 15:02:07 +0400 |
commit | 1153f04dea315a95e14ef5376737f7fbe18282c3 (patch) | |
tree | d172872e46c889c259ea44cb364e4dba6a251b5e /drivers/media/video/gspca/gspca.c | |
parent | d0d3435b212f88aebee6a06e002e4fd3b487a918 (diff) | |
download | linux-1153f04dea315a95e14ef5376737f7fbe18282c3.tar.xz |
[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: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index a82d45e57896..4767f159b62a 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c @@ -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 |