aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiunn Chang <c0d1n61at3@gmail.com>2019-10-13 23:17:18 -0500
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-22 14:48:44 +0200
commit2e133a8fcece4fdc4d9cace9e8cf66aa1861c8ee (patch)
tree173c31074c2c567ed6f99a3bbdd5cdaddae98037
parent8d6f69e1d654ce2d77f4927c0124880ab5e25dad (diff)
cec-follower: create digital DVB channels
This table will allow proper testing of digital tuner control features. There are three channels per TSID/ONID/SID combination along with channel data for the following digital DVB broadcast systems: - DVB-S2 - DVB-T Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> [hverkuil-cisco@xs4all.nl: dropped the middle [1] index] Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-follower/cec-tuner.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/utils/cec-follower/cec-tuner.cpp b/utils/cec-follower/cec-tuner.cpp
index e3ffc04e..991f9194 100644
--- a/utils/cec-follower/cec-tuner.cpp
+++ b/utils/cec-follower/cec-tuner.cpp
@@ -97,6 +97,41 @@ static const struct service_info digital_atsc_data[2][NUM_DIGITAL_CHANS] =
};
/*
+ * This table contains the digital television channels for DVB. There are a
+ * total of three channels that are identified by digital IDs or by channel.
+ *
+ * CEC 17 of the 1.4 specification lists the available digital identification
+ * methods, IDs, and channel data.
+ *
+ * Digital channel data for DVB-S2 is from:
+ *
+ * https://www.satellite-calculations.com/DVB/getchannellist.php?1west/Swedish_Nordig_Channel_List.htm
+ *
+ * Digital channel data for DVB-T is from:
+ *
+ * https://sichbopvr.com/frequency-tables/Denmark/Hovedstaden/Copenhagen
+ * https://sichbopvr.com/frequency-tables/Sweden/Skane%20Lan/Malm%c3%b6
+ *
+ */
+static const struct service_info digital_dvb_data[2][NUM_DIGITAL_CHANS] =
+{
+ // satellite, dvb-s2
+ {
+ // tsid, onid, sid, fmt, major, minor
+ { 61, 70, 7193, 1, 0, 24 },
+ { 65, 70, 7040, 1, 0, 72 },
+ { 28, 70, 7012, 1, 0, 101 }
+ },
+ // terrestrial, dvb-t
+ {
+ // tsid, onid, sid, fmt, major, minor
+ { 1002, 8400, 2025, 1, 0, 21 },
+ { 1004, 8400, 84, 1, 0, 31 },
+ { 1004, 8945, 1040, 1, 0, 1040 }
+ }
+};
+
+/*
* This table contains analog television channel frequencies in KHz. There are
* a total of three frequencies per analog broadcast type and broadcast system.
*

Privacy Policy