Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306532
b: refs/heads/master
c: c188637
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed May 20, 2012
1 parent c102fa3 commit 96e06d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 631a2b611288f87de4ef1098d1fb4bc4d246b103
refs/heads/master: c188637dc5a25aec6a21279524405c8fe96f2f4b
12 changes: 12 additions & 0 deletions trunk/drivers/media/dvb/frontends/rtl2830.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ static int rtl2830_get_frontend(struct dvb_frontend *fe)
int ret;
u8 buf[3];

if (priv->sleeping)
return 0;

ret = rtl2830_rd_regs(priv, 0x33c, buf, 2);
if (ret)
goto err;
Expand Down Expand Up @@ -525,6 +528,9 @@ static int rtl2830_read_snr(struct dvb_frontend *fe, u16 *snr)
{ 92888734, 92888734, 95487525, 99770748 },
};

if (priv->sleeping)
return 0;

/* reports SNR in resolution of 0.1 dB */

ret = rtl2830_rd_reg(priv, 0x33c, &tmp);
Expand Down Expand Up @@ -563,6 +569,9 @@ static int rtl2830_read_ber(struct dvb_frontend *fe, u32 *ber)
int ret;
u8 buf[2];

if (priv->sleeping)
return 0;

ret = rtl2830_rd_regs(priv, 0x34e, buf, 2);
if (ret)
goto err;
Expand All @@ -588,6 +597,9 @@ static int rtl2830_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
u8 buf[2];
u16 if_agc_raw, if_agc;

if (priv->sleeping)
return 0;

ret = rtl2830_rd_regs(priv, 0x359, buf, 2);
if (ret)
goto err;
Expand Down

0 comments on commit 96e06d1

Please sign in to comment.