Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192670
b: refs/heads/master
c: 0ef4b05
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 18, 2010
1 parent 820b4ca commit 8b4f88f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc27a8c275ff5a1d2b7cffbb5b8e96509d4231b9
refs/heads/master: 0ef4b05a4f7610182174c09616aa930bbd990435
23 changes: 23 additions & 0 deletions trunk/drivers/staging/tm6000/tm6000-stds.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,13 @@ static int tm6000_load_std(struct tm6000_core *dev,
if (!set[i].req)
return 0;

/* FIXME: REQ 8 settings are for tm6010
not tested yet
This doesn't work with tm5600
*/
if (set[i].req == REQ_08_SET_GET_AVREG_BIT)
continue;

rc = tm6000_set_reg(dev, set[i].req, set[i].reg, set[i].value);
if (rc < 0) {
printk(KERN_ERR "Error %i while setting "
Expand All @@ -797,6 +804,22 @@ static int tm6000_set_tv(struct tm6000_core *dev, int pos)
{
int rc;

/* FIXME: This code is for tm6010 - not tested yet - doesn't work with
tm5600
*/

/* FIXME: This is tuner-dependent */
int nosif = 0;

if (nosif) {
rc = tm6000_load_std(dev, tv_stds[pos].nosif,
sizeof(tv_stds[pos].nosif));
} else {
rc = tm6000_load_std(dev, tv_stds[pos].sif,
sizeof(tv_stds[pos].sif));
}
if (rc < 0)
return rc;
rc = tm6000_load_std(dev, tv_stds[pos].common,
sizeof(tv_stds[pos].common));

Expand Down

0 comments on commit 8b4f88f

Please sign in to comment.