The patch number 12481 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Julian Scheel  <jul...@jusst.de>
Fix lowband tuning with tda8261


Attached is a patch which fixes tuning to low frequency channels with
stb0899+tda8261 cards like the KNC TV-Station DVB-S2.
The cause of the issue was a broken if construct, which should have been
an if/else if, so that the setting for the lowest matching frequency is
applied.

Without this patch for example tuning to "arte" on Astra 19.2, 10744MHz
SR22000 failed most times and when it failed the communication between
driver and tda8261 was completely broken.
This problem disappears with the attached patch.

Signed-off-by: Julian Scheel <jul...@jusst.de>
Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/dvb/frontends/tda8261.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -r 2ce5d4bd7db7 -r 0ee45e6346d0 linux/drivers/media/dvb/frontends/tda8261.c
--- a/linux/drivers/media/dvb/frontends/tda8261.c       Fri Jul 24 16:45:41 
2009 +0000
+++ b/linux/drivers/media/dvb/frontends/tda8261.c       Fri Jul 31 16:40:43 
2009 +0000
@@ -136,9 +136,9 @@
 
                if (frequency < 1450000)
                        buf[3] = 0x00;
-               if (frequency < 2000000)
+               else if (frequency < 2000000)
                        buf[3] = 0x40;
-               if (frequency < 2150000)
+               else if (frequency < 2150000)
                        buf[3] = 0x80;
 
                /* Set params */


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/0ee45e6346d02926c147e5f04b0198396d2c15a0

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to