Commit 352fae1d authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (6516): Allow faster loading by using 64 bytes block by em28xx i2c write

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 8ae1fe2a
...@@ -371,7 +371,8 @@ static void em28xx_config_tuner (struct em28xx *dev) ...@@ -371,7 +371,8 @@ static void em28xx_config_tuner (struct em28xx *dev)
memset (&ctl,0,sizeof(ctl)); 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.tuner = TUNER_XC2028;
xc2028_cfg.priv = &ctl; xc2028_cfg.priv = &ctl;
......
...@@ -685,6 +685,9 @@ static int xc2028_set_config (struct dvb_frontend *fe, void *priv_cfg) ...@@ -685,6 +685,9 @@ static int xc2028_set_config (struct dvb_frontend *fe, void *priv_cfg)
strcpy(priv->ctrl.fname, p->fname); strcpy(priv->ctrl.fname, p->fname);
} }
if (p->max_len>0)
priv->max_len = p->max_len;
tuner_info("%s OK\n", __FUNCTION__); tuner_info("%s OK\n", __FUNCTION__);
return 0; return 0;
......
...@@ -19,6 +19,7 @@ enum xc2028_firm_type { ...@@ -19,6 +19,7 @@ enum xc2028_firm_type {
struct xc2028_ctrl { struct xc2028_ctrl {
enum xc2028_firm_type type; enum xc2028_firm_type type;
char *fname; char *fname;
int max_len;
}; };
/* xc2028 commands for callback */ /* xc2028 commands for callback */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment