diff options
author | Igor M. Liplianin <liplianin@netup.ru> | 2009-09-19 07:37:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:03 -0500 |
commit | 8171c2059cc4b0507faf3a0e0fdf28cc83d8ac62 (patch) | |
tree | 1d8f7f0bf30dfcc44d329434c0a5546e66cbfcba /drivers/media/dvb | |
parent | 61b1e58f0e1b9dd0e6ab7199f19b93948af4baa1 (diff) |
V4L/DVB (13045): Fix debug messaging for stv0900 demod.
Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/stv0900_core.c | 58 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stv0900_priv.h | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stv0900_sw.c | 31 |
3 files changed, 46 insertions, 45 deletions
diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c index 3bde3324a032..768a1611e8ce 100644 --- a/drivers/media/dvb/frontends/stv0900_core.c +++ b/drivers/media/dvb/frontends/stv0900_core.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "stv0900_priv.h" | 34 | #include "stv0900_priv.h" |
35 | #include "stv0900_init.h" | 35 | #include "stv0900_init.h" |
36 | 36 | ||
37 | static int stvdebug = 1; | 37 | int stvdebug = 1; |
38 | module_param_named(debug, stvdebug, int, 0644); | 38 | module_param_named(debug, stvdebug, int, 0644); |
39 | 39 | ||
40 | /* internal params node */ | 40 | /* internal params node */ |
@@ -146,7 +146,7 @@ void stv0900_write_reg(struct stv0900_internal *i_params, u16 reg_addr, | |||
146 | 146 | ||
147 | ret = i2c_transfer(i_params->i2c_adap, &i2cmsg, 1); | 147 | ret = i2c_transfer(i_params->i2c_adap, &i2cmsg, 1); |
148 | if (ret != 1) | 148 | if (ret != 1) |
149 | dprintk(KERN_ERR "%s: i2c error %d\n", __func__, ret); | 149 | dprintk("%s: i2c error %d\n", __func__, ret); |
150 | } | 150 | } |
151 | 151 | ||
152 | u8 stv0900_read_reg(struct stv0900_internal *i_params, u16 reg) | 152 | u8 stv0900_read_reg(struct stv0900_internal *i_params, u16 reg) |
@@ -170,7 +170,7 @@ u8 stv0900_read_reg(struct stv0900_internal *i_params, u16 reg) | |||
170 | 170 | ||
171 | ret = i2c_transfer(i_params->i2c_adap, msg, 2); | 171 | ret = i2c_transfer(i_params->i2c_adap, msg, 2); |
172 | if (ret != 2) | 172 | if (ret != 2) |
173 | dprintk(KERN_ERR "%s: i2c error %d, reg[0x%02x]\n", | 173 | dprintk("%s: i2c error %d, reg[0x%02x]\n", |
174 | __func__, ret, reg); | 174 | __func__, ret, reg); |
175 | 175 | ||
176 | return buf; | 176 | return buf; |
@@ -281,7 +281,7 @@ u32 stv0900_get_mclk_freq(struct stv0900_internal *i_params, u32 ext_clk) | |||
281 | 281 | ||
282 | mclk = (div + 1) * ext_clk / ad_div; | 282 | mclk = (div + 1) * ext_clk / ad_div; |
283 | 283 | ||
284 | dprintk(KERN_INFO "%s: Calculated Mclk = %d\n", __func__, mclk); | 284 | dprintk("%s: Calculated Mclk = %d\n", __func__, mclk); |
285 | 285 | ||
286 | return mclk; | 286 | return mclk; |
287 | } | 287 | } |
@@ -291,7 +291,7 @@ enum fe_stv0900_error stv0900_set_mclk(struct stv0900_internal *i_params, u32 mc | |||
291 | enum fe_stv0900_error error = STV0900_NO_ERROR; | 291 | enum fe_stv0900_error error = STV0900_NO_ERROR; |
292 | u32 m_div, clk_sel; | 292 | u32 m_div, clk_sel; |
293 | 293 | ||
294 | dprintk(KERN_INFO "%s: Mclk set to %d, Quartz = %d\n", __func__, mclk, | 294 | dprintk("%s: Mclk set to %d, Quartz = %d\n", __func__, mclk, |
295 | i_params->quartz); | 295 | i_params->quartz); |
296 | 296 | ||
297 | if (i_params == NULL) | 297 | if (i_params == NULL) |
@@ -381,7 +381,7 @@ static void stv0900_set_ts_parallel_serial(struct stv0900_internal *i_params, | |||
381 | enum fe_stv0900_clock_type path2_ts) | 381 | enum fe_stv0900_clock_type path2_ts) |
382 | { | 382 | { |
383 | 383 | ||
384 | dprintk(KERN_INFO "%s\n", __func__); | 384 | dprintk("%s\n", __func__); |
385 | 385 | ||
386 | if (i_params->chip_id >= 0x20) { | 386 | if (i_params->chip_id >= 0x20) { |
387 | switch (path1_ts) { | 387 | switch (path1_ts) { |
@@ -423,7 +423,7 @@ static void stv0900_set_ts_parallel_serial(struct stv0900_internal *i_params, | |||
423 | case STV0900_DVBCI_CLOCK: | 423 | case STV0900_DVBCI_CLOCK: |
424 | stv0900_write_reg(i_params, | 424 | stv0900_write_reg(i_params, |
425 | R0900_TSGENERAL, 0x0A); | 425 | R0900_TSGENERAL, 0x0A); |
426 | dprintk(KERN_INFO "%s: 0x0a\n", __func__); | 426 | dprintk("%s: 0x0a\n", __func__); |
427 | break; | 427 | break; |
428 | } | 428 | } |
429 | break; | 429 | break; |
@@ -469,7 +469,7 @@ static void stv0900_set_ts_parallel_serial(struct stv0900_internal *i_params, | |||
469 | case STV0900_DVBCI_CLOCK: | 469 | case STV0900_DVBCI_CLOCK: |
470 | stv0900_write_reg(i_params, R0900_TSGENERAL1X, | 470 | stv0900_write_reg(i_params, R0900_TSGENERAL1X, |
471 | 0x12); | 471 | 0x12); |
472 | dprintk(KERN_INFO "%s: 0x12\n", __func__); | 472 | dprintk("%s: 0x12\n", __func__); |
473 | break; | 473 | break; |
474 | } | 474 | } |
475 | 475 | ||
@@ -584,7 +584,7 @@ static s32 stv0900_get_rf_level(struct stv0900_internal *i_params, | |||
584 | i, | 584 | i, |
585 | rf_lvl = 0; | 585 | rf_lvl = 0; |
586 | 586 | ||
587 | dprintk(KERN_INFO "%s\n", __func__); | 587 | dprintk("%s\n", __func__); |
588 | 588 | ||
589 | if ((lookup != NULL) && lookup->size) { | 589 | if ((lookup != NULL) && lookup->size) { |
590 | switch (demod) { | 590 | switch (demod) { |
@@ -622,7 +622,7 @@ static s32 stv0900_get_rf_level(struct stv0900_internal *i_params, | |||
622 | 622 | ||
623 | } | 623 | } |
624 | 624 | ||
625 | dprintk(KERN_INFO "%s: RFLevel = %d\n", __func__, rf_lvl); | 625 | dprintk("%s: RFLevel = %d\n", __func__, rf_lvl); |
626 | 626 | ||
627 | return rf_lvl; | 627 | return rf_lvl; |
628 | } | 628 | } |
@@ -654,7 +654,7 @@ static s32 stv0900_carr_get_quality(struct dvb_frontend *fe, | |||
654 | noise_field1, | 654 | noise_field1, |
655 | noise_field0; | 655 | noise_field0; |
656 | 656 | ||
657 | dprintk(KERN_INFO "%s\n", __func__); | 657 | dprintk("%s\n", __func__); |
658 | 658 | ||
659 | dmd_reg(lock_flag_field, F0900_P1_LOCK_DEFINITIF, | 659 | dmd_reg(lock_flag_field, F0900_P1_LOCK_DEFINITIF, |
660 | F0900_P2_LOCK_DEFINITIF); | 660 | F0900_P2_LOCK_DEFINITIF); |
@@ -876,7 +876,7 @@ void stv0900_stop_all_s2_modcod(struct stv0900_internal *i_params, | |||
876 | s32 regflist, | 876 | s32 regflist, |
877 | i; | 877 | i; |
878 | 878 | ||
879 | dprintk(KERN_INFO "%s\n", __func__); | 879 | dprintk("%s\n", __func__); |
880 | 880 | ||
881 | dmd_reg(regflist, R0900_P1_MODCODLST0, R0900_P2_MODCODLST0); | 881 | dmd_reg(regflist, R0900_P1_MODCODLST0, R0900_P2_MODCODLST0); |
882 | 882 | ||
@@ -893,7 +893,7 @@ void stv0900_activate_s2_modcode(struct stv0900_internal *i_params, | |||
893 | reg_index, | 893 | reg_index, |
894 | field_index; | 894 | field_index; |
895 | 895 | ||
896 | dprintk(KERN_INFO "%s\n", __func__); | 896 | dprintk("%s\n", __func__); |
897 | 897 | ||
898 | if (i_params->chip_id <= 0x11) { | 898 | if (i_params->chip_id <= 0x11) { |
899 | msleep(5); | 899 | msleep(5); |
@@ -979,7 +979,7 @@ void stv0900_activate_s2_modcode_single(struct stv0900_internal *i_params, | |||
979 | { | 979 | { |
980 | u32 reg_index; | 980 | u32 reg_index; |
981 | 981 | ||
982 | dprintk(KERN_INFO "%s\n", __func__); | 982 | dprintk("%s\n", __func__); |
983 | 983 | ||
984 | switch (demod) { | 984 | switch (demod) { |
985 | case STV0900_DEMOD_1: | 985 | case STV0900_DEMOD_1: |
@@ -1012,7 +1012,7 @@ static enum dvbfe_algo stv0900_frontend_algo(struct dvb_frontend *fe) | |||
1012 | static int stb0900_set_property(struct dvb_frontend *fe, | 1012 | static int stb0900_set_property(struct dvb_frontend *fe, |
1013 | struct dtv_property *tvp) | 1013 | struct dtv_property *tvp) |
1014 | { | 1014 | { |
1015 | dprintk(KERN_INFO "%s(..)\n", __func__); | 1015 | dprintk("%s(..)\n", __func__); |
1016 | 1016 | ||
1017 | return 0; | 1017 | return 0; |
1018 | } | 1018 | } |
@@ -1020,7 +1020,7 @@ static int stb0900_set_property(struct dvb_frontend *fe, | |||
1020 | static int stb0900_get_property(struct dvb_frontend *fe, | 1020 | static int stb0900_get_property(struct dvb_frontend *fe, |
1021 | struct dtv_property *tvp) | 1021 | struct dtv_property *tvp) |
1022 | { | 1022 | { |
1023 | dprintk(KERN_INFO "%s(..)\n", __func__); | 1023 | dprintk("%s(..)\n", __func__); |
1024 | 1024 | ||
1025 | return 0; | 1025 | return 0; |
1026 | } | 1026 | } |
@@ -1191,7 +1191,7 @@ u8 stv0900_get_optim_carr_loop(s32 srate, enum fe_stv0900_modcode modcode, | |||
1191 | s32 i; | 1191 | s32 i; |
1192 | const struct stv0900_car_loop_optim *car_loop_s2; | 1192 | const struct stv0900_car_loop_optim *car_loop_s2; |
1193 | 1193 | ||
1194 | dprintk(KERN_INFO "%s\n", __func__); | 1194 | dprintk("%s\n", __func__); |
1195 | 1195 | ||
1196 | if (chip_id <= 0x12) | 1196 | if (chip_id <= 0x12) |
1197 | car_loop_s2 = FE_STV0900_S2CarLoop; | 1197 | car_loop_s2 = FE_STV0900_S2CarLoop; |
@@ -1294,7 +1294,7 @@ u8 stv0900_get_optim_short_carr_loop(s32 srate, enum fe_stv0900_modulation modul | |||
1294 | 1294 | ||
1295 | u8 aclc_value = 0x0b; | 1295 | u8 aclc_value = 0x0b; |
1296 | 1296 | ||
1297 | dprintk(KERN_INFO "%s\n", __func__); | 1297 | dprintk("%s\n", __func__); |
1298 | 1298 | ||
1299 | switch (modulation) { | 1299 | switch (modulation) { |
1300 | case STV0900_QPSK: | 1300 | case STV0900_QPSK: |
@@ -1351,7 +1351,7 @@ static enum fe_stv0900_error stv0900_st_dvbs2_single(struct stv0900_internal *i_ | |||
1351 | { | 1351 | { |
1352 | enum fe_stv0900_error error = STV0900_NO_ERROR; | 1352 | enum fe_stv0900_error error = STV0900_NO_ERROR; |
1353 | 1353 | ||
1354 | dprintk(KERN_INFO "%s\n", __func__); | 1354 | dprintk("%s\n", __func__); |
1355 | 1355 | ||
1356 | switch (LDPC_Mode) { | 1356 | switch (LDPC_Mode) { |
1357 | case STV0900_DUAL: | 1357 | case STV0900_DUAL: |
@@ -1398,12 +1398,12 @@ static enum fe_stv0900_error stv0900_init_internal(struct dvb_frontend *fe, | |||
1398 | struct stv0900_inode *temp_int = find_inode(state->i2c_adap, | 1398 | struct stv0900_inode *temp_int = find_inode(state->i2c_adap, |
1399 | state->config->demod_address); | 1399 | state->config->demod_address); |
1400 | 1400 | ||
1401 | dprintk(KERN_INFO "%s\n", __func__); | 1401 | dprintk("%s\n", __func__); |
1402 | 1402 | ||
1403 | if (temp_int != NULL) { | 1403 | if (temp_int != NULL) { |
1404 | state->internal = temp_int->internal; | 1404 | state->internal = temp_int->internal; |
1405 | (state->internal->dmds_used)++; | 1405 | (state->internal->dmds_used)++; |
1406 | dprintk(KERN_INFO "%s: Find Internal Structure!\n", __func__); | 1406 | dprintk("%s: Find Internal Structure!\n", __func__); |
1407 | return STV0900_NO_ERROR; | 1407 | return STV0900_NO_ERROR; |
1408 | } else { | 1408 | } else { |
1409 | state->internal = kmalloc(sizeof(struct stv0900_internal), GFP_KERNEL); | 1409 | state->internal = kmalloc(sizeof(struct stv0900_internal), GFP_KERNEL); |
@@ -1413,7 +1413,7 @@ static enum fe_stv0900_error stv0900_init_internal(struct dvb_frontend *fe, | |||
1413 | state->internal->i2c_addr = state->config->demod_address; | 1413 | state->internal->i2c_addr = state->config->demod_address; |
1414 | state->internal->clkmode = state->config->clkmode; | 1414 | state->internal->clkmode = state->config->clkmode; |
1415 | state->internal->errs = STV0900_NO_ERROR; | 1415 | state->internal->errs = STV0900_NO_ERROR; |
1416 | dprintk(KERN_INFO "%s: Create New Internal Structure!\n", __func__); | 1416 | dprintk("%s: Create New Internal Structure!\n", __func__); |
1417 | } | 1417 | } |
1418 | 1418 | ||
1419 | if (state->internal != NULL) { | 1419 | if (state->internal != NULL) { |
@@ -1551,7 +1551,7 @@ static enum dvbfe_search stv0900_search(struct dvb_frontend *fe, | |||
1551 | 1551 | ||
1552 | enum fe_stv0900_error error = STV0900_NO_ERROR; | 1552 | enum fe_stv0900_error error = STV0900_NO_ERROR; |
1553 | 1553 | ||
1554 | dprintk(KERN_INFO "%s: ", __func__); | 1554 | dprintk("%s: ", __func__); |
1555 | 1555 | ||
1556 | p_result.locked = FALSE; | 1556 | p_result.locked = FALSE; |
1557 | p_search.path = state->demod; | 1557 | p_search.path = state->demod; |
@@ -1652,10 +1652,10 @@ static enum dvbfe_search stv0900_search(struct dvb_frontend *fe, | |||
1652 | error = STV0900_BAD_PARAMETER; | 1652 | error = STV0900_BAD_PARAMETER; |
1653 | 1653 | ||
1654 | if ((p_result.locked == TRUE) && (error == STV0900_NO_ERROR)) { | 1654 | if ((p_result.locked == TRUE) && (error == STV0900_NO_ERROR)) { |
1655 | dprintk(KERN_INFO "Search Success\n"); | 1655 | dprintk("Search Success\n"); |
1656 | return DVBFE_ALGO_SEARCH_SUCCESS; | 1656 | return DVBFE_ALGO_SEARCH_SUCCESS; |
1657 | } else { | 1657 | } else { |
1658 | dprintk(KERN_INFO "Search Fail\n"); | 1658 | dprintk("Search Fail\n"); |
1659 | return DVBFE_ALGO_SEARCH_FAILED; | 1659 | return DVBFE_ALGO_SEARCH_FAILED; |
1660 | } | 1660 | } |
1661 | 1661 | ||
@@ -1723,7 +1723,7 @@ static int stv0900_diseqc_init(struct dvb_frontend *fe) | |||
1723 | 1723 | ||
1724 | static int stv0900_init(struct dvb_frontend *fe) | 1724 | static int stv0900_init(struct dvb_frontend *fe) |
1725 | { | 1725 | { |
1726 | dprintk(KERN_INFO "%s\n", __func__); | 1726 | dprintk("%s\n", __func__); |
1727 | 1727 | ||
1728 | stv0900_stop_ts(fe, 1); | 1728 | stv0900_stop_ts(fe, 1); |
1729 | stv0900_diseqc_init(fe); | 1729 | stv0900_diseqc_init(fe); |
@@ -1865,7 +1865,7 @@ static int stv0900_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone) | |||
1865 | enum fe_stv0900_demod_num demod = state->demod; | 1865 | enum fe_stv0900_demod_num demod = state->demod; |
1866 | s32 mode_field, reset_field; | 1866 | s32 mode_field, reset_field; |
1867 | 1867 | ||
1868 | dprintk(KERN_INFO "%s: %s\n", __func__, ((tone == 0) ? "Off" : "On")); | 1868 | dprintk("%s: %s\n", __func__, ((tone == 0) ? "Off" : "On")); |
1869 | 1869 | ||
1870 | dmd_reg(mode_field, F0900_P1_DISTX_MODE, F0900_P2_DISTX_MODE); | 1870 | dmd_reg(mode_field, F0900_P1_DISTX_MODE, F0900_P2_DISTX_MODE); |
1871 | dmd_reg(reset_field, F0900_P1_DISEQC_RESET, F0900_P2_DISEQC_RESET); | 1871 | dmd_reg(reset_field, F0900_P1_DISEQC_RESET, F0900_P2_DISEQC_RESET); |
@@ -1889,11 +1889,11 @@ static void stv0900_release(struct dvb_frontend *fe) | |||
1889 | { | 1889 | { |
1890 | struct stv0900_state *state = fe->demodulator_priv; | 1890 | struct stv0900_state *state = fe->demodulator_priv; |
1891 | 1891 | ||
1892 | dprintk(KERN_INFO "%s\n", __func__); | 1892 | dprintk("%s\n", __func__); |
1893 | 1893 | ||
1894 | if ((--(state->internal->dmds_used)) <= 0) { | 1894 | if ((--(state->internal->dmds_used)) <= 0) { |
1895 | 1895 | ||
1896 | dprintk(KERN_INFO "%s: Actually removing\n", __func__); | 1896 | dprintk("%s: Actually removing\n", __func__); |
1897 | 1897 | ||
1898 | remove_inode(state->internal); | 1898 | remove_inode(state->internal); |
1899 | kfree(state->internal); | 1899 | kfree(state->internal); |
diff --git a/drivers/media/dvb/frontends/stv0900_priv.h b/drivers/media/dvb/frontends/stv0900_priv.h index 5ed7a145c7d3..5f4414f8da20 100644 --- a/drivers/media/dvb/frontends/stv0900_priv.h +++ b/drivers/media/dvb/frontends/stv0900_priv.h | |||
@@ -60,7 +60,7 @@ | |||
60 | } \ | 60 | } \ |
61 | } while (0) | 61 | } while (0) |
62 | 62 | ||
63 | static int stvdebug; | 63 | extern int stvdebug; |
64 | 64 | ||
65 | #define dprintk(args...) \ | 65 | #define dprintk(args...) \ |
66 | do { \ | 66 | do { \ |
diff --git a/drivers/media/dvb/frontends/stv0900_sw.c b/drivers/media/dvb/frontends/stv0900_sw.c index 962fde1437ce..8c83c8b306a6 100644 --- a/drivers/media/dvb/frontends/stv0900_sw.c +++ b/drivers/media/dvb/frontends/stv0900_sw.c | |||
@@ -527,7 +527,7 @@ static void stv0900_set_symbol_rate(struct stv0900_internal *i_params, | |||
527 | s32 sfr_init_reg; | 527 | s32 sfr_init_reg; |
528 | u32 symb; | 528 | u32 symb; |
529 | 529 | ||
530 | dprintk(KERN_INFO "%s: Mclk %d, SR %d, Dmd %d\n", __func__, mclk, | 530 | dprintk("%s: Mclk %d, SR %d, Dmd %d\n", __func__, mclk, |
531 | srate, demod); | 531 | srate, demod); |
532 | 532 | ||
533 | dmd_reg(sfr_init_reg, R0900_P1_SFRINIT1, R0900_P2_SFRINIT1); | 533 | dmd_reg(sfr_init_reg, R0900_P1_SFRINIT1, R0900_P2_SFRINIT1); |
@@ -952,7 +952,7 @@ static void stv0900_set_viterbi_tracq(struct stv0900_internal *i_params, | |||
952 | 952 | ||
953 | s32 vth_reg; | 953 | s32 vth_reg; |
954 | 954 | ||
955 | dprintk(KERN_INFO "%s\n", __func__); | 955 | dprintk("%s\n", __func__); |
956 | 956 | ||
957 | dmd_reg(vth_reg, R0900_P1_VTH12, R0900_P2_VTH12); | 957 | dmd_reg(vth_reg, R0900_P1_VTH12, R0900_P2_VTH12); |
958 | 958 | ||
@@ -973,7 +973,7 @@ static void stv0900_set_viterbi_standard(struct stv0900_internal *i_params, | |||
973 | s32 fecmReg, | 973 | s32 fecmReg, |
974 | prvitReg; | 974 | prvitReg; |
975 | 975 | ||
976 | dprintk(KERN_INFO "%s: ViterbiStandard = ", __func__); | 976 | dprintk("%s: ViterbiStandard = ", __func__); |
977 | 977 | ||
978 | switch (demod) { | 978 | switch (demod) { |
979 | case STV0900_DEMOD_1: | 979 | case STV0900_DEMOD_1: |
@@ -1055,7 +1055,7 @@ static void stv0900_track_optimization(struct dvb_frontend *fe) | |||
1055 | enum fe_stv0900_rolloff rolloff; | 1055 | enum fe_stv0900_rolloff rolloff; |
1056 | enum fe_stv0900_modcode foundModcod; | 1056 | enum fe_stv0900_modcode foundModcod; |
1057 | 1057 | ||
1058 | dprintk(KERN_INFO "%s\n", __func__); | 1058 | dprintk("%s\n", __func__); |
1059 | 1059 | ||
1060 | srate = stv0900_get_symbol_rate(i_params, i_params->mclk, demod); | 1060 | srate = stv0900_get_symbol_rate(i_params, i_params->mclk, demod); |
1061 | srate += stv0900_get_timing_offst(i_params, srate, demod); | 1061 | srate += stv0900_get_timing_offst(i_params, srate, demod); |
@@ -1370,7 +1370,7 @@ static int stv0900_get_fec_lock(struct stv0900_internal *i_params, enum fe_stv09 | |||
1370 | 1370 | ||
1371 | enum fe_stv0900_search_state dmd_state; | 1371 | enum fe_stv0900_search_state dmd_state; |
1372 | 1372 | ||
1373 | dprintk(KERN_INFO "%s\n", __func__); | 1373 | dprintk("%s\n", __func__); |
1374 | 1374 | ||
1375 | dmd_reg(header_field, F0900_P1_HEADER_MODE, F0900_P2_HEADER_MODE); | 1375 | dmd_reg(header_field, F0900_P1_HEADER_MODE, F0900_P2_HEADER_MODE); |
1376 | dmd_reg(pktdelin_field, F0900_P1_PKTDELIN_LOCK, F0900_P2_PKTDELIN_LOCK); | 1376 | dmd_reg(pktdelin_field, F0900_P1_PKTDELIN_LOCK, F0900_P2_PKTDELIN_LOCK); |
@@ -1414,7 +1414,7 @@ static int stv0900_wait_for_lock(struct stv0900_internal *i_params, | |||
1414 | 1414 | ||
1415 | s32 timer = 0, lock = 0, str_merg_rst_fld, str_merg_lock_fld; | 1415 | s32 timer = 0, lock = 0, str_merg_rst_fld, str_merg_lock_fld; |
1416 | 1416 | ||
1417 | dprintk(KERN_INFO "%s\n", __func__); | 1417 | dprintk("%s\n", __func__); |
1418 | 1418 | ||
1419 | dmd_reg(str_merg_rst_fld, F0900_P1_RST_HWARE, F0900_P2_RST_HWARE); | 1419 | dmd_reg(str_merg_rst_fld, F0900_P1_RST_HWARE, F0900_P2_RST_HWARE); |
1420 | dmd_reg(str_merg_lock_fld, F0900_P1_TSFIFO_LINEOK, F0900_P2_TSFIFO_LINEOK); | 1420 | dmd_reg(str_merg_lock_fld, F0900_P1_TSFIFO_LINEOK, F0900_P2_TSFIFO_LINEOK); |
@@ -1427,7 +1427,8 @@ static int stv0900_wait_for_lock(struct stv0900_internal *i_params, | |||
1427 | if (lock) { | 1427 | if (lock) { |
1428 | lock = 0; | 1428 | lock = 0; |
1429 | 1429 | ||
1430 | dprintk(KERN_INFO "%s: Timer = %d, time_out = %d\n", __func__, timer, fec_timeout); | 1430 | dprintk("%s: Timer = %d, time_out = %d\n", __func__, timer, |
1431 | fec_timeout); | ||
1431 | 1432 | ||
1432 | while ((timer < fec_timeout) && (lock == 0)) { | 1433 | while ((timer < fec_timeout) && (lock == 0)) { |
1433 | lock = stv0900_get_bits(i_params, str_merg_lock_fld); | 1434 | lock = stv0900_get_bits(i_params, str_merg_lock_fld); |
@@ -1437,9 +1438,9 @@ static int stv0900_wait_for_lock(struct stv0900_internal *i_params, | |||
1437 | } | 1438 | } |
1438 | 1439 | ||
1439 | if (lock) | 1440 | if (lock) |
1440 | dprintk(KERN_INFO "%s: DEMOD LOCK OK\n", __func__); | 1441 | dprintk("%s: DEMOD LOCK OK\n", __func__); |
1441 | else | 1442 | else |
1442 | dprintk(KERN_INFO "%s: DEMOD LOCK FAIL\n", __func__); | 1443 | dprintk("%s: DEMOD LOCK FAIL\n", __func__); |
1443 | 1444 | ||
1444 | if (lock) | 1445 | if (lock) |
1445 | return TRUE; | 1446 | return TRUE; |
@@ -1456,7 +1457,7 @@ enum fe_stv0900_tracking_standard stv0900_get_standard(struct dvb_frontend *fe, | |||
1456 | s32 state_field, | 1457 | s32 state_field, |
1457 | dss_dvb_field; | 1458 | dss_dvb_field; |
1458 | 1459 | ||
1459 | dprintk(KERN_INFO "%s\n", __func__); | 1460 | dprintk("%s\n", __func__); |
1460 | 1461 | ||
1461 | dmd_reg(state_field, F0900_P1_HEADER_MODE, F0900_P2_HEADER_MODE); | 1462 | dmd_reg(state_field, F0900_P1_HEADER_MODE, F0900_P2_HEADER_MODE); |
1462 | dmd_reg(dss_dvb_field, F0900_P1_DSS_DVB, F0900_P2_DSS_DVB); | 1463 | dmd_reg(dss_dvb_field, F0900_P1_DSS_DVB, F0900_P2_DSS_DVB); |
@@ -1820,7 +1821,7 @@ static u16 stv0900_blind_check_agc2_min_level(struct stv0900_internal *i_params, | |||
1820 | 1821 | ||
1821 | s32 i, j, nb_steps, direction; | 1822 | s32 i, j, nb_steps, direction; |
1822 | 1823 | ||
1823 | dprintk(KERN_INFO "%s\n", __func__); | 1824 | dprintk("%s\n", __func__); |
1824 | 1825 | ||
1825 | switch (demod) { | 1826 | switch (demod) { |
1826 | case STV0900_DEMOD_1: | 1827 | case STV0900_DEMOD_1: |
@@ -2274,7 +2275,7 @@ static int stv0900_blind_search_algo(struct dvb_frontend *fe) | |||
2274 | u16 agc2_integr; | 2275 | u16 agc2_integr; |
2275 | u8 dstatus2; | 2276 | u8 dstatus2; |
2276 | 2277 | ||
2277 | dprintk(KERN_INFO "%s\n", __func__); | 2278 | dprintk("%s\n", __func__); |
2278 | 2279 | ||
2279 | if (i_params->chip_id < 0x20) { | 2280 | if (i_params->chip_id < 0x20) { |
2280 | k_ref_tmg_max = 233; | 2281 | k_ref_tmg_max = 233; |
@@ -2397,7 +2398,7 @@ static void stv0900_set_viterbi_acq(struct stv0900_internal *i_params, | |||
2397 | { | 2398 | { |
2398 | s32 vth_reg; | 2399 | s32 vth_reg; |
2399 | 2400 | ||
2400 | dprintk(KERN_INFO "%s\n", __func__); | 2401 | dprintk("%s\n", __func__); |
2401 | 2402 | ||
2402 | dmd_reg(vth_reg, R0900_P1_VTH12, R0900_P2_VTH12); | 2403 | dmd_reg(vth_reg, R0900_P1_VTH12, R0900_P2_VTH12); |
2403 | 2404 | ||
@@ -2415,7 +2416,7 @@ static void stv0900_set_search_standard(struct stv0900_internal *i_params, | |||
2415 | 2416 | ||
2416 | int sstndrd; | 2417 | int sstndrd; |
2417 | 2418 | ||
2418 | dprintk(KERN_INFO "%s\n", __func__); | 2419 | dprintk("%s\n", __func__); |
2419 | 2420 | ||
2420 | sstndrd = i_params->dmd1_srch_standard; | 2421 | sstndrd = i_params->dmd1_srch_standard; |
2421 | if (demod == 1) | 2422 | if (demod == 1) |
@@ -2578,7 +2579,7 @@ enum fe_stv0900_signal_type stv0900_algo(struct dvb_frontend *fe) | |||
2578 | enum fe_stv0900_search_algo algo; | 2579 | enum fe_stv0900_search_algo algo; |
2579 | int no_signal = FALSE; | 2580 | int no_signal = FALSE; |
2580 | 2581 | ||
2581 | dprintk(KERN_INFO "%s\n", __func__); | 2582 | dprintk("%s\n", __func__); |
2582 | 2583 | ||
2583 | switch (demod) { | 2584 | switch (demod) { |
2584 | case STV0900_DEMOD_1: | 2585 | case STV0900_DEMOD_1: |