diff options
author | Antti Palosaari <crope@iki.fi> | 2012-01-15 13:08:30 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-16 09:47:32 -0500 |
commit | d04ca8df70f0e1c3fe6ee2aeb1114b03a3a3de88 (patch) | |
tree | 5964d306fc6f3d8cf11963e305f29a49f0186786 /drivers/media | |
parent | faf27976a745ac126943a500c48b30c0dd1082d3 (diff) |
[media] cxd2820r: do not switch to DVB-T when DVB-C fails
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/cxd2820r_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/cxd2820r_core.c b/drivers/media/dvb/frontends/cxd2820r_core.c index 93e1b12e7907..b789a907c3a2 100644 --- a/drivers/media/dvb/frontends/cxd2820r_core.c +++ b/drivers/media/dvb/frontends/cxd2820r_core.c | |||
@@ -476,10 +476,10 @@ static enum dvbfe_search cxd2820r_search(struct dvb_frontend *fe) | |||
476 | dbg("%s: delsys=%d", __func__, fe->dtv_property_cache.delivery_system); | 476 | dbg("%s: delsys=%d", __func__, fe->dtv_property_cache.delivery_system); |
477 | 477 | ||
478 | /* switch between DVB-T and DVB-T2 when tune fails */ | 478 | /* switch between DVB-T and DVB-T2 when tune fails */ |
479 | if (priv->last_tune_failed && (priv->delivery_system != SYS_DVBC_ANNEX_A)) { | 479 | if (priv->last_tune_failed) { |
480 | if (priv->delivery_system == SYS_DVBT) | 480 | if (priv->delivery_system == SYS_DVBT) |
481 | c->delivery_system = SYS_DVBT2; | 481 | c->delivery_system = SYS_DVBT2; |
482 | else | 482 | else if (priv->delivery_system == SYS_DVBT2) |
483 | c->delivery_system = SYS_DVBT; | 483 | c->delivery_system = SYS_DVBT; |
484 | } | 484 | } |
485 | 485 | ||