aboutsummaryrefslogtreecommitdiff
path: root/include/media/i2c/ir-kbd-i2c.h
diff options
context:
space:
mode:
authorGravatar Sean Young <sean@mess.org> 2017-10-21 08:16:47 -0400
committerGravatar Mauro Carvalho Chehab <mchehab@s-opensource.com> 2017-12-14 09:58:20 -0500
commitacaa34bf06e963f0b9481a3c16bfd6867e2369a0 (patch)
treea6fb49b4796eae34b9b4a301e5d8945e422d8655 /include/media/i2c/ir-kbd-i2c.h
parentmedia: merge ir_tx_z8f0811_haup and ir_rx_z8f0811_haup i2c devices (diff)
downloadlinux-acaa34bf06e963f0b9481a3c16bfd6867e2369a0.tar.gz
linux-acaa34bf06e963f0b9481a3c16bfd6867e2369a0.tar.bz2
linux-acaa34bf06e963f0b9481a3c16bfd6867e2369a0.zip
media: rc: implement zilog transmitter
This code implements the transmitter which is currently implemented in the staging lirc_zilog driver. The new code does not need a signal database, iow. the haup-ir-blaster.bin firmware file is no longer needed, and the driver does not know anything about the keycodes in that file. Instead, the new driver can send raw IR, but the hardware is limited to few different lengths of pulse and spaces, so it is best to use generated IR rather than recorded IR. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media/i2c/ir-kbd-i2c.h')
-rw-r--r--include/media/i2c/ir-kbd-i2c.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/i2c/ir-kbd-i2c.h b/include/media/i2c/ir-kbd-i2c.h
index 1a9df1ae533f..9f47d6a48cff 100644
--- a/include/media/i2c/ir-kbd-i2c.h
+++ b/include/media/i2c/ir-kbd-i2c.h
@@ -23,6 +23,11 @@ struct IR_i2c {
int (*get_key)(struct IR_i2c *ir,
enum rc_proto *protocol,
u32 *scancode, u8 *toggle);
+ /* tx */
+ struct i2c_client *tx_c;
+ struct mutex lock; /* do not poll Rx during Tx */
+ unsigned int carrier;
+ unsigned int duty_cycle;
};
enum ir_kbd_get_key_fn {