]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] cxd2820r: do not switch to DVB-T when DVB-C fails
authorAntti Palosaari <crope@iki.fi>
Sun, 15 Jan 2012 18:08:30 +0000 (15:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 16 Jan 2012 14:47:32 +0000 (12:47 -0200)
Fix another bug introduced by recent multi-frontend to single-frontend
change.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/cxd2820r_core.c

index 93e1b12e79077ddc851ffd5fd85c8240c795eed7..b789a907c3a29156a48cb8df5b137ad4fb6ee337 100644 (file)
@@ -476,10 +476,10 @@ static enum dvbfe_search cxd2820r_search(struct dvb_frontend *fe)
        dbg("%s: delsys=%d", __func__, fe->dtv_property_cache.delivery_system);
 
        /* switch between DVB-T and DVB-T2 when tune fails */
-       if (priv->last_tune_failed && (priv->delivery_system != SYS_DVBC_ANNEX_A)) {
+       if (priv->last_tune_failed) {
                if (priv->delivery_system == SYS_DVBT)
                        c->delivery_system = SYS_DVBT2;
-               else
+               else if (priv->delivery_system == SYS_DVBT2)
                        c->delivery_system = SYS_DVBT;
        }