-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create gesture events for mce and enable CIFS module #3
base: hybris-12.1
Are you sure you want to change the base?
Conversation
@@ -3809,11 +3857,14 @@ static void synaptics_rmi4_set_params(struct synaptics_rmi4_data *rmi4_data) | |||
set_bit(KEY_HOMEPAGE, rmi4_data->input_dev->keybit); | |||
set_bit(KEY_F3, rmi4_data->input_dev->keybit); | |||
set_bit(KEY_DOUBLE_TAP, rmi4_data->input_dev->keybit); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should KEY_DOUBLE_TAP be disabled too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that mce could also handle a power key event generated by the touch screen. That and the fact that it was not disabled in the onyx kernel let me decide to leave it enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MCE can/does handle power key as double tap, but I was thinking more in the line of: "After the changes elsewhere, is the kernel driver ever going to emit power key events anymore?" If not (i.e. KEY_DOUBLE_TAP aka KEY_POWER is always converted to MSC_GESTURE event), then it would be incorrect to claim that the input device can emit power key events.
set_bit(KEY_GESTURE_LTR, rmi4_data->input_dev->keybit); | ||
set_bit(KEY_GESTURE_GTR, rmi4_data->input_dev->keybit); | ||
set_bit(EV_MSC, rmi4_data->input_dev->evbit); | ||
rmi4_data->input_dev->mscbit[0] = BIT_MASK(MSC_GESTURE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit odd to me. Was expecting to see series of calls like
set_bit(MSC_GESTURE_xxx, rmi4_data->input_dev->mscbit);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed that would probably work. It compiles but it will take me some time to verify it's working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I think I was confused for a while.
With here is only one gesture "event" (that can have multiple values). So unless there are other MSC_xxx events, then your original code was correct.
If there are other than MSC_GESTURE events, then using:
set_bit(MSC_GESTURE, rmi4_data->input_dev->mscbit);
would not clear other already set bits.
native vibrator support
No description provided.