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>
This commit is contained in:
Родитель
d732a72de4
Коммит
9b7c54d926
|
@ -47,15 +47,21 @@ enum rc_driver_type {
|
||||||
* is opened.
|
* is opened.
|
||||||
* @close: callback to allow drivers to disable polling/irq when IR input device
|
* @close: callback to allow drivers to disable polling/irq when IR input device
|
||||||
* is opened.
|
* 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 {
|
struct ir_dev_props {
|
||||||
enum rc_driver_type driver_type;
|
enum rc_driver_type driver_type;
|
||||||
unsigned long allowed_protos;
|
unsigned long allowed_protos;
|
||||||
u32 scanmask;
|
u32 scanmask;
|
||||||
void *priv;
|
void *priv;
|
||||||
int (*change_protocol)(void *priv, u64 ir_type);
|
int (*change_protocol)(void *priv, u64 ir_type);
|
||||||
int (*open)(void *priv);
|
int (*open)(void *priv);
|
||||||
void (*close)(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 {
|
struct ir_input_dev {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче