aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/tuner-core.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index e6855a46f433..e6b63e9c0b34 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1121,9 +1121,13 @@ static int tuner_log_status(struct v4l2_subdev *sd)
1121static int tuner_suspend(struct i2c_client *c, pm_message_t state) 1121static int tuner_suspend(struct i2c_client *c, pm_message_t state)
1122{ 1122{
1123 struct tuner *t = to_tuner(i2c_get_clientdata(c)); 1123 struct tuner *t = to_tuner(i2c_get_clientdata(c));
1124 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops;
1124 1125
1125 tuner_dbg("suspend\n"); 1126 tuner_dbg("suspend\n");
1126 /* FIXME: power down ??? */ 1127
1128 if (!t->standby && analog_ops->standby)
1129 analog_ops->standby(&t->fe);
1130
1127 return 0; 1131 return 0;
1128} 1132}
1129 1133
@@ -1132,10 +1136,10 @@ static int tuner_resume(struct i2c_client *c)
1132 struct tuner *t = to_tuner(i2c_get_clientdata(c)); 1136 struct tuner *t = to_tuner(i2c_get_clientdata(c));
1133 1137
1134 tuner_dbg("resume\n"); 1138 tuner_dbg("resume\n");
1135 if (V4L2_TUNER_RADIO == t->mode) 1139
1136 set_freq(c, t->radio_freq); 1140 if (!t->standby)
1137 else 1141 set_mode_freq(c, t, t->type, 0);
1138 set_freq(c, t->tv_freq); 1142
1139 return 0; 1143 return 0;
1140} 1144}
1141 1145