summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>2008-06-18 16:46:51 +0100
committerSimon Farnsworth <simon.farnsworth@onelan.co.uk>2008-06-18 16:46:51 +0100
commitfd26e45a60a7a7268910046e2f42d0344326f5f0 (patch)
tree7eaa000a481fb253db5dd5a008848de17a85602e
parent0064b8a182a893433876277f74f27b00f0069a47 (diff)
downloadxine-lib-fd26e45a60a7a7268910046e2f42d0344326f5f0.tar.gz
xine-lib-fd26e45a60a7a7268910046e2f42d0344326f5f0.tar.bz2
input_dvb: Allow automatic detection of DVB parameters
We've experienced glitches where the NIT does not match the transmission parameters, and bugs in the kernel where the values we read back from the frontend don't match the transmission. To get round this, we've changed scan to store BANDWIDTH_AUTO and equivalents in the channels.conf file. Update input_dvb to cope with automatic detection of all frontend parameters.
-rw-r--r--src/input/input_dvb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c
index b097e5ee2..ddc1a0702 100644
--- a/src/input/input_dvb.c
+++ b/src/input/input_dvb.c
@@ -373,6 +373,7 @@ static const Param bw_list [] = {
{ "BANDWIDTH_6_MHZ", BANDWIDTH_6_MHZ },
{ "BANDWIDTH_7_MHZ", BANDWIDTH_7_MHZ },
{ "BANDWIDTH_8_MHZ", BANDWIDTH_8_MHZ },
+ { "BANDWIDTH_AUTO", BANDWIDTH_AUTO },
{ NULL, 0 }
};
@@ -395,6 +396,7 @@ static const Param guard_list [] = {
{"GUARD_INTERVAL_1_32", GUARD_INTERVAL_1_32},
{"GUARD_INTERVAL_1_4", GUARD_INTERVAL_1_4},
{"GUARD_INTERVAL_1_8", GUARD_INTERVAL_1_8},
+ {"GUARD_INTERVAL_AUTO", GUARD_INTERVAL_AUTO},
{ NULL, 0 }
};
@@ -403,6 +405,7 @@ static const Param hierarchy_list [] = {
{ "HIERARCHY_2", HIERARCHY_2 },
{ "HIERARCHY_4", HIERARCHY_4 },
{ "HIERARCHY_NONE", HIERARCHY_NONE },
+ { "HIERARCHY_AUTO", HIERARCHY_AUTO },
{ NULL, 0 }
};
@@ -421,12 +424,14 @@ static const Param qam_list [] = {
{ "QAM_256", QAM_256 },
{ "QAM_32", QAM_32 },
{ "QAM_64", QAM_64 },
+ { "QAM_AUTO", QAM_AUTO },
{ NULL, 0 }
};
static const Param transmissionmode_list [] = {
{ "TRANSMISSION_MODE_2K", TRANSMISSION_MODE_2K },
{ "TRANSMISSION_MODE_8K", TRANSMISSION_MODE_8K },
+ { "TRANSMISSION_MODE_AUTO", TRANSMISSION_MODE_AUTO },
{ NULL, 0 }
};