-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2642 from codesnake/wp1_pro_remote_fix
[LE 8.2] WeTek_Play: Fix WeTek Pro Remote
- Loading branch information
Showing
4 changed files
with
112 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
projects/WeTek_Play/patches/linux/070-wetek-pro-remote.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/drivers/amlogic/input/remote/am_remote.c b/drivers/amlogic/input/remote/am_remote.c | ||
index c824efb2fe7..3ccb16975c2 100755 | ||
--- a/drivers/amlogic/input/remote/am_remote.c | ||
+++ b/drivers/amlogic/input/remote/am_remote.c | ||
@@ -352,7 +352,7 @@ static inline int remote_hw_reprot_key(struct remote *remote_data) | ||
key_hold = -1; | ||
if (scan_code) { //key first press | ||
last_custom_code = scan_code & 0xffff; | ||
- if (remote_data->custom_code != last_custom_code) { | ||
+ if (remote_data->custom_code != last_custom_code && last_custom_code != 0xfe01) { | ||
input_dbg("Wrong custom code is 0x%08x\n", scan_code); | ||
return -1; | ||
} | ||
@@ -385,7 +385,7 @@ static inline int remote_hw_reprot_key(struct remote *remote_data) | ||
|
||
} else if (scan_code == 0 && status & 0x1) { //repeate key | ||
scan_code = last_scan_code; | ||
- if (remote_data->custom_code != last_custom_code) { | ||
+ if (remote_data->custom_code != last_custom_code && last_custom_code != 0xfe01) { | ||
return -1; | ||
} | ||
#ifdef CONFIG_AML_HDMI_TX |