Commit d1f89592 authored by Marian Ďurkovič's avatar Marian Ďurkovič Committed by Christophe Massiot

* dvblastctl.c, dvb.c: Compatibility with older DVB drivers.

parent 77d8a50e
...@@ -374,7 +374,9 @@ static int FrontendDoDiseqc(void) ...@@ -374,7 +374,9 @@ static int FrontendDoDiseqc(void)
switch ( i_voltage ) switch ( i_voltage )
{ {
#ifdef SEC_VOLTAGE_OFF
case 0: fe_voltage = SEC_VOLTAGE_OFF; break; case 0: fe_voltage = SEC_VOLTAGE_OFF; break;
#endif
default: default:
case 13: fe_voltage = SEC_VOLTAGE_13; break; case 13: fe_voltage = SEC_VOLTAGE_13; break;
case 18: fe_voltage = SEC_VOLTAGE_18; break; case 18: fe_voltage = SEC_VOLTAGE_18; break;
...@@ -739,6 +741,7 @@ static void FrontendSet( void ) ...@@ -739,6 +741,7 @@ static void FrontendSet( void )
i_frequency, i_srate ); i_frequency, i_srate );
break; break;
#ifdef FE_ATSC
case FE_ATSC: case FE_ATSC:
fep.frequency = i_frequency; fep.frequency = i_frequency;
...@@ -746,6 +749,7 @@ static void FrontendSet( void ) ...@@ -746,6 +749,7 @@ static void FrontendSet( void )
msg_Dbg( NULL, "tuning ATSC frontend to f=%d", i_frequency ); msg_Dbg( NULL, "tuning ATSC frontend to f=%d", i_frequency );
break; break;
#endif
default: default:
msg_Err( NULL, "unknown frontend type %d", info.type ); msg_Err( NULL, "unknown frontend type %d", info.type );
......
...@@ -308,17 +308,23 @@ int main( int i_argc, char **ppsz_argv ) ...@@ -308,17 +308,23 @@ int main( int i_argc, char **ppsz_argv )
PRINT_CAPS( CAN_BANDWIDTH_AUTO ); PRINT_CAPS( CAN_BANDWIDTH_AUTO );
PRINT_CAPS( CAN_GUARD_INTERVAL_AUTO ); PRINT_CAPS( CAN_GUARD_INTERVAL_AUTO );
PRINT_CAPS( CAN_HIERARCHY_AUTO ); PRINT_CAPS( CAN_HIERARCHY_AUTO );
#ifdef FE_CAN_8VSB
PRINT_CAPS( CAN_8VSB ); PRINT_CAPS( CAN_8VSB );
PRINT_CAPS( CAN_16VSB ); PRINT_CAPS( CAN_16VSB );
#endif
#if DVB_API_VERSION >= 5 #if DVB_API_VERSION >= 5
PRINT_CAPS( HAS_EXTENDED_CAPS ); PRINT_CAPS( HAS_EXTENDED_CAPS );
/* FIXME: apparently this doesn't exist in some versions of the #ifdef FE_CAN_2G_MODULATION
* linux-dvb headers */ PRINT_CAPS( CAN_2G_MODULATION );
/* PRINT_CAPS( CAN_2G_MODULATION ); */ #endif
#endif #endif
#ifdef FE_NEEDS_BENDING
PRINT_CAPS( NEEDS_BENDING ); PRINT_CAPS( NEEDS_BENDING );
#endif
PRINT_CAPS( CAN_MUTE_TS ); PRINT_CAPS( CAN_MUTE_TS );
#ifdef FE_CAN_RECOVER
PRINT_CAPS( CAN_RECOVER ); PRINT_CAPS( CAN_RECOVER );
#endif
#undef PRINT_CAPS #undef PRINT_CAPS
printf("\nstatus:\n"); printf("\nstatus:\n");
......
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