comparison 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
comparison
equal deleted inserted replaced
93:ee357d8f987f 94:c940283dd890
430 __u32 getfrequency(__u32 channel, int addfreq) 430 __u32 getfrequency(__u32 channel, int addfreq)
431 { 431 {
432 __u32 frequencyoffset = 0; 432 __u32 frequencyoffset = 0;
433 __u32 frequencyOffset = 0; 433 __u32 frequencyOffset = 0;
434 434
435 if (12 <= channel){ 435 if (12 <= channel)
436 frequencyoffset += 2; 436 frequencyoffset += 2;
437 }else if (17 <= channel){ 437 if (17 <= channel)
438 frequencyoffset = 0; 438 frequencyoffset -= 2;
439 }else if (63 <= channel){ 439 if (63 <= channel){
440 frequencyoffset += 2; 440 frequencyoffset += 2;
441 } 441 }
442 #if 0 442 #if 0
443 return (((93 + channel * 6 + frequencyOffset) + addfreq) * 7) + 400; 443 return (((93 + channel * 6 + frequencyOffset) + addfreq) * 7) + 400;
444 #endif 444 #endif