summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-10-29 11:33:18 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-29 11:33:18 -0300
commit066e2491364ea04d408a789efcaa152066e82cfe (patch)
treefae9c5721f8c173c85c5203b42849b9c88e29b61
parentd10b8499d66b31d7e906fe3303b9d86ad7a6858f (diff)
downloadmediapointer-dvb-s2-066e2491364ea04d408a789efcaa152066e82cfe.tar.gz
mediapointer-dvb-s2-066e2491364ea04d408a789efcaa152066e82cfe.tar.bz2
Add support for tuner-xc2028
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/em28xx/em28xx-cards.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-cards.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c
index 441b03d30..29d7031d1 100644
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c
@@ -36,6 +36,7 @@
#include <media/v4l2-common.h>
#include "em28xx.h"
+#include "tuner-xc2028.h"
struct em28xx_board em28xx_boards[] = {
[EM2800_BOARD_UNKNOWN] = {
@@ -363,6 +364,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 */
@@ -395,6 +411,7 @@ void em28xx_card_setup(struct em28xx *dev)
}
}
+ em28xx_config_tuner (dev);
}
MODULE_DEVICE_TABLE (usb, em28xx_id_table);