V4L/DVB (6516): Allow faster loading by using 64 bytes block by em28xx i2c write
authorMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 1 Nov 2007 19:56:26 +0000 (16:56 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:01:53 +0000 (19:01 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/tuner-xc2028.c
drivers/media/video/tuner-xc2028.h

index 61b0c5a..b56e0a7 100644 (file)
@@ -371,7 +371,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;
index 813b549..b9135b7 100644 (file)
@@ -685,6 +685,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;
index f4856f0..4e5e4d5 100644 (file)
@@ -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 */