diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-24 08:20:15 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:54 -0500 |
commit | d74cb25e427e2ef979107cbed67d39eba53a6b0f (patch) | |
tree | 1f8380327ef26592d862c4585b350dce84383176 /drivers/media | |
parent | 00deff1a076dc1cf6743813657623626720bf0f5 (diff) |
V4L/DVB (6672): Add support for radio
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 8 | ||||
-rw-r--r-- | drivers/media/video/tuner-xc2028.h | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 94f367ab5718..cef170cc2ad8 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -891,6 +891,14 @@ static int xc2028_set_analog_freq(struct dvb_frontend *fe, | |||
891 | 891 | ||
892 | tuner_dbg("%s called\n", __FUNCTION__); | 892 | tuner_dbg("%s called\n", __FUNCTION__); |
893 | 893 | ||
894 | if (p->mode == V4L2_TUNER_RADIO) { | ||
895 | type |= FM; | ||
896 | if (priv->ctrl.input1) | ||
897 | type |= INPUT1; | ||
898 | return generic_set_freq(fe, (625l * p->frequency) / 10, | ||
899 | T_ANALOG_TV, type, 0); | ||
900 | } | ||
901 | |||
894 | /* if std is not defined, choose one */ | 902 | /* if std is not defined, choose one */ |
895 | if (!p->std) | 903 | if (!p->std) |
896 | p->std = V4L2_STD_MN; | 904 | p->std = V4L2_STD_MN; |
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h index a59d00fb2a36..02e116b54592 100644 --- a/drivers/media/video/tuner-xc2028.h +++ b/drivers/media/video/tuner-xc2028.h | |||
@@ -15,8 +15,9 @@ struct xc2028_ctrl { | |||
15 | char *fname; | 15 | char *fname; |
16 | int max_len; | 16 | int max_len; |
17 | unsigned int scode_table; | 17 | unsigned int scode_table; |
18 | unsigned int mts :1; | 18 | unsigned int mts :1; |
19 | unsigned int d2633:1; | 19 | unsigned int d2633 :1; |
20 | unsigned int input1:1; | ||
20 | }; | 21 | }; |
21 | 22 | ||
22 | struct xc2028_config { | 23 | struct xc2028_config { |