-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dvb-latest: fix si2157 initialization
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...es/linux-driver-addons/dvb/depends/media_tree/patches/media_tree-07-fix-si2157-init.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |