diff options
| author | Henrik Rydberg <rydberg@bitmath.org> | 2010-08-18 11:01:28 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@bitmath.org> | 2010-08-18 11:01:28 +0200 |
| commit | 810cef87de0d65e505e68ad39c469c2e9ce6d0a1 (patch) | |
| tree | e519d00af38becc6d14a13a303298cba6cca8d59 /src | |
| parent | e91311dc01f970b687da4f00810cf40d3d37a5e4 (diff) | |
Correct logic for kernel MT slots devices
This patch fixes the broken logic to detect the kernel MT slots protocol,
such that MT slots devices may pass through mtdev properly.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -369,10 +369,10 @@ void mtdev_put_event(struct mtdev *dev, const struct input_event *ev) | |||
| 369 | struct mtdev_state *state = dev->state; | 369 | struct mtdev_state *state = dev->state; |
| 370 | if (ev->type == EV_SYN && ev->code == SYN_REPORT) { | 370 | if (ev->type == EV_SYN && ev->code == SYN_REPORT) { |
| 371 | bitmask_t head = state->outbuf.head; | 371 | bitmask_t head = state->outbuf.head; |
| 372 | if (dev->state) | 372 | if (dev->caps.has_slot) |
| 373 | convert_A_to_B(state, &dev->caps, ev); | ||
| 374 | else | ||
| 375 | process_typeB(state); | 373 | process_typeB(state); |
| 374 | else | ||
| 375 | convert_A_to_B(state, &dev->caps, ev); | ||
| 376 | if (state->outbuf.head != head) | 376 | if (state->outbuf.head != head) |
| 377 | evbuf_put(&state->outbuf, ev); | 377 | evbuf_put(&state->outbuf, ev); |
| 378 | } else { | 378 | } else { |
