diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-08-21 00:25:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:07:35 -0400 |
commit | e18f9444bda60a67e6feef00c354f8de0cdaeba7 (patch) | |
tree | 249fdd5ffa57459f8e126987ccef51e7cb69f893 /drivers/media/dvb | |
parent | db8a695658cda21eacfa2a5e3b15e8964bfb93ef (diff) |
V4L/DVB (6128): hybrid tuner refactoring core changes, phase 1
Prepare tuner-core for conversion of tuner sub-drivers into
dvb_frontend modules
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Oliver Endriss <o.endriss@gmx.de>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h index f95de63d0e24..ffb83b0f68c3 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb/dvb-core/dvb_frontend.h | |||
@@ -62,6 +62,13 @@ struct dvb_tuner_info { | |||
62 | u32 bandwidth_step; | 62 | u32 bandwidth_step; |
63 | }; | 63 | }; |
64 | 64 | ||
65 | struct analog_parameters { | ||
66 | unsigned int frequency; | ||
67 | unsigned int mode; | ||
68 | unsigned int audmode; | ||
69 | u64 std; | ||
70 | }; | ||
71 | |||
65 | struct dvb_tuner_ops { | 72 | struct dvb_tuner_ops { |
66 | 73 | ||
67 | struct dvb_tuner_info info; | 74 | struct dvb_tuner_info info; |
@@ -72,6 +79,7 @@ struct dvb_tuner_ops { | |||
72 | 79 | ||
73 | /** This is for simple PLLs - set all parameters in one go. */ | 80 | /** This is for simple PLLs - set all parameters in one go. */ |
74 | int (*set_params)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p); | 81 | int (*set_params)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p); |
82 | int (*set_analog_params)(struct dvb_frontend *fe, struct analog_parameters *p); | ||
75 | 83 | ||
76 | /** This is support for demods like the mt352 - fills out the supplied buffer with what to write. */ | 84 | /** This is support for demods like the mt352 - fills out the supplied buffer with what to write. */ |
77 | int (*calc_regs)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p, u8 *buf, int buf_len); | 85 | int (*calc_regs)(struct dvb_frontend *fe, struct dvb_frontend_parameters *p, u8 *buf, int buf_len); |
@@ -80,6 +88,7 @@ struct dvb_tuner_ops { | |||
80 | int (*get_bandwidth)(struct dvb_frontend *fe, u32 *bandwidth); | 88 | int (*get_bandwidth)(struct dvb_frontend *fe, u32 *bandwidth); |
81 | 89 | ||
82 | #define TUNER_STATUS_LOCKED 1 | 90 | #define TUNER_STATUS_LOCKED 1 |
91 | #define TUNER_STATUS_STEREO 2 | ||
83 | int (*get_status)(struct dvb_frontend *fe, u32 *status); | 92 | int (*get_status)(struct dvb_frontend *fe, u32 *status); |
84 | 93 | ||
85 | /** These are provided seperately from set_params in order to facilitate silicon | 94 | /** These are provided seperately from set_params in order to facilitate silicon |