set modulation type if parameter given by client

This commit is contained in:
Ralph Metzler 2018-09-26 13:17:04 +02:00
parent ca2e8601c9
commit 27f864b577
1 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,8 @@ static int set_fe_input(struct dvbfe *fe, uint32_t fr,
if (fe->set & (1UL << PARAM_PLS))
set_property(fd, DTV_SCRAMBLING_SEQUENCE_INDEX,
fe->param[PARAM_PLS]);
if (fe->set & (1UL << PARAM_MTYPE))
set_property(fd, DTV_MODULATION, fe->param[PARAM_MTYPE] - 1);
set_property(fd, DTV_TUNE, 0);
return 0;
}