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 61b0c5a55df671c3808b1ccf3f1e6ebc588d7730..b56e0a70d8f80f654d16aa954e4978efe57db3fe 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 813b54971e1ab1ac8063ccc0ddfa0d0e01226260..b9135b7c43378374b584de7f16e7d3d7b9b7dd9f 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 f4856f07bd08a31e5e0e89934efda319cc61f21f..4e5e4d5d1b5f9e8f81ff194c14c6a646158a2806 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 */