summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-22 12:47:18 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-22 12:47:18 -0200
commitf7270daec4b6c2150ec15124e2051b371fa1e663 (patch)
treedcab4d26f04248f82a34996c276f971878024aa1 /linux/drivers/media/video
parentc5810836461ecca233f23cf834fe738ea36a95c8 (diff)
downloadmediapointer-dvb-s2-f7270daec4b6c2150ec15124e2051b371fa1e663.tar.gz
mediapointer-dvb-s2-f7270daec4b6c2150ec15124e2051b371fa1e663.tar.bz2
Fix standard selection for PAL/M, PAL/N, PAL/Nc and NTSC
From: Mauro Carvalho Chehab <mchehab@infradead.org> Those standards use 6 MHz firmware. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/tuner-xc2028.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c
index a14d24e1a..0f9158a21 100644
--- a/linux/drivers/media/video/tuner-xc2028.c
+++ b/linux/drivers/media/video/tuner-xc2028.c
@@ -925,12 +925,18 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe,
struct analog_parameters *p)
{
struct xc2028_data *priv = fe->tuner_priv;
+ fe_bandwidth_t bw;
+
+ /* FIXME: Maybe there are more 6 MHz video standards */
+ if (p->std & V4L2_STD_MN)
+ bw = BANDWIDTH_6_MHZ;
+ else
+ bw = BANDWIDTH_8_MHZ;
tuner_dbg("%s called\n", __FUNCTION__);
return generic_set_tv_freq(fe, 62500l * p->frequency, T_ANALOG_TV,
- p->std, BANDWIDTH_8_MHZ);
- /* XXX Are some analog standards 6MHz? */
+ p->std, bw);
}
static int xc2028_set_params(struct dvb_frontend *fe,