diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 04:33:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:26 -0500 |
commit | ddf1c5f1d78c1ce30a7e6b2447670fc0e103bb62 (patch) | |
tree | 0b7efeb8e14f19082380a86bbf33fe94faa7b985 /drivers/media/video | |
parent | 2ce4b3aa7c3c199466ae9f5ed32ea177912c8c3a (diff) |
V4L/DVB (6640): xc2028: correctly select 8MHz firmware
We were using priv->bandwidth to select the base firmware to load, not the
requested bandwidth value, oops. Also, 7MHz Digital TV needs 8MHz base
firmware loaded.
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')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index e85992f970f7..adef80e627b8 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -608,7 +608,8 @@ static int check_firmware(struct dvb_frontend *fe, enum tuner_mode new_mode, | |||
608 | if (priv->ctrl.type == XC2028_FIRM_MTS) | 608 | if (priv->ctrl.type == XC2028_FIRM_MTS) |
609 | type0 |= MTS; | 609 | type0 |= MTS; |
610 | 610 | ||
611 | if (priv->bandwidth == 8) | 611 | if (bandwidth == BANDWIDTH_7_MHZ || |
612 | bandwidth == BANDWIDTH_8_MHZ) | ||
612 | type0 |= F8MHZ; | 613 | type0 |= F8MHZ; |
613 | 614 | ||
614 | /* FIXME: How to load FM and FM|INPUT1 firmwares? */ | 615 | /* FIXME: How to load FM and FM|INPUT1 firmwares? */ |
@@ -814,7 +815,8 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe, | |||
814 | tuner_dbg("%s called\n", __FUNCTION__); | 815 | tuner_dbg("%s called\n", __FUNCTION__); |
815 | 816 | ||
816 | return generic_set_tv_freq(fe, 62500l * p->frequency, T_ANALOG_TV, | 817 | return generic_set_tv_freq(fe, 62500l * p->frequency, T_ANALOG_TV, |
817 | p->std, BANDWIDTH_8_MHZ /* NOT USED */); | 818 | p->std, BANDWIDTH_8_MHZ); |
819 | /* XXX Are some analog standards 6MHz? */ | ||
818 | } | 820 | } |
819 | 821 | ||
820 | static int xc2028_set_params(struct dvb_frontend *fe, | 822 | static int xc2028_set_params(struct dvb_frontend *fe, |