[media] tuner/xc2028: Add I2C flush callback
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 4 Aug 2011 07:13:59 +0000 (04:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 31 Aug 2011 18:03:22 +0000 (15:03 -0300)
commit4d37ece757a83c2858de9e40b9fa3da511f9ce38
treee3e4f857fd6ccbd940579a18da3386a1480a57fe
parent69d232ae8e95a229e7544989d6014e875deeb121
[media] tuner/xc2028: Add I2C flush callback

When loading the firmware, complete each chunk by sending an I2C flush
command to the frontend. Some devices like the tm6000 seem to require
this to properly flush the I2C buffers.

The current code in tm6000 executes the flush command once after each
I2C transfer, which slows down the firmware loading especially when
loading large BASE type images.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-xc2028.c
drivers/media/common/tuners/tuner-xc2028.h