diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-23 09:36:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:38 -0500 |
commit | a5e9fe149afb0fdf0de4729f1b0d203d4ac14906 (patch) | |
tree | 0600e5f8b9344611015680a73b70fa2ac37d92a7 /drivers/media/video/tuner-xc2028.c | |
parent | c71d4bc512dda42069c70219bd00315a91550367 (diff) |
V4L/DVB (6658): Sets a default std, if not specified
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>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 911831442b59..8fa3ab76fd5c 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -912,7 +912,11 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe, | |||
912 | struct xc2028_data *priv = fe->tuner_priv; | 912 | struct xc2028_data *priv = fe->tuner_priv; |
913 | fe_bandwidth_t bw; | 913 | fe_bandwidth_t bw; |
914 | 914 | ||
915 | /* FIXME: Maybe there are more 6 MHz video standards */ | 915 | /* if std is not defined, choose one */ |
916 | if (!p->std) | ||
917 | p->std = V4L2_STD_MN; | ||
918 | |||
919 | /* PAL/M, PAL/N, PAL/Nc and NTSC variants should use 6MHz firmware */ | ||
916 | if (p->std & V4L2_STD_MN) | 920 | if (p->std & V4L2_STD_MN) |
917 | bw = BANDWIDTH_6_MHZ; | 921 | bw = BANDWIDTH_6_MHZ; |
918 | else | 922 | else |