]> Pileus Git - ~andy/linux/commitdiff
V4L/DVB (4433): Soft decision threshold
authorYeasah Pell <yeasah@schwide.com>
Tue, 8 Aug 2006 18:48:08 +0000 (15:48 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 26 Sep 2006 14:53:37 +0000 (11:53 -0300)
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>
drivers/media/dvb/frontends/cx24123.c

index 274a87b7a5d5fe8e54acf887aaeaa155bd82def1..3acd0d7f0b2c0644e97af5be858a5e4ab6883708 100644 (file)
@@ -321,6 +321,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__);