dtv_demod: txl: fix dvbc can't lock

PD#169985: txl: fix dvbc can't lock

Change-Id: I6094cfb546832cc4c54dae4a065147a05d20c251
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
This commit is contained in:
Jihong Sui
2018-08-10 09:48:27 +08:00
committed by Jianxin Pan
parent 923bf48f16
commit bdaa4db03a
2 changed files with 14 additions and 5 deletions

View File

@@ -709,10 +709,17 @@ void demod_set_mode_ts(unsigned char dvb_mode)
cfg0.b.adc_regout = 1;
cfg0.b.adc_regadj = 2;
} else if (dvb_mode == Gxtv_Dvbc) {
cfg0.b.ts_sel = 1<<3;
cfg0.b.mode = 1<<3;
cfg0.b.adc_format = 0;
cfg0.b.adc_regout = 0;
if (is_dvbc_ver(IC_DVBC_V2)) {
cfg0.b.ts_sel = 2;
cfg0.b.mode = 7;
cfg0.b.adc_format = 1;
cfg0.b.adc_regout = 0;
} else {
cfg0.b.ts_sel = 1<<3;
cfg0.b.mode = 1<<3;
cfg0.b.adc_format = 0;
cfg0.b.adc_regout = 0;
}
}
demod_write_reg(DEMOD_REG1, cfg0.d32);

View File

@@ -350,7 +350,9 @@ int dvbc_set_ch(struct aml_demod_sta *demod_sta,
if (demod_sta->ch_if == 0)
demod_sta->ch_if = 5000;
demod_sta->symb_rate = symb_rate;
demod_sta->adc_freq = demod_dvbc->dat0;
if (is_dvbc_ver(IC_DVBC_V3))
demod_sta->adc_freq = demod_dvbc->dat0;
#if 0
if (is_meson_txlx_cpu() || is_meson_gxlx_cpu())
dvbc_reg_initial(demod_sta);