summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-01 17:56:26 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-01 17:56:26 -0200
commit57e6676755daf54d77d65a215e67c77ad7b83d4a (patch)
treec5a671725f39071a38bb4d6ebf3316e25a8bbfb3
parentb2bd5c764b19b6f6cdc3f9e93d11475509c7bc5e (diff)
downloadmediapointer-dvb-s2-57e6676755daf54d77d65a215e67c77ad7b83d4a.tar.gz
mediapointer-dvb-s2-57e6676755daf54d77d65a215e67c77ad7b83d4a.tar.bz2
Allow faster loading by using 64 bytes block by em28xx i2c write
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-cards.c3
-rw-r--r--linux/drivers/media/video/tuner-xc2028.c3
-rw-r--r--linux/drivers/media/video/tuner-xc2028.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c
index b9a11dee2..663a4c501 100644
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c
@@ -372,7 +372,8 @@ static void em28xx_config_tuner (struct em28xx *dev)
memset (&ctl,0,sizeof(ctl));
- ctl.fname = XC2028_DEFAULT_FIRMWARE;
+ ctl.fname = XC2028_DEFAULT_FIRMWARE;
+ ctl.max_len = 64;
xc2028_cfg.tuner = TUNER_XC2028;
xc2028_cfg.priv = &ctl;
diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c
index fdea79c28..9983817b5 100644
--- a/linux/drivers/media/video/tuner-xc2028.c
+++ b/linux/drivers/media/video/tuner-xc2028.c
@@ -699,6 +699,9 @@ static int xc2028_set_config (struct dvb_frontend *fe, void *priv_cfg)
strcpy(priv->ctrl.fname, p->fname);
}
+ if (p->max_len>0)
+ priv->max_len = p->max_len;
+
tuner_info("%s OK\n", __FUNCTION__);
return 0;
diff --git a/linux/drivers/media/video/tuner-xc2028.h b/linux/drivers/media/video/tuner-xc2028.h
index f4856f07b..4e5e4d5d1 100644
--- a/linux/drivers/media/video/tuner-xc2028.h
+++ b/linux/drivers/media/video/tuner-xc2028.h
@@ -19,6 +19,7 @@ enum xc2028_firm_type {
struct xc2028_ctrl {
enum xc2028_firm_type type;
char *fname;
+ int max_len;
};
/* xc2028 commands for callback */