Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76385
b: refs/heads/master
c: f8b6030
h: refs/heads/master
i:
  76383: 4e4d1d7
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent a4e4778 commit 3048b74
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 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: b873e1a3ccf9e04d2de85db0d510ec4b793fe569
refs/heads/master: f8b6030ccca06bf0d45d9b0908caac9b624a9beb
29 changes: 21 additions & 8 deletions trunk/drivers/media/video/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,26 @@ static int em28xx_hint_board(struct em28xx *dev)
return -1;
}


static void em28xx_set_model(struct em28xx *dev)
{
dev->is_em2800 = em28xx_boards[dev->model].is_em2800;
dev->has_tuner = em28xx_boards[dev->model].has_tuner;
dev->has_msp34xx = em28xx_boards[dev->model].has_msp34xx;
dev->tda9887_conf = em28xx_boards[dev->model].tda9887_conf;
dev->decoder = em28xx_boards[dev->model].decoder;
dev->video_inputs = em28xx_boards[dev->model].vchannels;

if (!em28xx_boards[dev->model].has_tuner)
dev->tuner_type = UNSET;
}

void em28xx_card_setup(struct em28xx *dev)
{
em28xx_set_model(dev);

dev->tuner_type = em28xx_boards[dev->model].tuner_type;

/* request some modules */
switch (dev->model) {
case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2:
Expand Down Expand Up @@ -593,16 +611,11 @@ void em28xx_card_setup(struct em28xx *dev)
break;
case EM2820_BOARD_UNKNOWN:
case EM2800_BOARD_UNKNOWN:
em28xx_hint_board(dev);
if (!em28xx_hint_board(dev))
em28xx_set_model(dev);
}

dev->is_em2800 = em28xx_boards[dev->model].is_em2800;
dev->has_tuner = em28xx_boards[dev->model].has_tuner;
dev->has_msp34xx = em28xx_boards[dev->model].has_msp34xx;
dev->tda9887_conf = em28xx_boards[dev->model].tda9887_conf;
dev->decoder = em28xx_boards[dev->model].decoder;
dev->video_inputs = em28xx_boards[dev->model].vchannels;

/* Allow override tuner type by a module parameter */
if (tuner >= 0)
dev->tuner_type = tuner;

Expand Down

0 comments on commit 3048b74

Please sign in to comment.