diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-07 07:30:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:04:43 -0500 |
commit | b3d98135aa6e462d7e3f42a86d12483a9003a4da (patch) | |
tree | ef2f688e958b5a00096ad235918c26dc027c6349 | |
parent | 8d316bf54b2a1965f9460d0ad9d80850d2c7afb3 (diff) |
V4L/DVB (6981): Fix bugzillas 9686 and 9691
IR were not working for Winfast XP 2000 TV.
Gabor Nyekhelyi <n0gabor@vipmail.hu> wrote a hack some time ago:
http://marc.info/?l=linux-video&m=116362609323281&w=2
This patch fixes CodingStyle and commits the hack. I suspect that the proper
solution would be to find the proper mask_keydown for this IR. Anyway, better
to have this patch as a workaround.
Thanks to Stafan Talpalaru <stefantalpalaru@yahoo.com> for pointing the issue.
CC: Gabor Nyekhelyi <n0gabor@vipmail.hu>
CC: Stafan Talpalaru <stefantalpalaru@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/bt8xx/bttv-input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-input.c b/drivers/media/video/bt8xx/bttv-input.c index e7c521b8444a..fc9ecb21eec6 100644 --- a/drivers/media/video/bt8xx/bttv-input.c +++ b/drivers/media/video/bt8xx/bttv-input.c | |||
@@ -69,6 +69,11 @@ static void ir_handle_key(struct bttv *btv) | |||
69 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { | 69 | (ir->mask_keyup && (0 == (gpio & ir->mask_keyup)))) { |
70 | ir_input_keydown(ir->dev,&ir->ir,data,data); | 70 | ir_input_keydown(ir->dev,&ir->ir,data,data); |
71 | } else { | 71 | } else { |
72 | /* HACK: Probably, ir->mask_keydown is missing | ||
73 | for this board */ | ||
74 | if (btv->c.type == BTTV_BOARD_WINFAST2000) | ||
75 | ir_input_keydown(ir->dev, &ir->ir, data, data); | ||
76 | |||
72 | ir_input_nokey(ir->dev,&ir->ir); | 77 | ir_input_nokey(ir->dev,&ir->ir); |
73 | } | 78 | } |
74 | 79 | ||