diff options
author | Yeasah Pell <yeasah@schwide.com> | 2006-08-08 14:48:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 10:53:37 -0400 |
commit | d12a9b911c793ab5b6b02379880efd6fa3499575 (patch) | |
tree | db64aeddc0248527994454f46f86005efbea7005 /drivers/media/dvb/frontends/cx24123.c | |
parent | bbdd11fa957913d6648cabbca59be1da479180ed (diff) |
V4L/DVB (4433): Soft decision threshold
Set the Soft decision threshold properly for the specified FEC
Signed-off-by: Yeasah Pell <yeasah@schwide.com>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/cx24123.c')
-rw-r--r-- | drivers/media/dvb/frontends/cx24123.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/cx24123.c b/drivers/media/dvb/frontends/cx24123.c index 274a87b7a5d5..3acd0d7f0b2c 100644 --- a/drivers/media/dvb/frontends/cx24123.c +++ b/drivers/media/dvb/frontends/cx24123.c | |||
@@ -321,6 +321,12 @@ static int cx24123_set_fec(struct cx24123_state* state, fe_code_rate_t fec) | |||
321 | if ( (fec < FEC_NONE) || (fec > FEC_AUTO) ) | 321 | if ( (fec < FEC_NONE) || (fec > FEC_AUTO) ) |
322 | fec = FEC_AUTO; | 322 | fec = FEC_AUTO; |
323 | 323 | ||
324 | /* Set the soft decision threshold */ | ||
325 | if(fec == FEC_1_2) | ||
326 | cx24123_writereg(state, 0x43, cx24123_readreg(state, 0x43) | 0x01); | ||
327 | else | ||
328 | cx24123_writereg(state, 0x43, cx24123_readreg(state, 0x43) & ~0x01); | ||
329 | |||
324 | switch (fec) { | 330 | switch (fec) { |
325 | case FEC_1_2: | 331 | case FEC_1_2: |
326 | dprintk("%s: set FEC to 1/2\n",__FUNCTION__); | 332 | dprintk("%s: set FEC to 1/2\n",__FUNCTION__); |