summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx25840
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-03-25 17:43:14 -0600
committerMike Isely <isely@pobox.com>2006-03-25 17:43:14 -0600
commitaba6cef68fb994d3bea36f80619c35c676de0cdb (patch)
tree433a1c37b6db9592abe8b741f2cf9263f984bb34 /linux/drivers/media/video/cx25840
parentbdf583dd1cbec85e2760a6825d3ddf571c791870 (diff)
downloadmediapointer-dvb-s2-aba6cef68fb994d3bea36f80619c35c676de0cdb.tar.gz
mediapointer-dvb-s2-aba6cef68fb994d3bea36f80619c35c676de0cdb.tar.bz2
Reduce FWSEND in cx25840 module due to certain I2C bus adapter limits
From: Mike Isely <isely@pobox.com> The FWSEND parameter controls the size of the firmware chunks sent down the I2C bus to the chip. Previously this had been set to 1024 but unfortunately some I2C implementations can't transfer data in such big gulps. Specifically, the pvrusb2 driver has a hard limit of around 60 bytes, due to the encapsulation there of I2C traffic into USB messages. So we have to significantly reduce this parameter. Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/cx25840')
-rw-r--r--linux/drivers/media/video/cx25840/cx25840-firmware.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx25840/cx25840-firmware.c b/linux/drivers/media/video/cx25840/cx25840-firmware.c
index 96a45a4be..539de43dd 100644
--- a/linux/drivers/media/video/cx25840/cx25840-firmware.c
+++ b/linux/drivers/media/video/cx25840/cx25840-firmware.c
@@ -26,7 +26,17 @@
#include "cx25840-core.h"
#define FWFILE "v4l-cx25840.fw"
-#define FWSEND 1024
+
+/*
+ * Mike Isely <isely@pobox.com> - The FWSEND parameter controls the
+ * size of the firmware chunks sent down the I2C bus to the chip.
+ * Previously this had been set to 1024 but unfortunately some I2C
+ * implementations can't transfer data in such big gulps.
+ * Specifically, the pvrusb2 driver has a hard limit of around 60
+ * bytes, due to the encapsulation there of I2C traffic into USB
+ * messages. So we have to significantly reduce this parameter.
+ */
+#define FWSEND 48
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#define FWDEV(x) &((x)->adapter->dev)