From bdd18e571783ff031a46480596c182254c1c1835 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 23 Nov 2007 12:36:18 -0200 Subject: Sets a default std, if not specified From: Mauro Carvalho Chehab Some drivers call set_frequency before selecting the video standard. Before this patch, an invalid standard ID could be assumed. Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tuner-xc2028.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- linux/drivers/media/video/tuner-xc2028.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c index 0f9158a21..a802a9071 100644 --- a/linux/drivers/media/video/tuner-xc2028.c +++ b/linux/drivers/media/video/tuner-xc2028.c @@ -927,7 +927,11 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe, struct xc2028_data *priv = fe->tuner_priv; fe_bandwidth_t bw; - /* FIXME: Maybe there are more 6 MHz video standards */ + /* if std is not defined, choose one */ + if (!p->std) + p->std = V4L2_STD_MN; + + /* PAL/M, PAL/N, PAL/Nc and NTSC variants should use 6MHz firmware */ if (p->std & V4L2_STD_MN) bw = BANDWIDTH_6_MHZ; else -- cgit v1.2.3