]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
[media] dvb: replace SYS_DVBC_ANNEX_AC by the right delsys
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 22 Dec 2011 21:11:39 +0000 (18:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 31 Dec 2011 10:26:24 +0000 (08:26 -0200)
SYS_DVBC_ANNEX_AC is an alias for SYS_DVBC_ANNEX_A. However,
the first one is incorrect, as not all devices support both.
So, replace its occurrences by the proper value (either
SYS_DVBC_ANNEX_A or both SYS_DVBC_ANNEX_A and SYS_DVBC_ANNEX_C).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18212.c
drivers/media/dvb/dvb-core/dvb_frontend.c
drivers/media/dvb/frontends/cxd2820r_c.c

index f52282e6c8bb7195ba1879dee833821e41f15a71..a58c74f107a431e490b863a4a0eb8ae64ca848fe 100644 (file)
@@ -203,7 +203,8 @@ static int tda18212_set_params(struct dvb_frontend *fe,
                        goto error;
                }
                break;
-       case SYS_DVBC_ANNEX_AC:
+       case SYS_DVBC_ANNEX_A:
+       case SYS_DVBC_ANNEX_C:
                if_khz = priv->cfg->if_dvbc;
                i = DVBC_8;
                break;
index 3ff37cfde6aba6ace902d99d5581663adec8447b..2e4bddec9b32ee80f74ea1d55f7ac667dffb082a 100644 (file)
@@ -1242,7 +1242,7 @@ static void dtv_set_default_delivery_caps(const struct dvb_frontend *fe, struct
                        p->u.buffer.data[ncaps++] = SYS_TURBO;
                break;
        case FE_QAM:
-               p->u.buffer.data[ncaps++] = SYS_DVBC_ANNEX_AC;
+               p->u.buffer.data[ncaps++] = SYS_DVBC_ANNEX_A;
                break;
        case FE_OFDM:
                p->u.buffer.data[ncaps++] = SYS_DVBT;
index 9847d35110175c75c5c41c33575a2d2bfa78eabd..bc13db4ef224c6961ef84184c5761d955189f443 100644 (file)
@@ -59,7 +59,7 @@ int cxd2820r_set_frontend_c(struct dvb_frontend *fe,
        if (fe->ops.tuner_ops.set_params)
                fe->ops.tuner_ops.set_params(fe, params);
 
-       if (priv->delivery_system !=  SYS_DVBC_ANNEX_AC) {
+       if (priv->delivery_system !=  SYS_DVBC_ANNEX_A) {
                for (i = 0; i < ARRAY_SIZE(tab); i++) {
                        ret = cxd2820r_wr_reg_mask(priv, tab[i].reg,
                                tab[i].val, tab[i].mask);
@@ -68,7 +68,7 @@ int cxd2820r_set_frontend_c(struct dvb_frontend *fe,
                }
        }
 
-       priv->delivery_system = SYS_DVBC_ANNEX_AC;
+       priv->delivery_system = SYS_DVBC_ANNEX_A;
        priv->ber_running = 0; /* tune stops BER counter */
 
        /* program IF frequency */