This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] tuner-xc2028: More firmware loading retries
Author:  Alina Friedrichsen <[email protected]>
Date:    Sun Jan 23 12:27:05 2011 -0300

My Hauppauge WinTV HVR-1400 needs sometimes more then only one retry to load 
the firmware successfully.

Signed-off-by: Alina Friedrichsen <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/common/tuners/tuner-xc2028.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=7e04e74bf5cf5b5babe85341c7805297c39324f9

diff --git a/drivers/media/common/tuners/tuner-xc2028.c 
b/drivers/media/common/tuners/tuner-xc2028.c
index b6ce528..d95f3b2 100644
--- a/drivers/media/common/tuners/tuner-xc2028.c
+++ b/drivers/media/common/tuners/tuner-xc2028.c
@@ -685,7 +685,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned 
int type,
 {
        struct xc2028_data         *priv = fe->tuner_priv;
        struct firmware_properties new_fw;
-       int                        rc = 0, is_retry = 0;
+       int                        rc = 0, retry_count = 0;
        u16                        version, hwmodel;
        v4l2_std_id                std0;
 
@@ -855,9 +855,9 @@ read_not_reliable:
 
 fail:
        memset(&priv->cur_fw, 0, sizeof(priv->cur_fw));
-       if (!is_retry) {
+       if (retry_count < 8) {
                msleep(50);
-               is_retry = 1;
+               retry_count++;
                tuner_dbg("Retrying firmware load\n");
                goto retry;
        }

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to