diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-09-10 00:39:20 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-09-10 00:39:20 -0400 |
commit | 458d337d90095b5d546c442e37de79db65fc9dfd (patch) | |
tree | 99ab35b877bc6dcbf55cd3d63dc5f59b93e3d71e | |
parent | 57ba167023f217da9151306b24ac58d039441bad (diff) | |
download | mediapointer-dvb-s2-458d337d90095b5d546c442e37de79db65fc9dfd.tar.gz mediapointer-dvb-s2-458d337d90095b5d546c442e37de79db65fc9dfd.tar.bz2 |
add a general-purpose callback pointer to struct dvb_frontend
From: Michael Krufky <mkrufky@linuxtv.org>
Remove tuner_callback pointers from tuner driver configuration
and private state structures, replaced with a general-purpose
callback pointer within struct dvb_frontend.
A new parameter is added to the callback function, called
component. This allows us to use this callback pointer by
frontend components other than the tuner, if need be. So
far, this is only used by tuner drivers.
Priority: normal
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.h b/linux/drivers/media/dvb/dvb-core/dvb_frontend.h index 1207f29f2..a0c591b3b 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.h @@ -234,6 +234,8 @@ struct dvb_frontend { void *sec_priv; void *analog_demod_priv; struct dtv_frontend_properties dtv_property_cache; +#define DVB_FRONTEND_COMPONENT_TUNER 0 + int (*callback)(void *adapter_priv, int component, int cmd, int arg); }; extern int dvb_register_frontend(struct dvb_adapter *dvb, |