diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-23 12:36:18 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-23 12:36:18 -0200 |
commit | bdd18e571783ff031a46480596c182254c1c1835 (patch) | |
tree | 0abeac3411b64f40dc1125e90656d398bc79a159 /linux/drivers/media/video/tuner-xc2028.c | |
parent | f7270daec4b6c2150ec15124e2051b371fa1e663 (diff) | |
download | mediapointer-dvb-s2-bdd18e571783ff031a46480596c182254c1c1835.tar.gz mediapointer-dvb-s2-bdd18e571783ff031a46480596c182254c1c1835.tar.bz2 |
Sets a default std, if not specified
From: Mauro Carvalho Chehab <mchehab@infradead.org>
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 <mchehab@infradead.org>
---
linux/drivers/media/video/tuner-xc2028.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Diffstat (limited to 'linux/drivers/media/video/tuner-xc2028.c')
-rw-r--r-- | linux/drivers/media/video/tuner-xc2028.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |