* They are checked as of 9762ac9c1b,
values > upstream linux SW_MAX will now cause a system_server crash
Change-Id: Ib26f230bfa663f78ec17fc91890679210558ad60
Now that we have partner approval, we can revert for real.
Revert submission 1382582
Reason for revert: QC confirms no longer needed
Reverted Changes:
Ie71a68da0:Revert "Revert "ANDROID: ALSA: jack: Update suppor...
Change-Id: Ibf10f8ab05d6705348a8475d9932ec0959b4b292
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
The sensors HAL passes ear_detect_enable,1 to /sys/class/sec/tsp/cmd, which leads to the proximity sensor being enabled.
So far it seems like 1 enables touch proximity, whereas 3 enables both hover proximity and touch proximity. It is yet to figure out if and what 2 does, but for now force enable the hover feature by altering the value passed by the HAL to 3.
Only enable hovering when the screen is not in LPM because turning on the hover feature breaks proximity when in LPM. While in LPM touch proximity will be used, otherwise touch proximity will be disabled.
Additionally we need to reset fod_pressed to 0 once we're entering LPM because enabling hovering sometimes prevents the driver from running into FTS_SPONGE_EVENT_GESTURE_ID_FOD_RELEASE, leaving fod_pressed sysf>
Change-Id: I7d77a79772d4661c5d1dc7dc64e144299c8f26d5
Signed-off-by: Simon1511 <me@simon1511.de>
* After the conversion from PCC to CSC for color trasformation,
all filters work correctly and are converted properly to CSC,
except for the color invert filter
* This filter is the only one using the `c` constant coefficient
in PCC, and it's almost impossible to conver to CSC, because
the PCC reported values are far off from the regular scale of
values that is being used, which makes converting the filter
to CSC extra complex
* To work around this, force PCC for all color filters when color
invert is enabled, which has the downside of not behaving as well
as CSC when using FOD, but still works just as good for all
other contexts
* We can use the `c` coefficient to understand if color invert is
enabled, since this is the only color filter that sets the value
to anything other than 0 (`32640`).
Change-Id: I097413be9c519c22ee71483bdc084512f05e0465
3 weeks ago
12 changed files with 50 additions and 41 deletions