aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2009-01-19 06:01:24 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:35 -0400
commitaaf50d7d0e12ec797dc0677c4fc853839bdcf07d (patch)
tree7f37b0e8d20d4a87623968927769cfb27f676847 /drivers/media/video/saa7134/saa7134.h
parent9a909447d3af6917bf2f7eaae08af0c9e1c3593e (diff)
V4L/DVB (10394): KWorld ATSC 115 all static
saa7134: Fix tuner access on Kworld ATSC110 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134.h')
-rw-r--r--drivers/media/video/saa7134/saa7134.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
index bb6952118d01..6fbf5088c97a 100644
--- a/drivers/media/video/saa7134/saa7134.h
+++ b/drivers/media/video/saa7134/saa7134.h
@@ -589,6 +589,7 @@ struct saa7134_dev {
589 int (*original_set_voltage)(struct dvb_frontend *fe, fe_sec_voltage_t voltage); 589 int (*original_set_voltage)(struct dvb_frontend *fe, fe_sec_voltage_t voltage);
590 int (*original_set_high_voltage)(struct dvb_frontend *fe, long arg); 590 int (*original_set_high_voltage)(struct dvb_frontend *fe, long arg);
591#endif 591#endif
592 void (*gate_ctrl)(struct saa7134_dev *dev, int open);
592}; 593};
593 594
594/* ----------------------------------------------------------- */ 595/* ----------------------------------------------------------- */
@@ -618,10 +619,24 @@ struct saa7134_dev {
618 V4L2_STD_PAL_60) 619 V4L2_STD_PAL_60)
619 620
620#define GRP_EMPRESS (1) 621#define GRP_EMPRESS (1)
621#define saa_call_all(dev, o, f, args...) \ 622#define saa_call_all(dev, o, f, args...) do { \
622 v4l2_device_call_all(&(dev)->v4l2_dev, 0, o, f , ##args) 623 if (dev->gate_ctrl) \
623#define saa_call_empress(dev, o, f, args...) \ 624 dev->gate_ctrl(dev, 1); \
624 v4l2_device_call_until_err(&(dev)->v4l2_dev, GRP_EMPRESS, o, f , ##args) 625 v4l2_device_call_all(&(dev)->v4l2_dev, 0, o, f , ##args); \
626 if (dev->gate_ctrl) \
627 dev->gate_ctrl(dev, 0); \
628} while (0)
629
630#define saa_call_empress(dev, o, f, args...) ({ \
631 long _rc; \
632 if (dev->gate_ctrl) \
633 dev->gate_ctrl(dev, 1); \
634 _rc = v4l2_device_call_until_err(&(dev)->v4l2_dev, \
635 GRP_EMPRESS, o, f , ##args); \
636 if (dev->gate_ctrl) \
637 dev->gate_ctrl(dev, 0); \
638 _rc; \
639})
625 640
626/* ----------------------------------------------------------- */ 641/* ----------------------------------------------------------- */
627/* saa7134-core.c */ 642/* saa7134-core.c */