aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlli Salonen2014-11-27 16:42:22 -0300
committerMauro Carvalho Chehab2014-12-04 13:59:04 -0200
commita594cf21aa3c8e0e7510cbd316383fe6efb27f5c (patch)
treed4e621a3e0b08f61056d5ae1710ce64959cf8797
parent510cb39c4f87a18c960e6eb3906125445ed7ffe1 (diff)
[media] si2168: debug printout for firmware version
A debug printout for firmware version. Signed-off-by: Olli Salonen <olli.salonen@iki.fi> Reviewed-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/dvb-frontends/si2168.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index bec3aa5ed0a0..6da38e859cbc 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -489,6 +489,17 @@ static int si2168_init(struct dvb_frontend *fe)
if (ret)
goto err;
+ /* query firmware version */
+ memcpy(cmd.args, "\x11", 1);
+ cmd.wlen = 1;
+ cmd.rlen = 10;
+ ret = si2168_cmd_execute(s, &cmd);
+ if (ret)
+ goto err;
+
+ dev_dbg(&s->client->dev, "firmware version: %c.%c.%d\n",
+ cmd.args[6], cmd.args[7], cmd.args[8]);
+
/* set ts mode */
memcpy(cmd.args, "\x14\x00\x01\x10\x10\x00", 6);
cmd.args[4] |= s->ts_mode;