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

Subject: libdvbv5: Fix tuning
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Mon Jun 4 19:18:16 2012 -0300

The previous patch broke DVB tuning. fix it.

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

 lib/libdvbv5/dvb-fe.c |   39 +++++++++++++++++++--------------------
 1 files changed, 19 insertions(+), 20 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=8c5f6b349e4a7c5544957aa75f2c3a5754928ea6

diff --git a/lib/libdvbv5/dvb-fe.c b/lib/libdvbv5/dvb-fe.c
index b46d83b..9078893 100644
--- a/lib/libdvbv5/dvb-fe.c
+++ b/lib/libdvbv5/dvb-fe.c
@@ -312,26 +312,25 @@ int dvb_set_sys(struct dvb_v5_fe_parms *parms,
        struct dtv_properties prop;
        int rc;
 
-       if (sys == parms->current_sys)
-               return 0;
+       if (sys != parms->current_sys) {
+               /* Disable LNBf power */
+               if (is_satellite(parms->current_sys) &&
+                   !is_satellite(sys))
+                       dvb_fe_sec_voltage(parms, 0, 0);
 
-       /* Disable LNBf power */
-       if (is_satellite(parms->current_sys) &&
-           !is_satellite(sys))
-               dvb_fe_sec_voltage(parms, 0, 0);
-
-       /* Can't change standard with the legacy FE support */
-       if (parms->legacy_fe)
-               return EINVAL;
+               /* Can't change standard with the legacy FE support */
+               if (parms->legacy_fe)
+                       return EINVAL;
 
-       dvb_prop[0].cmd = DTV_DELIVERY_SYSTEM;
-       dvb_prop[0].u.data = sys;
-       prop.num = 1;
-       prop.props = dvb_prop;
+               dvb_prop[0].cmd = DTV_DELIVERY_SYSTEM;
+               dvb_prop[0].u.data = sys;
+               prop.num = 1;
+               prop.props = dvb_prop;
 
-       if (ioctl(parms->fd, FE_SET_PROPERTY, &prop) == -1) {
-               dvb_perror("Set delivery system");
-               return errno;
+               if (ioctl(parms->fd, FE_SET_PROPERTY, &prop) == -1) {
+                       dvb_perror("Set delivery system");
+                       return errno;
+               }
        }
 
        rc = dvb_add_parms_for_sys(parms->dvb_prop,

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

Reply via email to