diff options
author | nengwen.chen <nengwen.chen@amlogic.com> | 2018-08-09 21:38:56 +0800 |
---|---|---|
committer | nengwen.chen <nengwen.chen@amlogic.com> | 2018-08-09 21:44:12 +0800 |
commit | aedfebbb81c037bf28445a01d64e0fb80949905d (patch) | |
tree | c4117216b2be92f0ac2609f67ff0c76ba97807db | |
parent | f37af3460a6e59d1a2e4d46d17a07cd554e044a5 (diff) | |
download | media_modules-aedfebbb81c037bf28445a01d64e0fb80949905d.tar.gz |
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>
-rw-r--r-- | drivers/stream_input/parser/hw_demux/aml_demod_gt.h | 5 | ||||
-rw-r--r-- | drivers/stream_input/parser/hw_demux/aml_dvb.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/drivers/stream_input/parser/hw_demux/aml_demod_gt.h b/drivers/stream_input/parser/hw_demux/aml_demod_gt.h index 7025e23..729257b 100644 --- a/drivers/stream_input/parser/hw_demux/aml_demod_gt.h +++ b/drivers/stream_input/parser/hw_demux/aml_demod_gt.h @@ -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) { diff --git a/drivers/stream_input/parser/hw_demux/aml_dvb.c b/drivers/stream_input/parser/hw_demux/aml_dvb.c index e6cddb3..337c5db 100644 --- a/drivers/stream_input/parser/hw_demux/aml_dvb.c +++ b/drivers/stream_input/parser/hw_demux/aml_dvb.c @@ -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"); |