aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-22 17:12:16 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-22 17:12:16 +0100
commit9bec268a228de20149aaaf36db6893aa914f8a19 (patch)
tree8ba67d55c7ed392cb21bcaf3961c4218d4fc5f70
parent8a4a149a687de3e7c240c471dca14455d1850ea5 (diff)
libdvbv5: fix the quality detection logic
There are some cut-and-paste related issues, which makes the array size to be passed wrong when calling cnr_arr_to_qual(). Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--lib/libdvbv5/dvb-fe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdvbv5/dvb-fe.c b/lib/libdvbv5/dvb-fe.c
index 832b0eed..beda5cd8 100644
--- a/lib/libdvbv5/dvb-fe.c
+++ b/lib/libdvbv5/dvb-fe.c
@@ -1311,7 +1311,7 @@ static enum dvb_quality dvbv_fe_cnr_to_quality(struct dvb_v5_fe_parms_priv *parm
dvb_fe_retrieve_parm(&parms->p, DTV_INNER_FEC, &fec);
qual = cnr_arr_to_qual(modulation, fec, cnr->svalue,
dvb_s2_cnr_2_qual,
- ARRAY_SIZE(dvb_s_cnr_2_qual));
+ ARRAY_SIZE(dvb_s2_cnr_2_qual));
break;
case SYS_ISDBT:
dvb_fe_retrieve_parm(&parms->p, DTV_ISDBT_LAYERA_MODULATION, &modulation);
@@ -1327,7 +1327,7 @@ static enum dvb_quality dvbv_fe_cnr_to_quality(struct dvb_v5_fe_parms_priv *parm
dvb_fe_retrieve_parm(&parms->p, DTV_CODE_RATE_LP, &fec);
qual = cnr_arr_to_qual(modulation, fec, cnr->svalue,
dvb_t_cnr_2_qual,
- ARRAY_SIZE(isdb_t_cnr_2_qual));
+ ARRAY_SIZE(dvb_t_cnr_2_qual));
break;
case SYS_DVBT2:
case SYS_TURBO:

Privacy Policy