[media] gspca_xirlink_cit: various usb bandwidth allocation improvements / fixes
authorHans de Goede <hdegoede@redhat.com>
Tue, 26 Oct 2010 14:18:59 +0000 (11:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:30 +0000 (08:16 -0200)
commitbc46bae6373c87897959c7aa8fb9f6c4218695b8
treeab265ddca38037de54d5b7c0c0ab6c4874a1ce3f
parent2661da47daefd4f22f9fdc7e9294a1cb9edf515b
[media] gspca_xirlink_cit: various usb bandwidth allocation improvements / fixes

The following usb bandwidth allocation changes were made to the ibm netcam
pro code:
- Don't restart negotiation at max packet size on stop0, as that gets called
  by gspca_main during negotiation. Move this to sd_isoc_init.
- Don't ask for full bandwidth when running at 160x120, that does not need
  full bandwidth
- Make minimum acceptable bandwidth depend upon resolution

[mchehab@redhat.com: Fix CodingStyle problems at switch statements]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/xirlink_cit.c