Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92709
b: refs/heads/master
c: fb8152c
h: refs/heads/master
i:
  92707: 019d929
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent e159cd3 commit f904df2
Show file tree
Hide file tree
Showing 2 changed files with 19 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: 8973dc4b70c5506596207da3fddab03002357178
refs/heads/master: fb8152cb01dc2bca04a6ee561920d0a02af6c73b
19 changes: 18 additions & 1 deletion trunk/drivers/media/dvb/frontends/au8522.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,28 @@ static int au8522_read_status(struct dvb_frontend *fe, fe_status_t *status)
return 0;
}

static int au8522_read_mse(struct dvb_frontend *fe)
{
struct au8522_state *state = fe->demodulator_priv;
int mse = 0;

if (state->current_modulation == VSB_8)
mse = au8522_readreg(state, 0x4311);
else
mse = au8522_readreg(state, 0x4522);

dprintk("%s: %d\n", __func__, mse);

return mse;
}

static int au8522_read_snr(struct dvb_frontend *fe, u16 *snr)
{
dprintk("%s()\n", __func__);

*snr = 0;
/* FIXME: This is mse, not snr
* TODO: mse2snr */
*snr = au8522_read_mse(fe);

return 0;
}
Expand Down

0 comments on commit f904df2

Please sign in to comment.