diff options
author | Jarod Wilson <jarod@redhat.com> | 2010-06-16 16:55:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 13:56:07 -0400 |
commit | 9b7c54d926284c5277cff3ef3cfe29f26568306a (patch) | |
tree | 1d0d196e7a91f9c1a0da8d629939e8eeff2cf7a6 /include | |
parent | d732a72de4f7dfe69eb8028da0f7cfd1852fb7dc (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')
-rw-r--r-- | include/media/ir-core.h | 8 |
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 { | |||
47 | * is opened. | 47 | * is opened. |
48 | * @close: callback to allow drivers to disable polling/irq when IR input device | 48 | * @close: callback to allow drivers to disable polling/irq when IR input device |
49 | * is opened. | 49 | * is opened. |
50 | * @s_tx_mask: set transmitter mask (for devices with multiple tx outputs) | ||
51 | * @s_tx_carrier: set transmit carrier frequency | ||
52 | * @tx_ir: transmit IR | ||
50 | */ | 53 | */ |
51 | struct ir_dev_props { | 54 | struct ir_dev_props { |
52 | enum rc_driver_type driver_type; | 55 | enum rc_driver_type driver_type; |
53 | unsigned long allowed_protos; | 56 | unsigned long allowed_protos; |
54 | u32 scanmask; | 57 | u32 scanmask; |
55 | void *priv; | 58 | void *priv; |
56 | int (*change_protocol)(void *priv, u64 ir_type); | 59 | int (*change_protocol)(void *priv, u64 ir_type); |
57 | int (*open)(void *priv); | 60 | int (*open)(void *priv); |
58 | void (*close)(void *priv); | 61 | void (*close)(void *priv); |
62 | int (*s_tx_mask)(void *priv, u32 mask); | ||
63 | int (*s_tx_carrier)(void *priv, u32 carrier); | ||
64 | int (*tx_ir)(void *priv, const char *buf, u32 n); | ||
59 | }; | 65 | }; |
60 | 66 | ||
61 | struct ir_input_dev { | 67 | struct ir_input_dev { |