diff driver/pt1_tuner.c @ 94:c940283dd890

fix frequency calculation for catv channels
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 06 Feb 2010 03:04:11 +0900
parents 3c2123189edf
children 6e661e828b43
line wrap: on
line diff
--- a/driver/pt1_tuner.c	Thu Jan 28 15:54:04 2010 +0900
+++ b/driver/pt1_tuner.c	Sat Feb 06 03:04:11 2010 +0900
@@ -432,11 +432,11 @@
 	__u32	frequencyoffset = 0;
 	__u32	frequencyOffset = 0;
 
-	if (12 <= channel){
+	if (12 <= channel)
 		frequencyoffset += 2;
-	}else if (17 <= channel){
-		frequencyoffset = 0;
-	}else if (63 <= channel){
+	if (17 <= channel)
+		frequencyoffset -= 2;
+	if (63 <= channel){
 		frequencyoffset += 2;
 	}
 #if 0