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

V4L/DVB (6672): Add support for radio

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 00deff1a
......@@ -891,6 +891,14 @@ static int xc2028_set_analog_freq(struct dvb_frontend *fe,
tuner_dbg("%s called\n", __FUNCTION__);
if (p->mode == V4L2_TUNER_RADIO) {
type |= FM;
if (priv->ctrl.input1)
type |= INPUT1;
return generic_set_freq(fe, (625l * p->frequency) / 10,
T_ANALOG_TV, type, 0);
}
/* if std is not defined, choose one */
if (!p->std)
p->std = V4L2_STD_MN;
......
......@@ -16,7 +16,8 @@ struct xc2028_ctrl {
int max_len;
unsigned int scode_table;
unsigned int mts :1;
unsigned int d2633:1;
unsigned int d2633 :1;
unsigned int input1:1;
};
struct xc2028_config {
......
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