V4L/DVB: cx23885: Add support for LEADTEK WinFast PxTV1200
[deliverable/linux.git] / drivers / media / video / cx23885 / cx23885-video.c
index 8934d61cf66038f2deb8e4d3022f2dfe313c9268..2d3ac8b83dc31aa34f19009d5345090361a066d7 100644 (file)
@@ -36,6 +36,7 @@
 #include <media/v4l2-common.h>
 #include <media/v4l2-ioctl.h>
 #include "cx23885-ioctl.h"
+#include "tuner-xc2028.h"
 
 MODULE_DESCRIPTION("v4l2 driver module for cx23885 based TV cards");
 MODULE_AUTHOR("Steven Toth <stoth@linuxtv.org>");
@@ -1505,6 +1506,18 @@ int cx23885_video_register(struct cx23885_dev *dev)
                        tun_setup.tuner_callback = cx23885_tuner_callback;
 
                        v4l2_subdev_call(sd, tuner, s_type_addr, &tun_setup);
+
+                       if (dev->board == CX23885_BOARD_LEADTEK_WINFAST_PXTV1200) {
+                               struct xc2028_ctrl ctrl = {
+                                       .fname = XC2028_DEFAULT_FIRMWARE,
+                                       .max_len = 64
+                               };
+                               struct v4l2_priv_tun_config cfg = {
+                                       .tuner = dev->tuner_type,
+                                       .priv = &ctrl
+                               };
+                               v4l2_subdev_call(sd, tuner, s_config, &cfg);
+                       }
                }
        }
 
This page took 0.024088 seconds and 5 git commands to generate.