Skip to content

Commit

Permalink
[media] qt1010: do not change frequency during init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Sep 15, 2012
1 parent 3851c34 commit 7f12088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/tuners/qt1010.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7f12088

Please sign in to comment.