Commit 5714e84f authored by Brad Love's avatar Brad Love Committed by Mauro Carvalho Chehab

media: si2157: Enable tuner status flags

Enable flags to get status of commands sent to the tuner.
Signed-off-by: default avatarBrad Love <brad@nextdimension.cc>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent cd33c830
...@@ -230,6 +230,28 @@ static int si2157_init(struct dvb_frontend *fe) ...@@ -230,6 +230,28 @@ static int si2157_init(struct dvb_frontend *fe)
dev_info(&client->dev, "firmware version: %c.%c.%d\n", dev_info(&client->dev, "firmware version: %c.%c.%d\n",
cmd.args[6], cmd.args[7], cmd.args[8]); cmd.args[6], cmd.args[7], cmd.args[8]);
/* enable tuner status flags */
memcpy(cmd.args, "\x14\x00\x01\x05\x01\x00", 6);
cmd.wlen = 6;
cmd.rlen = 1;
ret = si2157_cmd_execute(client, &cmd);
if (ret)
goto err;
memcpy(cmd.args, "\x14\x00\x01\x06\x01\x00", 6);
cmd.wlen = 6;
cmd.rlen = 1;
ret = si2157_cmd_execute(client, &cmd);
if (ret)
goto err;
memcpy(cmd.args, "\x14\x00\x01\x07\x01\x00", 6);
cmd.wlen = 6;
cmd.rlen = 1;
ret = si2157_cmd_execute(client, &cmd);
if (ret)
goto err;
warm: warm:
/* init statistics in order signal app which are supported */ /* init statistics in order signal app which are supported */
c->strength.len = 1; c->strength.len = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment