aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/af9033.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-02-13 13:40:59 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-14 19:26:25 -0400
commit040cf86c8a121905bf201f334a4848f35de29729 (patch)
tree83a07696c05d0290708bc9ceaf93f73f4760e7d4 /drivers/media/dvb-frontends/af9033.h
parent02b7220017cf29507aa789720a3576e7dd59fbe2 (diff)
[media] af9033: implement PID filter
Implement PID filter and export it via symbol. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/af9033.h')
-rw-r--r--drivers/media/dvb-frontends/af9033.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/af9033.h b/drivers/media/dvb-frontends/af9033.h
index c286e8f1ec02..de245f9adb65 100644
--- a/drivers/media/dvb-frontends/af9033.h
+++ b/drivers/media/dvb-frontends/af9033.h
@@ -81,6 +81,11 @@ struct af9033_config {
81#if IS_ENABLED(CONFIG_DVB_AF9033) 81#if IS_ENABLED(CONFIG_DVB_AF9033)
82extern struct dvb_frontend *af9033_attach(const struct af9033_config *config, 82extern struct dvb_frontend *af9033_attach(const struct af9033_config *config,
83 struct i2c_adapter *i2c); 83 struct i2c_adapter *i2c);
84
85extern int af9033_pid_filter_ctrl(struct dvb_frontend *fe, int onoff);
86
87extern int af9033_pid_filter(struct dvb_frontend *fe, int index, u16 pid,
88 int onoff);
84#else 89#else
85static inline struct dvb_frontend *af9033_attach( 90static inline struct dvb_frontend *af9033_attach(
86 const struct af9033_config *config, struct i2c_adapter *i2c) 91 const struct af9033_config *config, struct i2c_adapter *i2c)
@@ -88,6 +93,20 @@ static inline struct dvb_frontend *af9033_attach(
88 pr_warn("%s: driver disabled by Kconfig\n", __func__); 93 pr_warn("%s: driver disabled by Kconfig\n", __func__);
89 return NULL; 94 return NULL;
90} 95}
96
97static inline int af9033_pid_filter_ctrl(struct dvb_frontend *fe, int onoff)
98{
99 pr_warn("%s: driver disabled by Kconfig\n", __func__);
100 return -ENODEV;
101}
102
103static inline int af9033_pid_filter(struct dvb_frontend *fe, int index, u16 pid,
104 int onoff)
105{
106 pr_warn("%s: driver disabled by Kconfig\n", __func__);
107 return -ENODEV;
108}
109
91#endif 110#endif
92 111
93#endif /* AF9033_H */ 112#endif /* AF9033_H */