Skip to content
Permalink
Browse files

Merge pull request #209 from Koumes/latest-t230c2

dvb-latest: Fix MyGica T230C v2 support
  • Loading branch information...
afl1 committed Jun 9, 2019
2 parents 873c6c9 + 11283dc commit cc2deed5ec81983248126d01912316008c431c48
@@ -0,0 +1,17 @@
fix si2168 cmd timeout

Some Si2168 demodulator commands may take 130-140 ms
(DVB-T/T2 tuner MyGica T230C v2).
Details: https://github.com/CoreELEC/CoreELEC/pull/208

--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -46,7 +46,7 @@ static int si2168_cmd_execute_unlocked(s

if (cmd->rlen) {
/* wait cmd execution terminate */
- #define TIMEOUT 70
+ #define TIMEOUT 200
timeout = jiffies + msecs_to_jiffies(TIMEOUT);
while (!time_after(jiffies, timeout)) {
ret = i2c_master_recv(client, cmd->args, cmd->rlen);
@@ -0,0 +1,16 @@
Fix compatibility with Si2141 tuner (e.g. MyGica T230C v2)
which needs a next command for proper initialization.

(Broken by media_tree-01-hauppauge.patch)

--- a/drivers/media/tuners/si2157.c
+++ b/drivers/media/tuners/si2157.c
@@ -120,7 +120,7 @@ static int si2157_init(struct dvb_fronte
}
cmd.rlen = 1;
ret = si2157_cmd_execute(client, &cmd);
- if (ret)
+ if (ret && (dev->chiptype != SI2157_CHIPTYPE_SI2141 || ret != -EAGAIN))
goto err;

/* Si2141 needs a second command before it answers the revision query */

0 comments on commit cc2deed

Please sign in to comment.
You can’t perform that action at this time.