diff options
author | Antti Palosaari <crope@iki.fi> | 2012-08-21 14:08:20 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-15 14:19:25 +0200 |
commit | 7f12088798b671626b46ba77abee763d6348f146 (patch) | |
tree | 1ef009b42adf06d7e24fe6664e9c3d5b063ec3d8 /drivers/media/tuners/qt1010.c | |
parent | [media] uvcvideo: Remove outdated comment (diff) | |
download | linux-7f12088798b671626b46ba77abee763d6348f146.tar.xz linux-7f12088798b671626b46ba77abee763d6348f146.zip |
[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.c | 3 |
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) 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); } |