Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242057
b: refs/heads/master
c: 78db66e
h: refs/heads/master
i:
  242055: f30cad9
v: v3
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent 78c747c commit b9b84a0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01a475df3d178d9ace345cc81173537970cf93e2
refs/heads/master: 78db66e5b2b4ef48eeede17a7159cb0622c7f03d
20 changes: 19 additions & 1 deletion trunk/drivers/media/dvb/frontends/stv0367.c
Original file line number Diff line number Diff line change
Expand Up @@ -3367,6 +3367,24 @@ static int stv0367cab_read_snr(struct dvb_frontend *fe, u16 *snr)
return 0;
}

static int stv0367cab_read_ucblcks(struct dvb_frontend *fe, u32 *ucblocks)
{
struct stv0367_state *state = fe->demodulator_priv;
int corrected, tscount;

*ucblocks = (stv0367_readreg(state, R367CAB_RS_COUNTER_5) << 8)
| stv0367_readreg(state, R367CAB_RS_COUNTER_4);
corrected = (stv0367_readreg(state, R367CAB_RS_COUNTER_3) << 8)
| stv0367_readreg(state, R367CAB_RS_COUNTER_2);
tscount = (stv0367_readreg(state, R367CAB_RS_COUNTER_2) << 8)
| stv0367_readreg(state, R367CAB_RS_COUNTER_1);

dprintk("%s: uncorrected blocks=%d corrected blocks=%d tscount=%d\n",
__func__, *ucblocks, corrected, tscount);

return 0;
};

static struct dvb_frontend_ops stv0367cab_ops = {
.info = {
.name = "ST STV0367 DVB-C",
Expand All @@ -3391,7 +3409,7 @@ static struct dvb_frontend_ops stv0367cab_ops = {
/* .read_ber = stv0367cab_read_ber, */
.read_signal_strength = stv0367cab_read_strength,
.read_snr = stv0367cab_read_snr,
/* .read_ucblocks = stv0367cab_read_ucblcks,*/
.read_ucblocks = stv0367cab_read_ucblcks,
.get_tune_settings = stv0367_get_tune_settings,
};

Expand Down

0 comments on commit b9b84a0

Please sign in to comment.