]> git.karo-electronics.de Git - karo-tx-linux.git/commit
V4L: pvrusb2: Handle larger cx2341x firmware images
authorMike Isely <isely@pobox.com>
Sat, 3 Mar 2007 14:36:02 +0000 (09:36 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:23 +0000 (10:50 -0800)
commitf3fa2cac947f696787f4f755e78662fe7ab4d10e
treee553d81ccc549ea91da2fdbdc50ffcb0297ed59a
parentd3014508aa1de5712847fae3abfdbe9d58aa2f2c
V4L: pvrusb2: Handle larger cx2341x firmware images

Rework the cx23416 firmware loader so that it longer requires the
firmware size to be a multiple of 8KB.  Until recently all cx2341x
firmware images were exactly 256KB, but newer firmware is larger than
that and also appears to have arbitrary size.  We still must check
against a multiple of 4 bytes (because the cx23416 itself uses a 32
bit word size).

This fix is already in the upstream driver source and has proven
itself there; this is a backport for the 2.6.20.y kernel series.

(backported from commit 90060d32ca0a941b158994f78e60d0381871c84b)

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/pvrusb2/pvrusb2-hdw.c