Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306529
b: refs/heads/master
c: 525ffc1
h: refs/heads/master
i:
  306527: b0539f4
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed May 20, 2012
1 parent 2b5184a commit 0c98363
Show file tree
Hide file tree
Showing 2 changed files with 14 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: eba672a045d8fbf62b229eac74ef444b6000c4c2
refs/heads/master: 525ffc19b992f5d6a25413c36ba543a82585ed89
14 changes: 13 additions & 1 deletion trunk/drivers/media/dvb/frontends/rtl2830.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,20 @@ static int rtl2830_read_snr(struct dvb_frontend *fe, u16 *snr)

static int rtl2830_read_ber(struct dvb_frontend *fe, u32 *ber)
{
*ber = 0;
struct rtl2830_priv *priv = fe->demodulator_priv;
int ret;
u8 buf[2];

ret = rtl2830_rd_regs(priv, 0x34e, buf, 2);
if (ret)
goto err;

*ber = buf[0] << 8 | buf[1];

return 0;
err:
dbg("%s: failed=%d", __func__, ret);
return ret;
}

static int rtl2830_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
Expand Down

0 comments on commit 0c98363

Please sign in to comment.