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

Subject: [media] si2165: move setting ts config to init
Author:  Matthias Schwarzott <[email protected]>
Date:    Thu Nov 19 18:03:57 2015 -0200

The TS config is fixed, so no need to write it for each tune.

Signed-off-by: Matthias Schwarzott <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb-frontends/si2165.c | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=75d62fc04626c0c806a441b617c72e288bc35595
diff --git a/drivers/media/dvb-frontends/si2165.c 
b/drivers/media/dvb-frontends/si2165.c
index 07247e307f55..0c1f4c41db17 100644
--- a/drivers/media/dvb-frontends/si2165.c
+++ b/drivers/media/dvb-frontends/si2165.c
@@ -690,6 +690,20 @@ static int si2165_init(struct dvb_frontend *fe)
                        goto error;
        }
 
+       /* ts output config */
+       ret = si2165_writereg8(state, 0x04e4, 0x20);
+       if (ret < 0)
+               return ret;
+       ret = si2165_writereg16(state, 0x04ef, 0x00fe);
+       if (ret < 0)
+               return ret;
+       ret = si2165_writereg24(state, 0x04f4, 0x555555);
+       if (ret < 0)
+               return ret;
+       ret = si2165_writereg8(state, 0x04e5, 0x01);
+       if (ret < 0)
+               return ret;
+
        return 0;
 error:
        return ret;
@@ -824,19 +838,6 @@ static int si2165_set_frontend(struct dvb_frontend *fe)
        ret = si2165_writereg8(state, 0x08f8, 0x00);
        if (ret < 0)
                return ret;
-       /* ts output config */
-       ret = si2165_writereg8(state, 0x04e4, 0x20);
-       if (ret < 0)
-               return ret;
-       ret = si2165_writereg16(state, 0x04ef, 0x00fe);
-       if (ret < 0)
-               return ret;
-       ret = si2165_writereg24(state, 0x04f4, 0x555555);
-       if (ret < 0)
-               return ret;
-       ret = si2165_writereg8(state, 0x04e5, 0x01);
-       if (ret < 0)
-               return ret;
        /* bandwidth in 10KHz steps */
        ret = si2165_writereg16(state, 0x0308, bw10k);
        if (ret < 0)

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

Reply via email to