V4L/DVB (13500): pvrusb2: Fix lingering 16KB FX2 Firmware issues
authorGary Francis <gary.francis@serverlan.plus.com>
Wed, 25 Nov 2009 06:03:31 +0000 (03:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:42:11 +0000 (18:42 -0200)
These are additional fixes to enable proper pvrusb2 support of 16KB
sized FX2 firmware.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pvrusb2/pvrusb2-devattr.c
drivers/media/video/pvrusb2/pvrusb2-hdw.c

index bd3b7932f23e701f9d990f0914cf2b391439b249..6bc16c13ccef7423558e48bb58d8ad85273c0241 100644 (file)
@@ -351,6 +351,7 @@ static const struct pvr2_device_desc pvr2_device_73xxx = {
                .flag_has_analogtuner = !0,
                .flag_has_composite = !0,
                .flag_has_svideo = !0,
+               .flag_fx2_16kb = !0,
                .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
                .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
                .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
index e93f3e2c25e76ce36b54aa9e1070f4ab588bd3b0..1bbdab08fe0e67ee765a0dd847b3837fc4e8b0ef 100644 (file)
@@ -1522,8 +1522,8 @@ static int pvr2_upload_firmware1(struct pvr2_hdw *hdw)
 
        trace_firmware("Upload done (%d bytes sent)",ret);
 
-       /* We should have written 8192 bytes */
-       if (ret == 8192) {
+       /* We should have written fwsize bytes */
+       if (ret == fwsize) {
                hdw->fw1_state = FW1_STATE_RELOAD;
                return 0;
        }
This page took 0.027857 seconds and 5 git commands to generate.