diff options
author | Antti Palosaari <crope@iki.fi> | 2014-12-06 15:25:24 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-01-29 15:49:45 -0500 |
commit | c7011845ca72b52c0cac133a8cb5ffb602431705 (patch) | |
tree | a6163b773dfd5810ea87cb57d3f81750e9f8087d /drivers/media/tuners | |
parent | e7f3f9f36235ca604c336c424709a6ecdd39ce8f (diff) |
[media] si2157: print firmware version
Firmware version could be printed similarly than si2168 driver does.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r-- | drivers/media/tuners/si2157.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index 3f9aa7ae1613..6ae76204ddd4 100644 --- a/drivers/media/tuners/si2157.c +++ b/drivers/media/tuners/si2157.c | |||
@@ -184,6 +184,17 @@ skip_fw_download: | |||
184 | if (ret) | 184 | if (ret) |
185 | goto err; | 185 | goto err; |
186 | 186 | ||
187 | /* query firmware version */ | ||
188 | memcpy(cmd.args, "\x11", 1); | ||
189 | cmd.wlen = 1; | ||
190 | cmd.rlen = 10; | ||
191 | ret = si2157_cmd_execute(client, &cmd); | ||
192 | if (ret) | ||
193 | goto err; | ||
194 | |||
195 | dev_info(&client->dev, "firmware version: %c.%c.%d\n", | ||
196 | cmd.args[6], cmd.args[7], cmd.args[8]); | ||
197 | |||
187 | dev->fw_loaded = true; | 198 | dev->fw_loaded = true; |
188 | 199 | ||
189 | warm: | 200 | warm: |