summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/nw80x.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-01-01 16:35:01 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-06 09:07:49 -0200
commiteb3fb7c9633f79077c7c650efe0edec1840926da (patch)
tree824875bc318f736fcdd7020c909f944c7edd2c07 /drivers/media/video/gspca/nw80x.c
parent51e23be28418cf836287615cf78b237af13ea1b3 (diff)
downloadblackbird-op-linux-eb3fb7c9633f79077c7c650efe0edec1840926da.tar.gz
blackbird-op-linux-eb3fb7c9633f79077c7c650efe0edec1840926da.zip
[media] gspca: Add a need_max_bandwidth flag to sd_desc
Some cameras will pretty much entirely fill all the image buffers all the time even though they are using compression. This patch adds a flag to sd_desc, which drivers for such cameras can set. When this flag is set the bandwidth calculation code will no longer assume that the image buffer size is a worst case and less bandwidth than imagebufsize * fps will be used on average. This patch sets this new flag for 3 drivers: * For spca561 (for rev12a cameras) and nw80x cams as these simply don't work when given less bandwidth than imagebufsize * fps. * For sn9c20x cameras, because these show severy jpeg artifacts when given less bandwidth than imagebufsize * fps and since these are usb2 cameras there is plenty bandwidth anyways. 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/nw80x.c')
-rw-r--r--drivers/media/video/gspca/nw80x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/nw80x.c b/drivers/media/video/gspca/nw80x.c
index 3830054a683e..09f7db8ceffd 100644
--- a/drivers/media/video/gspca/nw80x.c
+++ b/drivers/media/video/gspca/nw80x.c
@@ -1764,6 +1764,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
webcam = 0;
sd->webcam = webcam;
gspca_dev->cam.ctrls = sd->ctrls;
+ gspca_dev->cam.needs_full_bandwidth = 1;
sd->ag_cnt = -1;
/*
OpenPOWER on IntegriCloud