mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[media] si2165: move setting ts config to init
The TS config is fixed, so no need to write it for each tune. Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
eae56684a0
commit
75d62fc046
1 changed files with 14 additions and 13 deletions
|
@ -690,6 +690,20 @@ static int si2165_init(struct dvb_frontend *fe)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ts output config */
|
||||||
|
ret = si2165_writereg8(state, 0x04e4, 0x20);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
ret = si2165_writereg16(state, 0x04ef, 0x00fe);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
ret = si2165_writereg24(state, 0x04f4, 0x555555);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
ret = si2165_writereg8(state, 0x04e5, 0x01);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
error:
|
error:
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -822,19 +836,6 @@ static int si2165_set_frontend(struct dvb_frontend *fe)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
ret = si2165_writereg8(state, 0x08f8, 0x00);
|
ret = si2165_writereg8(state, 0x08f8, 0x00);
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
/* ts output config */
|
|
||||||
ret = si2165_writereg8(state, 0x04e4, 0x20);
|
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
ret = si2165_writereg16(state, 0x04ef, 0x00fe);
|
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
ret = si2165_writereg24(state, 0x04f4, 0x555555);
|
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
ret = si2165_writereg8(state, 0x04e5, 0x01);
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
/* bandwidth in 10KHz steps */
|
/* bandwidth in 10KHz steps */
|
||||||
|
|
Loading…
Add table
Reference in a new issue