Commit 001cbdee authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

DTV: small DVB-C fixes

parent cf2dd978
...@@ -164,10 +164,6 @@ vlc_module_begin () ...@@ -164,10 +164,6 @@ vlc_module_begin ()
add_integer ("dvb-frequency", 0, FREQ_TEXT, FREQ_LONGTEXT, false) add_integer ("dvb-frequency", 0, FREQ_TEXT, FREQ_LONGTEXT, false)
change_integer_range (0, UINT64_C(0xffffffff) * 1000) change_integer_range (0, UINT64_C(0xffffffff) * 1000)
change_safe () change_safe ()
add_string ("dvb-modulation", 0,
MODULATION_TEXT, MODULATION_LONGTEXT, false)
change_string_list (modulation_vlc, modulation_user, NULL)
change_safe ()
add_integer ("dvb-inversion", -1, INVERSION_TEXT, INVERSION_LONGTEXT, true) add_integer ("dvb-inversion", -1, INVERSION_TEXT, INVERSION_LONGTEXT, true)
change_integer_list (inversion_vlc, auto_off_on) change_integer_list (inversion_vlc, auto_off_on)
change_safe () change_safe ()
...@@ -195,7 +191,11 @@ vlc_module_begin () ...@@ -195,7 +191,11 @@ vlc_module_begin ()
change_integer_list (hierarchy_vlc, hierarchy_user) change_integer_list (hierarchy_vlc, hierarchy_user)
change_safe () change_safe ()
set_section (N_("Cable (DVB-C) and satellite (DVB-S) parameters"), NULL) set_section (N_("Cable and satellite parameters"), NULL)
add_string ("dvb-modulation", 0,
MODULATION_TEXT, MODULATION_LONGTEXT, false)
change_string_list (modulation_vlc, modulation_user, NULL)
change_safe ()
add_integer ("dvb-srate", 0, SRATE_TEXT, SRATE_LONGTEXT, false) add_integer ("dvb-srate", 0, SRATE_TEXT, SRATE_LONGTEXT, false)
change_integer_range (0, UINT64_C(0xffffffff)) change_integer_range (0, UINT64_C(0xffffffff))
change_safe () change_safe ()
......
...@@ -528,7 +528,7 @@ int dvb_set_dvbc (dvb_device_t *d, uint32_t freq, const char *modstr, ...@@ -528,7 +528,7 @@ int dvb_set_dvbc (dvb_device_t *d, uint32_t freq, const char *modstr,
unsigned mod = dvb_parse_modulation (modstr, QAM_AUTO); unsigned mod = dvb_parse_modulation (modstr, QAM_AUTO);
unsigned fec = dvb_parse_fec (fecstr); unsigned fec = dvb_parse_fec (fecstr);
return dvb_set_props (d, 5, DTV_CLEAR, 0, return dvb_set_props (d, 6, DTV_CLEAR, 0,
DTV_DELIVERY_SYSTEM, SYS_DVBC_ANNEX_AC, DTV_DELIVERY_SYSTEM, SYS_DVBC_ANNEX_AC,
DTV_FREQUENCY, freq, DTV_MODULATION, mod, DTV_FREQUENCY, freq, DTV_MODULATION, mod,
DTV_SYMBOL_RATE, srate, DTV_INNER_FEC, fec); DTV_SYMBOL_RATE, srate, DTV_INNER_FEC, fec);
......
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