Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192666
b: refs/heads/master
c: d544f2c
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 18, 2010
1 parent 8cd8134 commit 5f9aad1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7594304ee775608256b60b3628e795306196a283
refs/heads/master: d544f2c33f39086fe08cfabe98bd2a36592c5ffb
22 changes: 22 additions & 0 deletions trunk/drivers/staging/tm6000/tm6000-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "tm6000.h"
#include "tm6000-regs.h"
#include "tuner-xc2028.h"

#define TM6000_BOARD_UNKNOWN 0
#define TM5600_BOARD_GENERIC 1
Expand Down Expand Up @@ -156,6 +157,24 @@ struct usb_device_id tm6000_id_table [] = {
{ },
};

static void tm6000_config_tuner (struct tm6000_core *dev)
{
struct v4l2_priv_tun_config xc2028_cfg;
struct xc2028_ctrl ctl;

memset (&ctl,0,sizeof(ctl));

ctl.fname = "tm6000-xc3028.fw";
ctl.type = XC2028_FIRM_MTS;

xc2028_cfg.tuner = TUNER_XC2028;
xc2028_cfg.priv = &ctl;

printk("Setting firmware parameters for tm6000\n");

tm6000_i2c_call_clients(dev, TUNER_SET_CONFIG, &xc2028_cfg);
}

static int tm6000_init_dev(struct tm6000_core *dev)
{
struct v4l2_frequency f;
Expand Down Expand Up @@ -191,6 +210,9 @@ static int tm6000_init_dev(struct tm6000_core *dev)

/* Request tuner */
request_module ("tuner");

tm6000_config_tuner (dev);

// norm=V4L2_STD_NTSC_M;
dev->norm=V4L2_STD_PAL_M;
tm6000_i2c_call_clients(dev, VIDIOC_S_STD, &dev->norm);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/tm6000/tm6000-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ int tm6000_init (struct tm6000_core *dev)

msleep(50);

return 0;

#endif /* HACK */

return 0;
}

#define tm6000_wrt(dev,req,reg,val, data...) \
Expand Down

0 comments on commit 5f9aad1

Please sign in to comment.