Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76457
b: refs/heads/master
c: 45819c3
h: refs/heads/master
i:
  76455: 219d5e3
v: v3
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 1776ddb commit 429bcaf
Show file tree
Hide file tree
Showing 2 changed files with 24 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: 8bf799a6217f6336fb95f37bf1b130003404bd7b
refs/heads/master: 45819c381fc4fb342dc091f30eef4b56193e34d5
23 changes: 23 additions & 0 deletions trunk/drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,28 @@ static int xc2028_set_params(struct dvb_frontend *fe,

}

static int xc2028_sleep(struct dvb_frontend *fe)
{
struct xc2028_data *priv = fe->tuner_priv;
int rc = 0;

tuner_dbg("%s called\n", __FUNCTION__);

mutex_lock(&priv->lock);

if (priv->firm_version < 0x0202)
rc = send_seq(priv, {0x00, 0x08, 0x00, 0x00});
else
rc = send_seq(priv, {0x80, 0x08, 0x00, 0x00});

priv->cur_fw.type = 0; /* need firmware reload */

mutex_unlock(&priv->lock);

return rc;
}


static int xc2028_dvb_release(struct dvb_frontend *fe)
{
struct xc2028_data *priv = fe->tuner_priv;
Expand Down Expand Up @@ -1009,6 +1031,7 @@ static const struct dvb_tuner_ops xc2028_dvb_tuner_ops = {
.get_frequency = xc2028_get_frequency,
.get_rf_strength = xc2028_signal,
.set_params = xc2028_set_params,
.sleep = xc2028_sleep,

};

Expand Down

0 comments on commit 429bcaf

Please sign in to comment.