Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76345
b: refs/heads/master
c: 882876b
h: refs/heads/master
i:
  76343: 05bca91
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 20bccb0 commit f498276
Show file tree
Hide file tree
Showing 2 changed files with 18 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: 48aa336a842ad3bd4f031f14fb6d06b0274c38f9
refs/heads/master: 882876bf9780fac570184b719a76140a1b1e4178
17 changes: 17 additions & 0 deletions trunk/drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <media/v4l2-common.h>

#include "em28xx.h"
#include "tuner-xc2028.h"

struct em28xx_board em28xx_boards[] = {
[EM2800_BOARD_UNKNOWN] = {
Expand Down Expand Up @@ -362,6 +363,21 @@ void em28xx_pre_card_setup(struct em28xx *dev)
}
}

static void em28xx_config_tuner (struct em28xx *dev)
{
struct v4l2_priv_tun_config xc2028_cfg;
struct xc2028_ctrl ctl;

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

ctl.fname = XC2028_DEFAULT_FIRMWARE;

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

em28xx_i2c_call_clients(dev, TUNER_SET_CONFIG, &xc2028_cfg);
}

void em28xx_card_setup(struct em28xx *dev)
{
/* request some modules */
Expand Down Expand Up @@ -394,6 +410,7 @@ void em28xx_card_setup(struct em28xx *dev)
}

}
em28xx_config_tuner (dev);
}

MODULE_DEVICE_TABLE (usb, em28xx_id_table);

0 comments on commit f498276

Please sign in to comment.