diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-24 11:20:15 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-24 11:20:15 -0200 |
commit | a3f42f87571222b1c3f3cb9204a0964b30ed19bc (patch) | |
tree | 5c7227e9cace555f1673a99253bbb0acaf819d41 /linux | |
parent | c1416918308fc0c5dbfbf514291220d300d6b462 (diff) | |
download | mediapointer-dvb-s2-a3f42f87571222b1c3f3cb9204a0964b30ed19bc.tar.gz mediapointer-dvb-s2-a3f42f87571222b1c3f3cb9204a0964b30ed19bc.tar.bz2 |
Add support for radio
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/tuner-xc2028.c | 8 | ||||
-rw-r--r-- | linux/drivers/media/video/tuner-xc2028.h | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-xc2028.c b/linux/drivers/media/video/tuner-xc2028.c index 9cdce0913..c17950e36 100644 --- a/linux/drivers/media/video/tuner-xc2028.c +++ b/linux/drivers/media/video/tuner-xc2028.c @@ -906,6 +906,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; diff --git a/linux/drivers/media/video/tuner-xc2028.h b/linux/drivers/media/video/tuner-xc2028.h index a59d00fb2..02e116b54 100644 --- a/linux/drivers/media/video/tuner-xc2028.h +++ b/linux/drivers/media/video/tuner-xc2028.h @@ -15,8 +15,9 @@ struct xc2028_ctrl { char *fname; int max_len; unsigned int scode_table; - unsigned int mts :1; - unsigned int d2633:1; + unsigned int mts :1; + unsigned int d2633 :1; + unsigned int input1:1; }; struct xc2028_config { |