aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-29 10:33:18 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:34 -0500
commit882876bf9780fac570184b719a76140a1b1e4178 (patch)
tree44760ff3e154de6ec2eaabb801c69b55ea81ba1b /drivers/media
parent48aa336a842ad3bd4f031f14fb6d06b0274c38f9 (diff)
V4L/DVB (6474): Add support for tuner-xc2028
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/em28xx/em28xx-cards.c17
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
39struct em28xx_board em28xx_boards[] = { 40struct 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
366static 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
365void em28xx_card_setup(struct em28xx *dev) 381void 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
399MODULE_DEVICE_TABLE (usb, em28xx_id_table); 416MODULE_DEVICE_TABLE (usb, em28xx_id_table);