summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-xc2028.c
diff options
context:
space:
mode:
authorChris Pascoe2007-11-19 14:23:17 +0100
committerMauro Carvalho Chehab2008-01-25 22:02:30 +0100
commit59a636e50f339f91880b3a1e395829c43cc6541a (patch)
tree2a850dd094d59c0ae9bada173113da70463c8857 /drivers/media/video/tuner-xc2028.c
parentV4L/DVB (6644): xc2028: use correct offset into scode firmware (diff)
downloadkernel-qcow2-linux-59a636e50f339f91880b3a1e395829c43cc6541a.tar.gz
kernel-qcow2-linux-59a636e50f339f91880b3a1e395829c43cc6541a.tar.xz
kernel-qcow2-linux-59a636e50f339f91880b3a1e395829c43cc6541a.zip
V4L/DVB (6645): xc2028: allow selection of D2633 firmware
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>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r--drivers/media/video/tuner-xc2028.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index fbaab68fd05c..a5efd5f6e57c 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -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?
*/