hw_demux: fix compile error by commit 'add xtal config for tuner' [1/1]

PD#171245: fix compile error by commit 'add xtal config for tuner'

Change-Id: I303bce09f127ee8e11417e570bcdf468b2f92eeb
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
This commit is contained in:
nengwen.chen
2018-08-09 21:38:56 +08:00
committed by Dongjin Kim
parent 1fdc1fa5cc
commit 76c96cd404
2 changed files with 10 additions and 1 deletions

View File

@@ -18,11 +18,14 @@ struct amlfe_demod_config {
int reset_value;
};
/* For configure different tuners */
/* It can add fields as extensions */
struct tuner_config {
u8 id;
u8 i2c_addr;
u8 xtal;
u8 xtal; /* 0: 16MHz, 1: 24MHz, 3: 27MHz */
u8 xtal_cap;
u8 xtal_mode;
};
static inline struct dvb_frontend* aml_dtvdm_attach (const struct amlfe_exp_config *config) {

View File

@@ -1960,6 +1960,12 @@ static int aml_dvb_probe(struct platform_device *pdev)
else
cfg.xtal = value;
ret = of_property_read_u32(node_tuner, "tuner_xtal_mode", &value);
if (ret)
pr_err("tuner_xtal_mode error.\n");
else
cfg.xtal_mode = value;
ret = of_property_read_u32(node_tuner, "tuner_xtal_cap", &value);
if (ret)
pr_err("tuner_xtal_cap error.\n");