diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 2d72de0e7564..98dc12019076 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <media/v4l2-common.h> | 35 | #include <media/v4l2-common.h> |
36 | 36 | ||
37 | #include "em28xx.h" | 37 | #include "em28xx.h" |
38 | #include "tuner-xc2028.h" | ||
38 | 39 | ||
39 | struct em28xx_board em28xx_boards[] = { | 40 | struct em28xx_board em28xx_boards[] = { |
40 | [EM2800_BOARD_UNKNOWN] = { | 41 | [EM2800_BOARD_UNKNOWN] = { |
@@ -362,6 +363,21 @@ void em28xx_pre_card_setup(struct em28xx *dev) | |||
362 | } | 363 | } |
363 | } | 364 | } |
364 | 365 | ||
366 | static void em28xx_config_tuner (struct em28xx *dev) | ||
367 | { | ||
368 | struct v4l2_priv_tun_config xc2028_cfg; | ||
369 | struct xc2028_ctrl ctl; | ||
370 | |||
371 | memset (&ctl,0,sizeof(ctl)); | ||
372 | |||
373 | ctl.fname = XC2028_DEFAULT_FIRMWARE; | ||
374 | |||
375 | xc2028_cfg.tuner = TUNER_XC2028; | ||
376 | xc2028_cfg.priv = &ctl; | ||
377 | |||
378 | em28xx_i2c_call_clients(dev, TUNER_SET_CONFIG, &xc2028_cfg); | ||
379 | } | ||
380 | |||
365 | void em28xx_card_setup(struct em28xx *dev) | 381 | void em28xx_card_setup(struct em28xx *dev) |
366 | { | 382 | { |
367 | /* request some modules */ | 383 | /* request some modules */ |
@@ -394,6 +410,7 @@ void em28xx_card_setup(struct em28xx *dev) | |||
394 | } | 410 | } |
395 | 411 | ||
396 | } | 412 | } |
413 | em28xx_config_tuner (dev); | ||
397 | } | 414 | } |
398 | 415 | ||
399 | MODULE_DEVICE_TABLE (usb, em28xx_id_table); | 416 | MODULE_DEVICE_TABLE (usb, em28xx_id_table); |