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

DVB: list possible modulations

parent 6635e480
...@@ -140,7 +140,12 @@ static const char *const voltages_text[] = { N_("off"), N_("13 V"), N_("18 V") } ...@@ -140,7 +140,12 @@ static const char *const voltages_text[] = { N_("off"), N_("13 V"), N_("18 V") }
/* Cable */ /* Cable */
#define MODULATION_TEXT N_("Modulation type") #define MODULATION_TEXT N_("Modulation type")
#define MODULATION_LONGTEXT N_("Modulation type for front-end device.") #define MODULATION_LONGTEXT ""
static const int modulations[] = {
-1, 0, 8, 16, 32, 64, 128, 256 };
static const char *const modulations_text[] = {
N_("QPSK"), N_("Auto (QAM)"), N_("VSB 8"), N_("QAM 16"), N_("QAM 32"),
N_("QAM 64"), N_("QAM 128"), N_("QAM 256") };
/* Terrestrial */ /* Terrestrial */
#define CODE_RATE_HP_TEXT N_("Terrestrial high priority stream code rate (FEC)") #define CODE_RATE_HP_TEXT N_("Terrestrial high priority stream code rate (FEC)")
...@@ -240,6 +245,7 @@ vlc_module_begin () ...@@ -240,6 +245,7 @@ vlc_module_begin ()
/* DVB-C (cable) */ /* DVB-C (cable) */
add_integer( "dvb-modulation", 0, MODULATION_TEXT, add_integer( "dvb-modulation", 0, MODULATION_TEXT,
MODULATION_LONGTEXT, true ) MODULATION_LONGTEXT, true )
change_integer_list( modulations, modulations_text )
/* DVB-T (terrestrial) */ /* DVB-T (terrestrial) */
add_integer( "dvb-code-rate-hp", 9, CODE_RATE_HP_TEXT, add_integer( "dvb-code-rate-hp", 9, CODE_RATE_HP_TEXT,
CODE_RATE_HP_LONGTEXT, true ) CODE_RATE_HP_LONGTEXT, true )
......
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