mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-07 22:34:18 +08:00
[media] dvb-usb-remote: don't write bogus debug messages
When a REMOTE_KEY_PRESSED event happens, it does the right thing. However, if debug is enabled, it will print a bogus message warning that "key repeated". Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
a042023f1b
commit
39c4806e0a
@ -131,6 +131,11 @@ static void legacy_dvb_usb_read_remote_control(struct work_struct *work)
|
|||||||
case REMOTE_KEY_PRESSED:
|
case REMOTE_KEY_PRESSED:
|
||||||
deb_rc("key pressed\n");
|
deb_rc("key pressed\n");
|
||||||
d->last_event = event;
|
d->last_event = event;
|
||||||
|
input_event(d->input_dev, EV_KEY, event, 1);
|
||||||
|
input_sync(d->input_dev);
|
||||||
|
input_event(d->input_dev, EV_KEY, d->last_event, 0);
|
||||||
|
input_sync(d->input_dev);
|
||||||
|
break;
|
||||||
case REMOTE_KEY_REPEAT:
|
case REMOTE_KEY_REPEAT:
|
||||||
deb_rc("key repeated\n");
|
deb_rc("key repeated\n");
|
||||||
input_event(d->input_dev, EV_KEY, event, 1);
|
input_event(d->input_dev, EV_KEY, event, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user