The patch number 9447 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]>
Optimization: Round the requested value to achieve a
+/-1MHz error instead of +0/-2MHz


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


---

 linux/drivers/media/dvb/frontends/stb6100.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r b31e4dd84d85 -r 83278a3d6289 linux/drivers/media/dvb/frontends/stb6100.c
--- a/linux/drivers/media/dvb/frontends/stb6100.c       Sat Jan 19 03:09:52 
2008 +0400
+++ b/linux/drivers/media/dvb/frontends/stb6100.c       Mon Jan 21 23:15:14 
2008 +0400
@@ -276,7 +276,7 @@ static int stb6100_set_bandwidth(struct 
        else if (bandwidth <= 5000000)  /* bw/2 min = 5Mhz for F=0              
        */
                tmp = 0;
        else                            /* if 5 < bw/2 < 36                     
        */
-               tmp = bandwidth / 1000000 - 5;
+               tmp = (bandwidth + 500000) / 1000000 - 5;
 
        /* Turn on LPF bandwidth setting clock control,
         * set bandwidth, wait 10ms, turn off.


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/83278a3d6289ea73005c7b34e36468b96bbe1607

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

Reply via email to