summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/tuner-xc2028.h
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2011-08-04 04:13:59 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-08-31 15:03:22 -0300
commit4d37ece757a83c2858de9e40b9fa3da511f9ce38 (patch)
treee3e4f857fd6ccbd940579a18da3386a1480a57fe /drivers/media/common/tuners/tuner-xc2028.h
parent69d232ae8e95a229e7544989d6014e875deeb121 (diff)
[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>
Diffstat (limited to 'drivers/media/common/tuners/tuner-xc2028.h')
-rw-r--r--drivers/media/common/tuners/tuner-xc2028.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.h b/drivers/media/common/tuners/tuner-xc2028.h
index 9778c96a500..9ebfb2d0ff1 100644
--- a/drivers/media/common/tuners/tuner-xc2028.h
+++ b/drivers/media/common/tuners/tuner-xc2028.h
@@ -54,6 +54,7 @@ struct xc2028_config {
/* xc2028 commands for callback */
#define XC2028_TUNER_RESET 0
#define XC2028_RESET_CLK 1
+#define XC2028_I2C_FLUSH 2
#if defined(CONFIG_MEDIA_TUNER_XC2028) || (defined(CONFIG_MEDIA_TUNER_XC2028_MODULE) && defined(MODULE))
extern struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe,