Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=352fae1dffe2d0d04949e579d03667377a176cff
Commit:     352fae1dffe2d0d04949e579d03667377a176cff
Parent:     8ae1fe2a0935afa878b8a506633fea45a8b00293
Author:     Mauro Carvalho Chehab <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 1 16:56:26 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:01:53 2008 -0200

    V4L/DVB (6516): Allow faster loading by using 64 bytes block by em28xx i2c 
write
    
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/em28xx/em28xx-cards.c |    3 ++-
 drivers/media/video/tuner-xc2028.c        |    3 +++
 drivers/media/video/tuner-xc2028.h        |    1 +
 3 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/em28xx/em28xx-cards.c 
b/drivers/media/video/em28xx/em28xx-cards.c
index 61b0c5a..b56e0a7 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -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;
diff --git a/drivers/media/video/tuner-xc2028.c 
b/drivers/media/video/tuner-xc2028.c
index 813b549..b9135b7 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -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;
diff --git a/drivers/media/video/tuner-xc2028.h 
b/drivers/media/video/tuner-xc2028.h
index f4856f0..4e5e4d5 100644
--- a/drivers/media/video/tuner-xc2028.h
+++ b/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 */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to