summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorJarod Wilson <jarod@redhat.com>2010-06-16 17:55:25 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 14:56:07 -0300
commit9b7c54d926284c5277cff3ef3cfe29f26568306a (patch)
tree1d0d196e7a91f9c1a0da8d629939e8eeff2cf7a6 /include/media
parentd732a72de4f7dfe69eb8028da0f7cfd1852fb7dc (diff)
V4L/DVB: IR: add tx callbacks to ir-core
Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ir-core.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/media/ir-core.h b/include/media/ir-core.h
index ad1303f20e00..9b957af21588 100644
--- a/include/media/ir-core.h
+++ b/include/media/ir-core.h
@@ -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 {