PD#169985: txl: fix dvbc can't lock
Change-Id: I6094cfb546832cc4c54dae4a065147a05d20c251
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
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);
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);