Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367147
b: refs/heads/master
c: dfdeac8
h: refs/heads/master
i:
  367145: 5a4efc9
  367143: d45f69e
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Apr 17, 2013
1 parent b5afe7f commit 8fdb7be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: c8832e8f4293b1c9fce92a92e2506572f5b11775
refs/heads/master: dfdeac8108db5066e1adaf112adbe396ef27f0bc
8 changes: 3 additions & 5 deletions trunk/drivers/media/tuners/r820t.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,8 @@ static int r820t_read_gain(struct r820t_priv *priv)
return ((data[3] & 0x0f) << 1) + ((data[3] & 0xf0) >> 4);
}

#if 0
/* FIXME: This routine requires more testing */
static int r820t_set_gain_mode(struct r820t_priv *priv,
bool set_manual_gain,
int gain)
Expand Down Expand Up @@ -1233,7 +1235,7 @@ static int r820t_set_gain_mode(struct r820t_priv *priv,

return 0;
}

#endif

static int generic_set_freq(struct dvb_frontend *fe,
u32 freq /* in HZ */,
Expand Down Expand Up @@ -1261,10 +1263,6 @@ static int generic_set_freq(struct dvb_frontend *fe,
if (rc < 0)
goto err;

rc = r820t_set_gain_mode(priv, false, 0);
if (rc < 0)
goto err;

rc = r820t_set_pll(priv, type, lo_freq);
if (rc < 0 || !priv->has_lock)
goto err;
Expand Down

0 comments on commit 8fdb7be

Please sign in to comment.