mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
dvbsrc: Add support for DVB-T/DVB-C with DVB API 3.3
This commit is contained in:
parent
a95d960527
commit
016c9797b7
1 changed files with 13 additions and 0 deletions
|
@ -1287,6 +1287,9 @@ gst_dvbsrc_tune (GstDvbSrc * object)
|
|||
|
||||
feparams.frequency = freq;
|
||||
#if DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR == 3
|
||||
feparams.delsys.dvbs.fec = object->code_rate_hp;
|
||||
feparams.delsys.dvbs.modulation = object->modulation;
|
||||
feparams.delsys.dvbs.symbol_rate = sym_rate;
|
||||
#else
|
||||
feparams.u.ofdm.bandwidth = object->bandwidth;
|
||||
feparams.u.ofdm.code_rate_HP = object->code_rate_hp;
|
||||
|
@ -1305,14 +1308,24 @@ gst_dvbsrc_tune (GstDvbSrc * object)
|
|||
sym_rate);
|
||||
feparams.frequency = freq;
|
||||
feparams.inversion = object->inversion;
|
||||
#if DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR == 3
|
||||
feparams.delsys.dvbs.fec = object->code_rate_hp;
|
||||
feparams.delsys.dvbs.modulation = object->modulation;
|
||||
feparams.delsys.dvbs.symbol_rate = sym_rate;
|
||||
#else
|
||||
feparams.u.qam.fec_inner = object->code_rate_hp;
|
||||
feparams.u.qam.modulation = object->modulation;
|
||||
feparams.u.qam.symbol_rate = sym_rate;
|
||||
#endif
|
||||
break;
|
||||
case FE_ATSC:
|
||||
GST_INFO_OBJECT (object, "Tuning ATSC to %d", freq);
|
||||
feparams.frequency = freq;
|
||||
#if DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR == 3
|
||||
feparams.delsys.atsc.modulation = object->modulation;
|
||||
#else
|
||||
feparams.u.vsb.modulation = object->modulation;
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
g_error ("Unknown frontend type: %d", object->adapter_type);
|
||||
|
|
Loading…
Reference in a new issue