Skip to content

Create gesture events for mce and enable CIFS module#3

Open
wdehoog wants to merge 6 commits into
mer-hybris:hybris-12.1from
wdehoog:hybris-12.1
Open

Create gesture events for mce and enable CIFS module#3
wdehoog wants to merge 6 commits into
mer-hybris:hybris-12.1from
wdehoog:hybris-12.1

Conversation

@wdehoog

@wdehoog wdehoog commented Jan 18, 2017

Copy link
Copy Markdown

No description provided.

@@ -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);

Copy link
Copy Markdown

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?

Copy link
Copy Markdown
Author

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.

Copy link
Copy Markdown

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);

Copy link
Copy Markdown

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);

Copy link
Copy Markdown
Author

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.

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants