From 04d04033e66934b9799d52c80515908e29daa2dc Mon Sep 17 00:00:00 2001 From: rim Date: Fri, 15 Dec 2017 15:37:30 +0300 Subject: dvb: Add multiple frontends support: MAX_FRONTENDS now 8. --- stream/dvbin.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'stream/dvbin.h') diff --git a/stream/dvbin.h b/stream/dvbin.h index 284ccbd450..01a70588a5 100644 --- a/stream/dvbin.h +++ b/stream/dvbin.h @@ -26,6 +26,9 @@ #include #include +#define MAX_ADAPTERS 16 +#define MAX_FRONTENDS 8 + #undef DVB_ATSC #if defined(DVB_API_VERSION_MINOR) @@ -69,7 +72,8 @@ typedef struct { unsigned int freq, srate, diseqc; char pol; unsigned int tpid, dpid1, dpid2, progid, ca, pids[DMX_FILTER_SIZE], pids_cnt; - bool is_dvb_x2; + bool is_dvb_x2; /* Used only in dvb_get_channels() and parse_vdr_par_string(), use delsys. */ + unsigned int frontend; unsigned int delsys; unsigned int stream_id; unsigned int service_id; @@ -90,7 +94,7 @@ typedef struct { typedef struct { int devno; - unsigned int delsys_mask; + unsigned int delsys_mask[MAX_FRONTENDS]; dvb_channels_list_t *list; } dvb_adapter_config_t; @@ -98,6 +102,7 @@ typedef struct { unsigned int adapters_count; dvb_adapter_config_t *adapters; unsigned int cur_adapter; + unsigned int cur_frontend; int fe_fd; int dvr_fd; -- cgit v1.2.3