mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
dtv_demod: get dvbs/s2 if config from get_if_frequency (V3.6.018) [2/2]
PD#SWPL-202627 Problem: get dvbs/s2 if config from get_if_frequency. Solution: get dvbs/s2 if config from get_if_frequency. AMLDTVDEMOD_VER "V3.6.018" Verify: T6D. Change-Id: I5ceec4b1313a3de41e3e20ab9e1c60ef99b5348b Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
17b2c0a1b0
commit
f366b0e497
@@ -407,6 +407,7 @@ void dvbs_blind_scan_new_work(struct work_struct *work)
|
||||
int scan_time = 1;
|
||||
bool found_tp = false;
|
||||
unsigned int last_step_num = 0, cur_step_num = 0, percent_base = 0;
|
||||
unsigned int tuner_if[3] = { 0 };
|
||||
|
||||
list_for_each_entry(tmp, &devp->demod_list, list) {
|
||||
if (tmp->id == 0) {
|
||||
@@ -457,8 +458,12 @@ void dvbs_blind_scan_new_work(struct work_struct *work)
|
||||
//dvbs all reg init
|
||||
dtvdemod_dvbs_set_ch(&demod->demod_status);
|
||||
|
||||
if (fe->ops.tuner_ops.get_if_frequency)
|
||||
fe->ops.tuner_ops.get_if_frequency(fe, tuner_if);
|
||||
|
||||
devp->agc_direction = tuner_if[2];
|
||||
if (devp->agc_direction) {
|
||||
PR_DVBS("AGC direction: %d\n", devp->agc_direction);
|
||||
PR_DVBS("AGC direction Negative\n");
|
||||
dvbs_wr_byte(0x118, 0x04);
|
||||
}
|
||||
|
||||
@@ -1216,6 +1221,7 @@ int dtvdemod_dvbs_set_frontend(struct dvb_frontend *fe)
|
||||
struct amldtvdemod_device_s *devp = (struct amldtvdemod_device_s *)demod->priv;
|
||||
int ret = 0;
|
||||
unsigned int tmp_sr = 0;
|
||||
unsigned int tuner_if[3] = { 0 };
|
||||
|
||||
if (devp->blind_same_frec == 0)
|
||||
PR_INFO("%s [id %d]: delsys:%d, freq:%d, symbol_rate:%d, bw:%d\n",
|
||||
@@ -1233,14 +1239,18 @@ int dtvdemod_dvbs_set_frontend(struct dvb_frontend *fe)
|
||||
|
||||
tuner_set_params(fe);
|
||||
|
||||
if (fe->ops.tuner_ops.get_if_frequency)
|
||||
fe->ops.tuner_ops.get_if_frequency(fe, tuner_if);
|
||||
|
||||
if (devp->blind_scan_stop && tmp_sr < SR_LOW_THRD)
|
||||
c->symbol_rate = tmp_sr;
|
||||
|
||||
dtvdemod_dvbs_set_ch(&demod->demod_status);
|
||||
demod->time_start = jiffies_to_msecs(jiffies);
|
||||
|
||||
devp->agc_direction = tuner_if[2];
|
||||
if (devp->agc_direction) {
|
||||
PR_DVBS("AGC direction: %d\n", devp->agc_direction);
|
||||
PR_DVBS("AGC direction Negative\n");
|
||||
dvbs_wr_byte(0x118, 0x04);
|
||||
}
|
||||
|
||||
|
||||
@@ -195,6 +195,7 @@
|
||||
/* V3.6.015 fix S4 dvbc search crash */
|
||||
/* V3.6.016 fix t6d isdbt offset test failed */
|
||||
/* V3.6.017 fix dvbs auto sr config(cause unlock) */
|
||||
/* V3.6.018 get dvbs/s2 if config from get_if_frequency */
|
||||
/****************************************************/
|
||||
/****************************************************************/
|
||||
/* AMLDTVDEMOD_VER Description: */
|
||||
@@ -211,8 +212,8 @@
|
||||
/*->The last four digits indicate the release time */
|
||||
/****************************************************************/
|
||||
#define KERNEL_4_9_EN 1
|
||||
#define AMLDTVDEMOD_VER "V3.6.017"
|
||||
#define DTVDEMOD_VER "2025/02/11: fix dvbs auto sr config(cause unlock)"
|
||||
#define AMLDTVDEMOD_VER "V3.6.018"
|
||||
#define DTVDEMOD_VER "2025/02/24: get dvbs/s2 if config from get_if_frequency"
|
||||
#define AMLDTVDEMOD_T2_FW_VER "v0959.20241024"
|
||||
#define DEMOD_DEVICE_NAME "dtvdemod"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user