diff options
author | Andy Walls <awalls@radix.net> | 2009-07-28 10:50:14 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:18:27 -0400 |
commit | f5d887ae60ea1b05fcdab65e51e1ef88398ed274 (patch) | |
tree | 24fa2e4edaddfa27c3a8ad76c4476d7d31139648 /drivers/media/video/ir-kbd-i2c.c | |
parent | 8ca955689a957ecf956bb052f60412da2753a977 (diff) |
V4L/DVB (12368): ir-kbd-i2c: Add support for Z8F0811/Hauppage IR transceivers
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.
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>
Diffstat (limited to 'drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index f144acc400cd..b92ddcabf0b6 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -357,9 +357,11 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
357 | case 0x47: | 357 | case 0x47: |
358 | case 0x71: | 358 | case 0x71: |
359 | case 0x2d: | 359 | case 0x2d: |
360 | if (adap->id == I2C_HW_B_CX2388x) { | 360 | if (adap->id == I2C_HW_B_CX2388x || |
361 | adap->id == I2C_HW_B_CX2341X) { | ||
361 | /* Handled by cx88-input */ | 362 | /* Handled by cx88-input */ |
362 | name = "CX2388x remote"; | 363 | name = adap->id == I2C_HW_B_CX2341X ? "CX2341x remote" |
364 | : "CX2388x remote"; | ||
363 | ir_type = IR_TYPE_RC5; | 365 | ir_type = IR_TYPE_RC5; |
364 | ir->get_key = get_key_haup_xvr; | 366 | ir->get_key = get_key_haup_xvr; |
365 | if (hauppauge == 1) { | 367 | if (hauppauge == 1) { |
@@ -483,7 +485,8 @@ static int ir_remove(struct i2c_client *client) | |||
483 | static const struct i2c_device_id ir_kbd_id[] = { | 485 | static const struct i2c_device_id ir_kbd_id[] = { |
484 | /* Generic entry for any IR receiver */ | 486 | /* Generic entry for any IR receiver */ |
485 | { "ir_video", 0 }, | 487 | { "ir_video", 0 }, |
486 | /* IR device specific entries could be added here */ | 488 | /* IR device specific entries should be added here */ |
489 | { "ir_rx_z8f0811_haup", 0 }, | ||
487 | { } | 490 | { } |
488 | }; | 491 | }; |
489 | 492 | ||