Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232230
b: refs/heads/master
c: 22f3771
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter authored and Mauro Carvalho Chehab committed Jan 19, 2011
1 parent 17dfd84 commit a2189ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c61be446ae5c26e2829d37c6b5d02d3af536024
refs/heads/master: 22f37712f29868b393025aa28bee807b4d2783ea
9 changes: 6 additions & 3 deletions trunk/drivers/media/dvb/firewire/firedtv-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ void fdtv_unregister_rc(struct firedtv *fdtv)

void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)
{
u16 *keycode = fdtv->remote_ctrl_dev->keycode;
struct input_dev *idev = fdtv->remote_ctrl_dev;
u16 *keycode = idev->keycode;

if (code >= 0x0300 && code <= 0x031f)
code = keycode[code - 0x0300];
Expand All @@ -188,6 +189,8 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)
return;
}

input_report_key(fdtv->remote_ctrl_dev, code, 1);
input_report_key(fdtv->remote_ctrl_dev, code, 0);
input_report_key(idev, code, 1);
input_sync(idev);
input_report_key(idev, code, 0);
input_sync(idev);
}

0 comments on commit a2189ec

Please sign in to comment.