summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-driver.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-08 15:06:30 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-12-08 15:06:30 -0500
commit017775baf90cbd3c43a14e4d10e00e1aca9f98f2 (patch)
treefbf6c16cc47c1ef61a50941a0d99d9606b3952ab /linux/drivers/media/video/tuner-driver.h
parent9cb13d03db18063f6095559ae6578d2c264f3499 (diff)
downloadmediapointer-dvb-s2-017775baf90cbd3c43a14e4d10e00e1aca9f98f2.tar.gz
mediapointer-dvb-s2-017775baf90cbd3c43a14e4d10e00e1aca9f98f2.tar.bz2
tuner: combine set_tv_freq and set_radio_freq into a single set_params method
From: Michael Krufky <mkrufky@linuxtv.org> We can tell whether we are tuning television or radio by testing for struct analog_parameters *params->mode == V4L2_TUNER_RADIO There is no longer any need for separate set_tv_freq and set_radio_freq functions in the analog tuner demodulator modules. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-driver.h')
-rw-r--r--linux/drivers/media/video/tuner-driver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tuner-driver.h b/linux/drivers/media/video/tuner-driver.h
index a4db32d97..91913ee08 100644
--- a/linux/drivers/media/video/tuner-driver.h
+++ b/linux/drivers/media/video/tuner-driver.h
@@ -32,8 +32,8 @@ extern unsigned const int tuner_count;
struct tuner;
struct analog_tuner_ops {
- void (*set_tv_freq)(struct dvb_frontend *fe, unsigned int freq);
- void (*set_radio_freq)(struct dvb_frontend *fe, unsigned int freq);
+ void (*set_params)(struct dvb_frontend *fe,
+ struct analog_parameters *params);
int (*has_signal)(struct dvb_frontend *fe);
int (*is_stereo)(struct dvb_frontend *fe);
int (*get_afc)(struct dvb_frontend *fe);