summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/cx24123.c
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2006-08-05 21:45:09 +0400
committerManu Abraham <manu@linuxtv.org>2006-08-05 21:45:09 +0400
commit40e29f924513808abb74e54c5081a54626dbb765 (patch)
tree416c98614888f9e14d2769571c015d980449f14b /linux/drivers/media/dvb/frontends/cx24123.c
parent26d71512979ece5ef924bafd8507d41d6575cc33 (diff)
downloadmediapointer-dvb-s2-40e29f924513808abb74e54c5081a54626dbb765.tar.gz
mediapointer-dvb-s2-40e29f924513808abb74e54c5081a54626dbb765.tar.bz2
Soft decision threshold
Set the Soft decision threshold properly for the specified FEC From: Yeasah Pell <yeasah@schwide.com> Signed-off-by: Yeasah Pell <yeasah@schwide.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/cx24123.c')
-rw-r--r--linux/drivers/media/dvb/frontends/cx24123.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24123.c b/linux/drivers/media/dvb/frontends/cx24123.c
index cdec0857a..176556fba 100644
--- a/linux/drivers/media/dvb/frontends/cx24123.c
+++ b/linux/drivers/media/dvb/frontends/cx24123.c
@@ -332,6 +332,12 @@ static int cx24123_set_fec(struct cx24123_state* state, fe_code_rate_t fec)
if ( (fec < FEC_NONE) || (fec > FEC_AUTO) )
fec = FEC_AUTO;
+ /* Set the soft decision threshold */
+ if(fec == FEC_1_2)
+ cx24123_writereg(state, 0x43, cx24123_readreg(state, 0x43) | 0x01);
+ else
+ cx24123_writereg(state, 0x43, cx24123_readreg(state, 0x43) & ~0x01);
+
switch (fec) {
case FEC_1_2:
dprintk("%s: set FEC to 1/2\n",__FUNCTION__);