Mercurial > pt1.mumumu
changeset 94:c940283dd890
fix frequency calculation for catv channels
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 06 Feb 2010 03:04:11 +0900 |
parents | ee357d8f987f |
children | a201531113ca |
files | driver/pt1_tuner.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
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