aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/media/dvb/dvbproperty.xml18
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c12
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.h4
-rw-r--r--drivers/media/dvb/frontends/lg2160.c9
-rw-r--r--include/linux/dvb/frontend.h5
5 files changed, 9 insertions, 39 deletions
diff --git a/Documentation/DocBook/media/dvb/dvbproperty.xml b/Documentation/DocBook/media/dvb/dvbproperty.xml
index d63153522b60..e633c097a8d1 100644
--- a/Documentation/DocBook/media/dvb/dvbproperty.xml
+++ b/Documentation/DocBook/media/dvb/dvbproperty.xml
@@ -664,21 +664,6 @@ typedef enum atscmh_sccc_code_mode {
664} atscmh_sccc_code_mode_t; 664} atscmh_sccc_code_mode_t;
665</programlisting> 665</programlisting>
666 </section> 666 </section>
667 <section id="DTV-ATSCMH-FIC-ERR">
668 <title><constant>DTV_ATSCMH_FIC_ERR</constant></title>
669 <para>FIC error count.</para>
670 <para>Possible values: 0, 1, 2, 3, ..., 0xffff</para>
671 </section>
672 <section id="DTV-ATSCMH-CRC-ERR">
673 <title><constant>DTV_ATSCMH_CRC_ERR</constant></title>
674 <para>CRC error count.</para>
675 <para>Possible values: 0, 1, 2, 3, ..., 0xffff</para>
676 </section>
677 <section id="DTV-ATSCMH-RS-ERR">
678 <title><constant>DTV_ATSCMH_RS_ERR</constant></title>
679 <para>RS error count.</para>
680 <para>Possible values: 0, 1, 2, 3, ..., 0xffff</para>
681 </section>
682 </section> 667 </section>
683 <section id="DTV-API-VERSION"> 668 <section id="DTV-API-VERSION">
684 <title><constant>DTV_API_VERSION</constant></title> 669 <title><constant>DTV_API_VERSION</constant></title>
@@ -947,9 +932,6 @@ typedef enum fe_hierarchy {
947 <listitem><para><link linkend="DTV-ATSCMH-SCCC-CODE_MODE-B"><constant>DTV_ATSCMH_SCCC_CODE_MODE_B</constant></link></para></listitem> 932 <listitem><para><link linkend="DTV-ATSCMH-SCCC-CODE_MODE-B"><constant>DTV_ATSCMH_SCCC_CODE_MODE_B</constant></link></para></listitem>
948 <listitem><para><link linkend="DTV-ATSCMH-SCCC-CODE_MODE-C"><constant>DTV_ATSCMH_SCCC_CODE_MODE_C</constant></link></para></listitem> 933 <listitem><para><link linkend="DTV-ATSCMH-SCCC-CODE_MODE-C"><constant>DTV_ATSCMH_SCCC_CODE_MODE_C</constant></link></para></listitem>
949 <listitem><para><link linkend="DTV-ATSCMH-SCCC-CODE_MODE-D"><constant>DTV_ATSCMH_SCCC_CODE_MODE_D</constant></link></para></listitem> 934 <listitem><para><link linkend="DTV-ATSCMH-SCCC-CODE_MODE-D"><constant>DTV_ATSCMH_SCCC_CODE_MODE_D</constant></link></para></listitem>
950 <listitem><para><link linkend="DTV-ATSCMH-FIC-ERR"><constant>DTV_ATSCMH_FIC_ERR</constant></link></para></listitem>
951 <listitem><para><link linkend="DTV-ATSCMH-CRC-ERR"><constant>DTV_ATSCMH_CRC_ERR</constant></link></para></listitem>
952 <listitem><para><link linkend="DTV-ATSCMH-RS-ERR"><constant>DTV_ATSCMH_RS_ERR</constant></link></para></listitem>
953 </itemizedlist> 935 </itemizedlist>
954 </section> 936 </section>
955 </section> 937 </section>
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index cd23f303162a..aebcdf221dda 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -1049,9 +1049,6 @@ static struct dtv_cmds_h dtv_cmds[DTV_MAX_COMMAND + 1] = {
1049 _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_B, 0, 0), 1049 _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_B, 0, 0),
1050 _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_C, 0, 0), 1050 _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_C, 0, 0),
1051 _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_D, 0, 0), 1051 _DTV_CMD(DTV_ATSCMH_SCCC_CODE_MODE_D, 0, 0),
1052 _DTV_CMD(DTV_ATSCMH_FIC_ERR, 0, 0),
1053 _DTV_CMD(DTV_ATSCMH_CRC_ERR, 0, 0),
1054 _DTV_CMD(DTV_ATSCMH_RS_ERR, 0, 0),
1055}; 1052};
1056 1053
1057static void dtv_property_dump(struct dtv_property *tvp) 1054static void dtv_property_dump(struct dtv_property *tvp)
@@ -1438,15 +1435,6 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
1438 case DTV_ATSCMH_SCCC_CODE_MODE_D: 1435 case DTV_ATSCMH_SCCC_CODE_MODE_D:
1439 tvp->u.data = fe->dtv_property_cache.atscmh_sccc_code_mode_d; 1436 tvp->u.data = fe->dtv_property_cache.atscmh_sccc_code_mode_d;
1440 break; 1437 break;
1441 case DTV_ATSCMH_FIC_ERR:
1442 tvp->u.data = fe->dtv_property_cache.atscmh_fic_err;
1443 break;
1444 case DTV_ATSCMH_CRC_ERR:
1445 tvp->u.data = fe->dtv_property_cache.atscmh_crc_err;
1446 break;
1447 case DTV_ATSCMH_RS_ERR:
1448 tvp->u.data = fe->dtv_property_cache.atscmh_rs_err;
1449 break;
1450 1438
1451 default: 1439 default:
1452 return -EINVAL; 1440 return -EINVAL;
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h
index 80f5c27ddc9f..e929d5697b87 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.h
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.h
@@ -390,10 +390,6 @@ struct dtv_frontend_properties {
390 u8 atscmh_sccc_code_mode_b; 390 u8 atscmh_sccc_code_mode_b;
391 u8 atscmh_sccc_code_mode_c; 391 u8 atscmh_sccc_code_mode_c;
392 u8 atscmh_sccc_code_mode_d; 392 u8 atscmh_sccc_code_mode_d;
393
394 u16 atscmh_fic_err;
395 u16 atscmh_crc_err;
396 u16 atscmh_rs_err;
397}; 393};
398 394
399struct dvb_frontend { 395struct dvb_frontend {
diff --git a/drivers/media/dvb/frontends/lg2160.c b/drivers/media/dvb/frontends/lg2160.c
index fafe522b013f..7bc284217527 100644
--- a/drivers/media/dvb/frontends/lg2160.c
+++ b/drivers/media/dvb/frontends/lg2160.c
@@ -804,6 +804,7 @@ fail:
804 804
805/* ------------------------------------------------------------------------ */ 805/* ------------------------------------------------------------------------ */
806 806
807#if 0
807static int lg216x_read_fic_err_count(struct lg216x_state *state, u8 *err) 808static int lg216x_read_fic_err_count(struct lg216x_state *state, u8 *err)
808{ 809{
809 u8 fic_err; 810 u8 fic_err;
@@ -936,6 +937,7 @@ static int lg216x_read_rs_err_count(struct lg216x_state *state, u16 *err)
936 } 937 }
937 return ret; 938 return ret;
938} 939}
940#endif
939 941
940/* ------------------------------------------------------------------------ */ 942/* ------------------------------------------------------------------------ */
941 943
@@ -1016,6 +1018,7 @@ static int lg216x_get_frontend(struct dvb_frontend *fe)
1016 if (lg_fail(ret)) 1018 if (lg_fail(ret))
1017 goto fail; 1019 goto fail;
1018 } 1020 }
1021#if 0
1019 ret = lg216x_read_fic_err_count(state, 1022 ret = lg216x_read_fic_err_count(state,
1020 (u8 *)&fe->dtv_property_cache.atscmh_fic_err); 1023 (u8 *)&fe->dtv_property_cache.atscmh_fic_err);
1021 if (lg_fail(ret)) 1024 if (lg_fail(ret))
@@ -1042,6 +1045,7 @@ static int lg216x_get_frontend(struct dvb_frontend *fe)
1042 break; 1045 break;
1043 } 1046 }
1044 lg_fail(ret); 1047 lg_fail(ret);
1048#endif
1045fail: 1049fail:
1046 return ret; 1050 return ret;
1047} 1051}
@@ -1319,13 +1323,16 @@ static int lg216x_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
1319{ 1323{
1320 struct lg216x_state *state = fe->demodulator_priv; 1324 struct lg216x_state *state = fe->demodulator_priv;
1321 int ret; 1325 int ret;
1322 1326#if 0
1323 ret = lg216x_read_rs_err_count(state, 1327 ret = lg216x_read_rs_err_count(state,
1324 &fe->dtv_property_cache.atscmh_rs_err); 1328 &fe->dtv_property_cache.atscmh_rs_err);
1325 if (lg_fail(ret)) 1329 if (lg_fail(ret))
1326 goto fail; 1330 goto fail;
1327 1331
1328 *ucblocks = fe->dtv_property_cache.atscmh_rs_err; 1332 *ucblocks = fe->dtv_property_cache.atscmh_rs_err;
1333#else
1334 *ucblocks = 0;
1335#endif
1329fail: 1336fail:
1330 return 0; 1337 return 0;
1331} 1338}
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h
index 5aedd5ae7f8f..f50d4058c5fb 100644
--- a/include/linux/dvb/frontend.h
+++ b/include/linux/dvb/frontend.h
@@ -336,11 +336,8 @@ struct dvb_frontend_event {
336#define DTV_ATSCMH_SCCC_CODE_MODE_B 57 336#define DTV_ATSCMH_SCCC_CODE_MODE_B 57
337#define DTV_ATSCMH_SCCC_CODE_MODE_C 58 337#define DTV_ATSCMH_SCCC_CODE_MODE_C 58
338#define DTV_ATSCMH_SCCC_CODE_MODE_D 59 338#define DTV_ATSCMH_SCCC_CODE_MODE_D 59
339#define DTV_ATSCMH_FIC_ERR 60
340#define DTV_ATSCMH_CRC_ERR 61
341#define DTV_ATSCMH_RS_ERR 62
342 339
343#define DTV_MAX_COMMAND DTV_ATSCMH_RS_ERR 340#define DTV_MAX_COMMAND DTV_ATSCMH_SCCC_CODE_MODE_D
344 341
345typedef enum fe_pilot { 342typedef enum fe_pilot {
346 PILOT_ON, 343 PILOT_ON,