提交 4263fa8c 编写于 作者: M Mike Isely 提交者: Mauro Carvalho Chehab

V4L/DVB (3639): Reduce FWSEND due to certain I2C bus adapter limits

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: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMike Isely <isely@pobox.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 dbcb86ed
......@@ -25,7 +25,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
#define FWDEV(x) &((x)->adapter->dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册