linux/drivers/media
Jarod Wilson 559d162e1e [media] hdpvr: reduce latency of i2c read/write w/recycled buffer
The current hdpvr code kmalloc's a new buffer for every i2c read and
write. Rather than do that, lets allocate a buffer in the driver's
device struct and just use that every time.

The size I've chosen for the buffer is the maximum size I could
ascertain might be used by either ir-kbd-i2c or lirc_zilog, plus a bit
of padding (lirc_zilog may use up to 100 bytes on tx, rounded that up
to 128).

Note that this might also remedy user reports of very sluggish behavior
of IR receive with hdpvr hardware.

v2: make sure (len <= (dev->i2c_buf)) [Jean Delvare]

Reported-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-01-19 12:52:21 -02:00
..
common [media] saa7134: Kworld SBTVD: make both analog and digital to work 2011-01-19 11:45:28 -02:00
dvb [media] firedtv: fix remote control with newer Xorg evdev 2011-01-19 11:45:59 -02:00
radio [media] radio-aimslab.c needs #include <linux/delay.h> 2011-01-19 11:45:57 -02:00
rc [media] rc/mceusb: timeout should be in ns, not us 2011-01-19 12:52:19 -02:00
video [media] hdpvr: reduce latency of i2c read/write w/recycled buffer 2011-01-19 12:52:21 -02:00
Kconfig [media] dabusb: Move it to staging to be deprecated 2010-12-29 08:17:15 -02:00
Makefile [media] rename drivers/media/IR to drives/media/rc 2010-12-29 08:16:36 -02:00