summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-10-21 08:16:47 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-14 09:58:20 -0500
commitacaa34bf06e963f0b9481a3c16bfd6867e2369a0 (patch)
treea6fb49b4796eae34b9b4a301e5d8945e422d8655 /include/media
parentab5222ed1691b522b196624794a904c879033afb (diff)
downloadop-kernel-dev-acaa34bf06e963f0b9481a3c16bfd6867e2369a0.zip
op-kernel-dev-acaa34bf06e963f0b9481a3c16bfd6867e2369a0.tar.gz
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')
-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 1a9df1a..9f47d6a 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 {
OpenPOWER on IntegriCloud