Commit db7f59de authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix bug for DVB-T tuning. The code always used default upper and lower...

Fix bug for DVB-T tuning. The code always used default upper and lower frequencies from DVB-S for DVB-T, but for DVB-T they could very well be different. Now using --lnb-lof1, --lnb-lof2 and --lnb-slof values are used by default instead. This make it overrideable on the commandline.
parent 155d24a8
......@@ -162,8 +162,12 @@ int E_(Open) ( vlc_object_t *p_this )
else if (strncmp( p_input->psz_access, "terrestrial",11) ==0)
frontend_info.type = FE_OFDM;
frontend_info.frequency_max = 12999000; /* KHz */
frontend_info.frequency_min = 9750000;
// frontend_info.frequency_max = 12999000; /* in KHz, lnb_lof2 */
// frontend_info.frequency_min = 9750000; /* lnb_lof1 */
frontend_info.frequency_max = u_lnb_lof2; /* in KHz, lnb_lof2 */
frontend_info.frequency_min = u_lnb_lof1; /* lnb_lof1 */
frontend_info.symbol_rate_max = 30000000;
frontend_info.symbol_rate_min = 1000000;
}
......
......@@ -109,7 +109,7 @@ vlc_module_begin();
add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, VLC_FALSE );
add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_FALSE );
add_integer( "lnb-lof1", 9750000, NULL, LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_FALSE );
add_integer( "lnb-lof2", 10600000, NULL, LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_FALSE );
add_integer( "lnb-lof2", 12999000, NULL, LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_FALSE );
add_integer( "lnb-slof", 11700000, NULL, LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_FALSE );
add_bool( "probe", 0, NULL, PROBE_TEXT, PROBE_LONGTEXT, VLC_FALSE );
add_integer( "code-rate-hp", 9, NULL, CODE_RATE_HP_TEXT, CODE_RATE_HP_LONGTEXT, VLC_FALSE );
......
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