From: Antti Palosaari Date: Tue, 21 Aug 2012 12:08:20 +0000 (-0300) Subject: [media] qt1010: do not change frequency during init X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f12088798b671626b46ba77abee763d6348f146;p=linux-beck.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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); }