diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-28 11:50:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-07-28 11:50:14 -0300 |
commit | e0cc8a30c11596d8e20080c03a1ee6d79b5b353a (patch) | |
tree | 481af86cfb54a6e8cef7004a1f80509090fe1762 | |
parent | 0be3a0fdedcfa1995a6b1398ccea67554e7edad6 (diff) | |
download | mediapointer-dvb-s2-e0cc8a30c11596d8e20080c03a1ee6d79b5b353a.tar.gz mediapointer-dvb-s2-e0cc8a30c11596d8e20080c03a1ee6d79b5b353a.tar.bz2 |
ir-kbd-i2c: Add support for Z8F0811/Hauppage IR transceivers
From: Andy Walls <awalls@radix.net>
This patch adds support for Zilog Z8F0811 IR transceiver chips on
CX2341[68] based boards to ir-kbd-i2c for both the old i2c binding model
and the new i2c binding model.
Priority: normal
Signed-off-by: Andy Walls <awalls@radix.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | linux/drivers/media/video/ir-kbd-i2c.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c index ae928be28..a1e8fb561 100644 --- a/linux/drivers/media/video/ir-kbd-i2c.c +++ b/linux/drivers/media/video/ir-kbd-i2c.c @@ -442,9 +442,11 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) case 0x47: case 0x71: case 0x2d: - if (adap->id == I2C_HW_B_CX2388x) { + if (adap->id == I2C_HW_B_CX2388x || + adap->id == I2C_HW_B_CX2341X) { /* Handled by cx88-input */ - name = "CX2388x remote"; + name = adap->id == I2C_HW_B_CX2341X ? "CX2341x remote" + : "CX2388x remote"; ir_type = IR_TYPE_RC5; ir->get_key = get_key_haup_xvr; if (hauppauge == 1) { @@ -726,7 +728,8 @@ static int ir_probe(struct i2c_adapter *adap) static const struct i2c_device_id ir_kbd_id[] = { /* Generic entry for any IR receiver */ { "ir_video", 0 }, - /* IR device specific entries could be added here */ + /* IR device specific entries should be added here */ + { "ir_rx_z8f0811_haup", 0 }, { } }; |