Commit a5e9fe14 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent c71d4bc5
...@@ -912,7 +912,11 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe, ...@@ -912,7 +912,11 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe,
struct xc2028_data *priv = fe->tuner_priv; struct xc2028_data *priv = fe->tuner_priv;
fe_bandwidth_t bw; 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) if (p->std & V4L2_STD_MN)
bw = BANDWIDTH_6_MHZ; bw = BANDWIDTH_6_MHZ;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment