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

dtv: fix build with Linux DVB versions <= 5.8 (fixes #14156)

(cherry picked from commit f4604778e41b385e464ce17c4c64488b40aa61da)
parent 00a6c780
......@@ -899,11 +899,24 @@ int dvb_set_dvbs2 (dvb_device_t *d, uint64_t freq_Hz, const char *modstr,
if (dvb_find_frontend (d, DVB_S2))
return -1;
#if DVBv5(8)
return dvb_set_props (d, 9, DTV_CLEAR, 0, DTV_DELIVERY_SYSTEM, SYS_DVBS2,
DTV_FREQUENCY, freq, DTV_MODULATION, mod,
DTV_SYMBOL_RATE, srate, DTV_INNER_FEC, fec,
DTV_PILOT, pilot, DTV_ROLLOFF, rolloff,
DTV_STREAM_ID, (uint32_t)sid);
#else
# warning DVB-S2 needs Linux DVB version 5.8 or later.
if (sid != 0)
{
msg_Err (d->obj, "DVB-S2 stream ID support not compiled-in");
return -1;
}
return dvb_set_props (d, 8, DTV_CLEAR, 0, DTV_DELIVERY_SYSTEM, SYS_DVBS2,
DTV_FREQUENCY, freq, DTV_MODULATION, mod,
DTV_SYMBOL_RATE, srate, DTV_INNER_FEC, fec,
DTV_PILOT, pilot, DTV_ROLLOFF, rolloff);
#endif
}
......
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