The patch number 9445 was added via Manu Abraham <[EMAIL PROTECTED]>
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:
        [EMAIL PROTECTED]

------

From: Reinhard Nissl  <[EMAIL PROTECTED]>
Bug: Bandwidth calculation at upper and lower boundaries


Signed-off-by: Reinhard Nissl <[EMAIL PROTECTED]>
Signed-off-by: Manu Abraham <[EMAIL PROTECTED]>


---

 linux/drivers/media/dvb/frontends/stb6100.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -r 26049167a04c -r 3e938c50654c linux/drivers/media/dvb/frontends/stb6100.c
--- a/linux/drivers/media/dvb/frontends/stb6100.c       Fri Jan 18 21:15:17 
2008 +0400
+++ b/linux/drivers/media/dvb/frontends/stb6100.c       Fri Jan 18 23:06:18 
2008 +0400
@@ -267,13 +267,13 @@ static int stb6100_set_bandwidth(struct 
        int rc;
        struct stb6100_state *state = fe->tuner_priv;
 
-       dprintk(verbose, FE_DEBUG, 1, "set bandwidth to %u kHz", bandwidth);
+       dprintk(verbose, FE_DEBUG, 1, "set bandwidth to %u Hz", bandwidth);
 
        bandwidth /= 2; /* ZIF */
 
-       if (bandwidth > 36000000)       /* F[4:0] BW/2 max =31+5=36 mhz for 
F=31        */
+       if (bandwidth >= 36000000)      /* F[4:0] BW/2 max =31+5=36 mhz for 
F=31        */
                tmp = 31;
-       if (bandwidth < 5000000)        /* bw/2 min = 5Mhz for F=0              
        */
+       else if (bandwidth <= 5000000)  /* bw/2 min = 5Mhz for F=0              
        */
                tmp = 0;
        else                            /* if 5 < bw/2 < 36                     
        */
                tmp = bandwidth / 1000000 - 5;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/3e938c50654c3427fc682769e3bb63b6627a73f5

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

Reply via email to