aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-08-21 09:08:20 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-15 09:19:25 -0300
commit7f12088798b671626b46ba77abee763d6348f146 (patch)
tree1ef009b42adf06d7e24fe6664e9c3d5b063ec3d8 /drivers/media/tuners
parent3851c34a835f47b78c6ef7a3fa7dd6d9af9393f9 (diff)
[media] qt1010: do not change frequency during init
Changing cached frequency during init is something no-no. Make it behave a little bit better. After that device could survive from suspend/resume when streaming is ongoing. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/qt1010.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/tuners/qt1010.c b/drivers/media/tuners/qt1010.c
index bdc39e11030..74e7d4cc68c 100644
--- a/drivers/media/tuners/qt1010.c
+++ b/drivers/media/tuners/qt1010.c
@@ -395,7 +395,8 @@ static int qt1010_init(struct dvb_frontend *fe)
if ((err = qt1010_init_meas2(priv, i, &tmpval)))
return err;
- c->frequency = 545000000; /* Sigmatek DVB-110 545000000 */
+ if (!c->frequency)
+ c->frequency = 545000000; /* Sigmatek DVB-110 545000000 */
/* MSI Megasky 580 GL861 533000000 */
return qt1010_set_params(fe);
}