aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiunn Chang <c0d1n61at3@gmail.com>2019-10-13 23:17:17 -0500
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-22 11:04:50 +0200
commit4fc6eeb052dac7c75ad563afb958639562dbddf5 (patch)
treeeb9534524133fd40c4cac525b4a130e64e9397b0
parent718fcc92dd420e2e316507476c3ddd48af7c3421 (diff)
cec-follower: create digital ATSC channels
This table will allow proper testing of digital tuner control features. There are three channels per TSID/program number combination along with channel data for the following digital ATSC broadcast systems: - ATSC-SAT - ATSC-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.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/utils/cec-follower/cec-tuner.cpp b/utils/cec-follower/cec-tuner.cpp
index e9ec9be9..e3ffc04e 100644
--- a/utils/cec-follower/cec-tuner.cpp
+++ b/utils/cec-follower/cec-tuner.cpp
@@ -58,6 +58,45 @@ static const struct service_info digital_arib_data[2][NUM_DIGITAL_CHANS] =
};
/*
+ * This table contains the digital television channels for ATSC. 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 atsc-sat is from:
+ *
+ * https://sichbopvr.com/frequency-tables/28-50E
+ *
+ * No public data was found for atsc-sat so data is just copied.
+ *
+ * Digital channel data for atsc-t is from:
+ *
+ * https://sichbopvr.com/frequency-tables/United%20States/Illinois/Caseyville
+ *
+ * ATSC does not use ONIDs and SID will be used as the program number. All ATSC
+ * channel number formats are 2 part.
+ */
+static const struct service_info digital_atsc_data[2][NUM_DIGITAL_CHANS] =
+{
+ // satellite, atsc-sat
+ {
+ // tsid, onid, sid, fmt, major, minor
+ { 2065, 0, 50316, 2, 3, 50316 },
+ { 2090, 0, 50882, 2, 3, 50882 },
+ { 2122, 0, 55295, 2, 3, 55295 }
+ },
+ // terrestrial, atsc-t
+ {
+ // tsid, onid, sid, fmt, major, minor
+ { 1675, 0, 1, 2, 4, 1 },
+ { 1675, 0, 2, 2, 4, 2 },
+ { 1675, 0, 3, 2, 4, 3 }
+ }
+};
+
+/*
* 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