projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0df6580
)
[media] it913x: init tuner on attach
author
Bimow Chen
<
[email protected]
>
Tue, 5 Aug 2014 03:14:47 +0000
(
00:14
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 4 Sep 2014 15:23:22 +0000
(12:23 -0300)
That register is needed to program very first in order to operate
correctly.
[
[email protected]
: returned sequence back, removed sleep, moved reg
write earlier to prevent populating tuner ops in case of failure]
Cc: <
[email protected]
> # v3.15+
Signed-off-by: Bimow Chen <
[email protected]
>
Signed-off-by: Antti Palosaari <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/tuners/tuner_it913x.c
patch
|
blob
|
history
diff --git
a/drivers/media/tuners/tuner_it913x.c
b/drivers/media/tuners/tuner_it913x.c
index 6f30d7e535b8e0b6d0ce2ea28e508c6334bae221..3d83c425bccf704a4ff174c4bab6b505d4a9ee3a 100644
(file)
--- a/
drivers/media/tuners/tuner_it913x.c
+++ b/
drivers/media/tuners/tuner_it913x.c
@@
-396,6
+396,7
@@
struct dvb_frontend *it913x_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c_adap, u8 i2c_addr, u8 config)
{
struct it913x_state *state = NULL;
+ int ret;
/* allocate memory for the internal state */
state = kzalloc(sizeof(struct it913x_state), GFP_KERNEL);
@@
-425,6
+426,11
@@
struct dvb_frontend *it913x_attach(struct dvb_frontend *fe,
state->tuner_type = config;
state->firmware_ver = 1;
+ /* tuner RF initial */
+ ret = it913x_wr_reg(state, PRO_DMOD, 0xec4c, 0x68);
+ if (ret < 0)
+ goto error;
+
fe->tuner_priv = state;
memcpy(&fe->ops.tuner_ops, &it913x_tuner_ops,
sizeof(struct dvb_tuner_ops));