diff --git a/packages/sysutils/amremote/config/libreelec.conf b/packages/sysutils/amremote/config/libreelec.conf index 2fe76e97680..df4e8f361e8 100644 --- a/packages/sysutils/amremote/config/libreelec.conf +++ b/packages/sysutils/amremote/config/libreelec.conf @@ -8,6 +8,51 @@ debug_enable = 1 reg_control = 0xfbe40 key_begin + # OpenELEC Box remote 0xdb 116 ;POWER + + # WeTek Pro Remote + 0x0c 116 # power + 0x2a 398 # red + 0x2b 399 # green + 0x2c 400 # yellow + 0x2d 401 # blue + 0x11 168 # rewind + 0x12 164 # play/pause + 0x13 208 # fast forward + 0x14 167 # record + 0x17 139 # menu + 0x1a 15 # app switch + 0x29 102 # home + 0x1d 158 # back + 0x0f 370 # subtitles + 0x27 113 # volume mute + 0x10 388 # teletext + 0x0b 366 # recordings + 0x28 358 # info + 0x0a 218 # share + 0x22 103 # up + 0x23 108 # down + 0x24 105 # left + 0x25 106 # right + 0x26 28 # ok + 0x1e 115 # volume up + 0x1f 114 # volume down + 0x20 104 # channel up + 0x21 109 # channel down + 0x01 2 # 1 + 0x02 3 # 2 + 0x03 4 # 3 + 0x04 5 # 4 + 0x05 6 # 5 + 0x06 7 # 6 + 0x07 8 # 7 + 0x08 9 # 8 + 0x09 10 # 9 + 0x00 11 # 0 + 0x4b 448 # factory red + 0x4d 449 # factory green + 0x50 450 # factory yellow + 0x51 451 # factory blue key_end diff --git a/packages/sysutils/amremote/config/wetek.conf b/packages/sysutils/amremote/config/wetek.conf index 7543fb00bcf..5534f4a588e 100644 --- a/packages/sysutils/amremote/config/wetek.conf +++ b/packages/sysutils/amremote/config/wetek.conf @@ -7,5 +7,50 @@ debug_enable = 1 reg_control = 0xfbe40 key_begin + # WeTek Play remote 0xca 116 ;POWER + + # WeTek Pro Remote + 0x0c 116 # power + 0x2a 398 # red + 0x2b 399 # green + 0x2c 400 # yellow + 0x2d 401 # blue + 0x11 168 # rewind + 0x12 164 # play/pause + 0x13 208 # fast forward + 0x14 167 # record + 0x17 139 # menu + 0x1a 15 # app switch + 0x29 102 # home + 0x1d 158 # back + 0x0f 370 # subtitles + 0x27 113 # volume mute + 0x10 388 # teletext + 0x0b 366 # recordings + 0x28 358 # info + 0x0a 218 # share + 0x22 103 # up + 0x23 108 # down + 0x24 105 # left + 0x25 106 # right + 0x26 28 # ok + 0x1e 115 # volume up + 0x1f 114 # volume down + 0x20 104 # channel up + 0x21 109 # channel down + 0x01 2 # 1 + 0x02 3 # 2 + 0x03 4 # 3 + 0x04 5 # 4 + 0x05 6 # 5 + 0x06 7 # 6 + 0x07 8 # 7 + 0x08 9 # 8 + 0x09 10 # 9 + 0x00 11 # 0 + 0x4b 448 # factory red + 0x4d 449 # factory green + 0x50 450 # factory yellow + 0x51 451 # factory blue key_end \ No newline at end of file diff --git a/projects/WeTek_Play/filesystem/etc/amremote/remote1.conf b/projects/WeTek_Play/filesystem/etc/amremote/remote1.conf deleted file mode 100644 index a6f083acef7..00000000000 --- a/projects/WeTek_Play/filesystem/etc/amremote/remote1.conf +++ /dev/null @@ -1,82 +0,0 @@ -#********************************************************************************************************* -#this file is configuration for each factory remote device -# work_mode 0 :software mode 1 :hardware mode -# repeat_enable 0 :disable repeat 1 :enable repeat -# -# factory_code each device has it's unique factory code. -# pattern:custom_code(16bit)+index_code(16bit) -# examble: 0xff000001 = 0xff00(custom cod) 0001 (index) -# -# release_delay unit:ms.release will report from kernel to user layer after this period of time -# from press or repeat triggered. -# -# debug_enable 0 :debug disable 1 :debug disable -# -# SW MODE: -# bit_count how many bits in each frame -# tw_leader_act time window for leader active -# tw_bit0 time window for bit0 time. -# tw_bit1 time window for bit1 time -# tw_repeat_leader time window for repeat leader -# REG -# reg_base_gen set value for PREG_IR_DEC_BASE_GEN -# reg_control set value for PREG_IR_DEC_CONTROL -# reg_leader_act set value for PREG_IR_DEC_LEADER_ACTIVE -# reg_leader_idle set value for PREG_IR_DEC_LEADER_IDLE -# reg_repeat_leader set value for PREG_IR_DEC_REPEAT_IDLE -# reg_bit0_time set value for PREG_IR_DEC_BIT0_TIME -#************************************************************************************************************* -# WeTek Pro Remote -factory_infcode = 1 -factory_code = 0xfe010001 -work_mode = 0 -repeat_enable = 1 -repeat_delay = 40 -repeat_peroid = 39 -release_delay = 121 -debug_enable = 1 - -key_begin - 0x0c 116 # power - 0x2a 398 # red - 0x2b 399 # green - 0x2c 400 # yellow - 0x2d 401 # blue - 0x11 168 # rewind - 0x12 164 # play/pause - 0x13 208 # fast forward - 0x14 167 # record - 0x17 139 # menu - 0x1a 15 # app switch - 0x29 102 # home - 0x1d 158 # back - 0x0f 370 # subtitles - 0x27 113 # volume mute - 0x10 388 # teletext - 0x0b 366 # recordings - 0x28 358 # info - 0x0a 218 # share - 0x22 103 # up - 0x23 108 # down - 0x24 105 # left - 0x25 106 # right - 0x26 28 # ok - 0x1e 115 # volume up - 0x1f 114 # volume down - 0x20 104 # channel up - 0x21 109 # channel down - 0x01 2 # 1 - 0x02 3 # 2 - 0x03 4 # 3 - 0x04 5 # 4 - 0x05 6 # 5 - 0x06 7 # 6 - 0x07 8 # 7 - 0x08 9 # 8 - 0x09 10 # 9 - 0x00 11 # 0 - 0x4b 448 # factory red - 0x4d 449 # factory green - 0x50 450 # factory yellow - 0x51 451 # factory blue -key_end diff --git a/projects/WeTek_Play/patches/linux/070-wetek-pro-remote.patch b/projects/WeTek_Play/patches/linux/070-wetek-pro-remote.patch new file mode 100644 index 00000000000..51114f4c0df --- /dev/null +++ b/projects/WeTek_Play/patches/linux/070-wetek-pro-remote.patch @@ -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