summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2004-08-30 19:11:03 +0000
committerJohannes Stezenbach <devnull@localhost>2004-08-30 19:11:03 +0000
commit14a116cbf9a2d2e488cf781cd0deffb5253f55f4 (patch)
tree5c43a8531cb72cec7ea44cee4f079a8b2c3410c6 /linux/drivers
parent539dbac207d7457c8eec1ebb369c18b982ed7cdd (diff)
downloadmediapointer-dvb-s2-14a116cbf9a2d2e488cf781cd0deffb5253f55f4.tar.gz
mediapointer-dvb-s2-14a116cbf9a2d2e488cf781cd0deffb5253f55f4.tar.bz2
without hierachical coding code_rate_LP is irrelevant,
so we tolerate the otherwise invalid FEC_NONE setting
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_frontend.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
index 3929e90c8..d2b4b9f80 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -763,6 +763,13 @@ static int dvb_frontend_ioctl (struct inode *inode, struct file *file,
fe->parameters.inversion = INVERSION_AUTO;
fetunesettings.parameters.inversion = INVERSION_AUTO;
}
+ if (fe->info->type == FE_OFDM) {
+ /* without hierachical coding code_rate_LP is irrelevant,
+ * so we tolerate the otherwise invalid FEC_NONE setting */
+ if (fe->parameters.u.ofdm.hierarchy_information == HIERARCHY_NONE &&
+ fe->parameters.u.ofdm.code_rate_LP == FEC_NONE)
+ fe->parameters.u.ofdm.code_rate_LP = FEC_AUTO;
+ }
/* get frontend-specific tuning settings */
if (dvb_frontend_internal_ioctl(&fe->frontend, FE_GET_TUNE_SETTINGS,