[vlc-commits] DTV: Linux DVB-T2 support (if'd out)
Rémi Denis-Courmont
git at videolan.org
Wed May 11 18:54:37 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 11 19:40:18 2011 +0300| [d1627ea8f8b7c21ffbe165b47514f51d00d0fdd3] | committer: Rémi Denis-Courmont
DTV: Linux DVB-T2 support (if'd out)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1627ea8f8b7c21ffbe165b47514f51d00d0fdd3
---
modules/access/dtv/linux.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 7f81989..57dc69e 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -776,6 +776,30 @@ int dvb_set_dvbt (dvb_device_t *d, uint32_t freq, const char *modstr,
DTV_HIERARCHY, hierarchy);
}
+int dvb_set_dvbt2 (dvb_device_t *d, uint32_t freq, const char *modstr,
+ uint32_t fec, uint32_t bandwidth,
+ int transmit_mode, uint32_t guard)
+{
+#if 0
+ uint32_t mod = dvb_parse_modulation (modstr, QAM_AUTO);
+ fec = dvb_parse_fec (fec);
+ bandwidth *= 1000000;
+ transmit_mode = dvb_parse_transmit_mode (transmit_mode);
+ guard = dvb_parse_guard (guard);
+
+ return dvb_set_props (d, 8, DTV_CLEAR, 0, DTV_DELIVERY_SYSTEM, SYS_DVBT2,
+ DTV_FREQUENCY, freq * 1000, DTV_MODULATION, mod,
+ DTV_INNER_FEC, fec, DTV_BANDWIDTH_HZ, bandwidth,
+ DTV_TRANSMISSION_MODE, transmit_mode,
+ DTV_GUARD_INTERVAL, guard);
+#else
+ msg_Err (d->obj, "DVB-T2 support not compiled-in");
+ (void) freq; (void) modstr; (void) fec; (void) bandwidth;
+ (void) transmit_mode; (void) guard;
+ return -1;
+#endif
+}
+
/*** ATSC ***/
int dvb_set_atsc (dvb_device_t *d, uint32_t freq, const char *modstr)
More information about the vlc-commits
mailing list