V4L/DVB: IR: add tx callbacks to ir-core
authorJarod Wilson <jarod@redhat.com>
Wed, 16 Jun 2010 20:55:25 +0000 (17:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:56:07 +0000 (14:56 -0300)
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/ir-core.h

index ad1303f20e002d0484a056d432ca24d11a41e2f8..9b957af2158819feb0c28ec37216deb4e2b60b83 100644 (file)
@@ -47,15 +47,21 @@ enum rc_driver_type {
  *     is opened.
  * @close: callback to allow drivers to disable polling/irq when IR input device
  *     is opened.
+ * @s_tx_mask: set transmitter mask (for devices with multiple tx outputs)
+ * @s_tx_carrier: set transmit carrier frequency
+ * @tx_ir: transmit IR
  */
 struct ir_dev_props {
        enum rc_driver_type     driver_type;
        unsigned long           allowed_protos;
        u32                     scanmask;
-       void                    *priv;
+       void                    *priv;
        int                     (*change_protocol)(void *priv, u64 ir_type);
        int                     (*open)(void *priv);
        void                    (*close)(void *priv);
+       int                     (*s_tx_mask)(void *priv, u32 mask);
+       int                     (*s_tx_carrier)(void *priv, u32 carrier);
+       int                     (*tx_ir)(void *priv, const char *buf, u32 n);
 };
 
 struct ir_input_dev {