Skip to content

Commit

Permalink
V4L/DVB (6658): Sets a default std, if not specified
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 25, 2008
1 parent c71d4bc commit a5e9fe1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,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
Expand Down

0 comments on commit a5e9fe1

Please sign in to comment.