Commit dbb9d5ae authored by massiot's avatar massiot

* dvb.c: Fix C-band tuning.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@72 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent f279957c
...@@ -398,19 +398,17 @@ static int FrontendDoDiseqc(void) ...@@ -398,19 +398,17 @@ static int FrontendDoDiseqc(void)
else if ( i_frequency >= 2500000 && i_frequency <= 2700000 ) else if ( i_frequency >= 2500000 && i_frequency <= 2700000 )
{ {
msg_Dbg( NULL, "frequency %d is in S-band", i_frequency ); msg_Dbg( NULL, "frequency %d is in S-band", i_frequency );
bis_frequency = i_frequency - 3650000; bis_frequency = 3650000 - i_frequency;
} }
else if ( i_frequency >= 3400000 && i_frequency <= 4200000 ) else if ( i_frequency >= 3400000 && i_frequency <= 4200000 )
{ {
msg_Dbg( NULL, "frequency %d is in C-band (lower)", msg_Dbg( NULL, "frequency %d is in C-band (lower)", i_frequency );
i_frequency ); bis_frequency = 5150000 - i_frequency;
bis_frequency = i_frequency - 5150000;
} }
else if ( i_frequency >= 4500000 && i_frequency <= 4800000 ) else if ( i_frequency >= 4500000 && i_frequency <= 4800000 )
{ {
msg_Dbg( NULL, "frequency %d is in C-band (higher)", msg_Dbg( NULL, "frequency %d is in C-band (higher)", i_frequency );
i_frequency ); bis_frequency = 5950000 - i_frequency;
bis_frequency = i_frequency - 5950000;
} }
else if ( i_frequency >= 10700000 && i_frequency < 11700000 ) else if ( i_frequency >= 10700000 && i_frequency < 11700000 )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment