From 92b2c2b2a16652e07af7aa5fa2ca3030aba14ab1 Mon Sep 17 00:00:00 2001 From: Chris Pascoe Date: Mon, 19 Nov 2007 23:23:17 +1000 Subject: xc2028: allow selection of D2633 firmware From: Chris Pascoe 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 Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tuner-xc2028.c | 7 ++++--- linux/drivers/media/video/tuner-xc2028.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'linux/drivers') diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c index 49f670e5a..50984bd23 100644 --- a/linux/drivers/media/video/tuner-xc2028.c +++ b/linux/drivers/media/video/tuner-xc2028.c @@ -680,9 +680,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? */ diff --git a/linux/drivers/media/video/tuner-xc2028.h b/linux/drivers/media/video/tuner-xc2028.h index a20eeb493..4edc4b735 100644 --- a/linux/drivers/media/video/tuner-xc2028.h +++ b/linux/drivers/media/video/tuner-xc2028.h @@ -20,6 +20,7 @@ struct xc2028_ctrl { enum xc2028_firm_type type; char *fname; int max_len; + int d2633:1; }; struct xc2028_config { -- cgit v1.2.3