]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
V4L/DVB (6645): xc2028: allow selection of D2633 firmware
authorChris Pascoe <c.pascoe@itee.uq.edu.au>
Mon, 19 Nov 2007 13:23:17 +0000 (10:23 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:30 +0000 (19:02 -0200)
Add a bit to select D2633 DTV firmware to struct xc2028_ctrl, so that it can
be enabled via .set_config.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-xc2028.c
drivers/media/video/tuner-xc2028.h

index fbaab68fd05cb0e04fc3203487f3aadb9f373309..a5efd5f6e57c73390952d57683d66a5187a07627 100644 (file)
@@ -665,9 +665,10 @@ static int check_firmware(struct dvb_frontend *fe, enum tuner_mode new_mode,
        tuner_dbg("I should change bandwidth %u\n", change_digital_bandwidth);
 
        if (change_digital_bandwidth) {
-
-               /*FIXME: Should allow selecting between D2620 and D2633 */
-               type |= D2620;
+               if (priv->ctrl.d2633)
+                       type |= D2633;
+               else
+                       type |= D2620;
 
                /* FIXME: When should select a DTV78 firmware?
                 */
index a20eeb4935d01e5053df3c241462ba396952199c..4edc4b735c84506fc6a3a8f91b3a531eac4178db 100644 (file)
@@ -20,6 +20,7 @@ struct xc2028_ctrl {
        enum xc2028_firm_type   type;
        char                    *fname;
        int                     max_len;
+       int                     d2633:1;
 };
 
 struct xc2028_config {