aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/qt1010.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-08-21 08:08:20 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-15 08:19:25 -0400
commit7f12088798b671626b46ba77abee763d6348f146 (patch)
tree1ef009b42adf06d7e24fe6664e9c3d5b063ec3d8 /drivers/media/tuners/qt1010.c
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/qt1010.c')
-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 bdc39e11030e..74e7d4cc68c1 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)
395 if ((err = qt1010_init_meas2(priv, i, &tmpval))) 395 if ((err = qt1010_init_meas2(priv, i, &tmpval)))
396 return err; 396 return err;
397 397
398 c->frequency = 545000000; /* Sigmatek DVB-110 545000000 */ 398 if (!c->frequency)
399 c->frequency = 545000000; /* Sigmatek DVB-110 545000000 */
399 /* MSI Megasky 580 GL861 533000000 */ 400 /* MSI Megasky 580 GL861 533000000 */
400 return qt1010_set_params(fe); 401 return qt1010_set_params(fe);
401} 402}