By Date: <-- -->
By Thread: <-- -->

cx88-input.c: add IR remote control support to CX88_BOARD_PROLINK_PLAYTVPVR



This patch adds support for the IR remote control found in the card
CX88_BOARD_PROLINK_PLAYTVPVR. It requires my previous patch, [PATCH]
cx88-cards.c: fix values of gpio0 for card
CX88_BOARD_PROLINK_PLAYTVPVR, to function correctly, but it should
compile cleanly without it, the only side effect would be the driver
registering a input device which doesnt output anything.

I added a case statement which falls-thru in order to reuse the entry
for the card CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO. All settings are
the same, so i it seemed sane to do this way.


Signed-off-by: Matheus Izvekov <mizvekov (at) gmail.com>

--- a/drivers/media/video/cx88/cx88-input.c
+++ b/drivers/media/video/cx88/cx88-input.c
 (at)  (at)  -517,6 +517,7  (at)  (at)  int cx88_ir_init(struct cx88_core *core,
                ir->mask_keydown = 0x02;
                ir->polling = 5; /* ms */
                break;
+       case CX88_BOARD_PROLINK_PLAYTVPVR:
        case CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO:
                ir_codes = ir_codes_pixelview;
                ir->gpio_addr = MO_GP1_IO;

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list