Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241851
b: refs/heads/master
c: e2f63d9
h: refs/heads/master
i:
  241849: a2b59fa
  241847: 7b5a9c9
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 971a5dc commit e566daf
Show file tree
Hide file tree
Showing 2 changed files with 10 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: cbde689823776d187ba1b307a171625dbc02dd4f
refs/heads/master: e2f63d9ba51efe8930bf1c952c66b971047d355d
14 changes: 9 additions & 5 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,9 +1121,13 @@ static int tuner_log_status(struct v4l2_subdev *sd)
static int tuner_suspend(struct i2c_client *c, pm_message_t state)
{
struct tuner *t = to_tuner(i2c_get_clientdata(c));
struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops;

tuner_dbg("suspend\n");
/* FIXME: power down ??? */

if (!t->standby && analog_ops->standby)
analog_ops->standby(&t->fe);

return 0;
}

Expand All @@ -1132,10 +1136,10 @@ static int tuner_resume(struct i2c_client *c)
struct tuner *t = to_tuner(i2c_get_clientdata(c));

tuner_dbg("resume\n");
if (V4L2_TUNER_RADIO == t->mode)
set_freq(c, t->radio_freq);
else
set_freq(c, t->tv_freq);

if (!t->standby)
set_mode_freq(c, t, t->type, 0);

return 0;
}

Expand Down

0 comments on commit e566daf

Please sign in to comment.