首页 > 其他分享 >MTK9669打开上电开机进待机的IR唤醒功能

MTK9669打开上电开机进待机的IR唤醒功能

时间:2023-04-12 15:14:39浏览次数:32  
标签:IR Domestic 上电 MTK9669 20201106 0xFF IRKEY 0xff

此patch不是新加一个遥控类型。而是用公版遥控的键值替换成自家的遥控键值。

 

index 9d0967f72cd..3bc93b84d5c 100755
--- a/Domestic_3M_20201106/bootable/bootloader/mboot-mtk/mboot/MstarCore/src/api/msAPI_Power.c
+++ b/Domestic_3M_20201106/bootable/bootloader/mboot-mtk/mboot/MstarCore/src/api/msAPI_Power.c
@@ -381,7 +381,7 @@ void msAPI_Power_PowerDown_EXEC(void)

.u8PmWakeIR =
{ //IR wake-up key define
- IRKEY_POWER, 0x03, IRKEY_INPUT_SOURCE, 0xFF,
+ 0x46, 0x01, IRKEY_INPUT_SOURCE, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF,
@@ -393,7 +393,7 @@ void msAPI_Power_PowerDown_EXEC(void)

.u8PmWakeIR2 =
{ //IR wake-up key define
- IRKEY_POWER, 0x03, 0xFF, 0xFF,
+ 0x46, 0x01, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF
diff --git a/Domestic_3M_20201106/bootable/bootloader/mboot-mtk/mboot/MstarCustomer/MSTAR/include/IR_MSTAR_DTV.h b/Domestic_3M_20201106/bootable/bootloader/mboot-mtk/mboot/MstarCustomer/MSTAR/include/IR_MSTAR_DTV.h
index a2ae2d15370..338cc5250ca 100755
--- a/Domestic_3M_20201106/bootable/bootloader/mboot-mtk/mboot/MstarCustomer/MSTAR/include/IR_MSTAR_DTV.h
+++ b/Domestic_3M_20201106/bootable/bootloader/mboot-mtk/mboot/MstarCustomer/MSTAR/include/IR_MSTAR_DTV.h
@@ -86,8 +86,8 @@
#define IR_CHANNEL_USE_AS_UPDOWN 0
#define IR_VOLUME_USE_AS_LEFTRIGHT 0
// IR Header code define
-#define IR_HEADER_CODE0 0x80 // Custom 0 //0x04
-#define IR_HEADER_CODE1 0x7F // Custom 1 //0xFB
+#define IR_HEADER_CODE0 0x81 //0x80 // Custom 0 //0x04^M
+#define IR_HEADER_CODE1 0x02 //0x7F // Custom 1 //0xFB^M

// IR Timing define
#define IR_HEADER_CODE_TIME 9000 // us
@@ -133,7 +133,7 @@ typedef enum _IrCommandType
IRKEY_VOLUME_MINUS = 0x15,

IRKEY_UP = 0x52,
- IRKEY_POWER = 0x46,
+ IRKEY_POWER = 0x01,^M
IRKEY_EXIT = 0x1B,
IRKEY_MENU = 0x07,
IRKEY_DOWN = 0x13,
@@ -195,7 +195,7 @@ typedef enum _IrCommandType
IRKEY_DASH = IRKEY_DUMY-15,
IRKEY_BACKWARD = 0x02,
IRKEY_FORWARD = 0x1E,
- IRKEY_PLAY = 0x01,
+ IRKEY_PLAY = 0xA1,^M
IRKEY_RECORD = 0x0D,
IRKEY_STOP = 0x11,
IRKEY_PAUSE = 0x1D,
diff --git a/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/mi/mi/platform/m7642/linux/board_cfg/BD_MT166B_10AT/board.ini b/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/mi/mi/platform/m7642/linux/board_cfg/BD_MT166B_10AT/board.ini
index d4b89c433dc..28bcd53b4f9 100755
--- a/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/mi/mi/platform/m7642/linux/board_cfg/BD_MT166B_10AT/board.ini
+++ b/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/mi/mi/platform/m7642/linux/board_cfg/BD_MT166B_10AT/board.ini
@@ -510,7 +510,7 @@ BOARD_IR_1_LOGICAL_TIME_S8_LOW_BOND = -20;

BOARD_IR_POWER_UP_KEY_CODE = \
{\
-0x46,0x03,0xff,0xff,0xff,0xff,0xff,0xff,\
+0x01,0x03,0xff,0xff,0xff,0xff,0xff,0xff,\
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,\
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,\
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,\
diff --git a/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/pm/gen_lib/Source/drv/pm/drvPM.c b/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/pm/gen_lib/Source/drv/pm/drvPM.c
index d7e7a16bc4d..cd8e17c2e44 100755
--- a/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/pm/gen_lib/Source/drv/pm/drvPM.c
+++ b/Domestic_3M_20201106/vendor/mediatek/proprietary_tv/apollo/linux_core/misdk/pm/gen_lib/Source/drv/pm/drvPM.c
@@ -211,6 +211,9 @@ static U8 gu8SyncChecker = 0;
extern U8 u8DigTop;
#endif

+#define PM_FC_WK_HEADCODE 0x8102
+#define PM_FC_WK_KEYCODE 0x01
+
//-------------------------------------------------------------------------------------------------
// Debug Functions
//-------------------------------------------------------------------------------------------------
@@ -858,6 +861,11 @@ static BOOLEAN _MDrv_PM_IR_ParseData_Dynamic(U8 u8IRProtocol,U32 u32IRHeadcode,U
MDrv_PM_SetPowerOnKey(u8PowerKey);
return TRUE;
}
+
+ if((u16IRKeycode == PM_FC_WK_KEYCODE) && (u32IRHeadcode == PM_FC_WK_HEADCODE)){
+ MDrv_PM_SetPowerOnKey(u16Key);
+ return TRUE;
+ }
return FALSE;

标签:IR,Domestic,上电,MTK9669,20201106,0xFF,IRKEY,0xff
From: https://www.cnblogs.com/bubble1223/p/17309828.html

相关文章

  • 设置jupyter notebook的python environment
    (base)$condainstallnb_conda_kernels(base)$condacreate--namenew-env(base)$condaactivatenew-env(new-env)$condainstallipykernel(base)$condadeactivate(base)$jupyternotebookclickkernel,selectchangekernel,youwillseeyourenviro......
  • UVa 10167 Birthday Cake (枚举)
    10167-BirthdayCakeTimelimit:3.000secondshttp://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=107&page=show_problem&problem=1108BackgroundLucyandLilyaretwins.Todayistheirbirthday.Motherbuysabirthd......
  • Proxmox 7.4 “Virtual Environment”发布
    Proxmox是一家商业公司,提供基于DebianGNU/Linux的专门产品。该公司已经发布了其“虚拟环境“系列的更新,引入了更新的虚拟机和文件系统包以及一个新的黑暗主题。近日,Proxmox宣布推出新的虚拟环境7.4版本,该版本是基于Debian11.6“Bullseye”的最新版本,但使用了更新的Li......
  • Proxmox 7.4 “Virtual Environment”发布
    Proxmox是一家商业公司,提供基于DebianGNU/Linux的专门产品。该公司已经发布了其“虚拟环境“系列的更新,引入了更新的虚拟机和文件系统包以及一个新的黑暗主题。近日,Proxmox宣布推出新的虚拟环境7.4版本,该版本是基于Debian11.6“Bullseye”的最新版本,但使用了更新的Li......
  • Proxmox 7.4 “Virtual Environment”发布
    Proxmox是一家商业公司,提供基于DebianGNU/Linux的专门产品。该公司已经发布了其“虚拟环境“系列的更新,引入了更新的虚拟机和文件系统包以及一个新的黑暗主题。近日,Proxmox宣布推出新的虚拟环境7.4版本,该版本是基于Debian11.6“Bullseye”的最新版本,但使用了更新的Li......
  • Linux mkdir 命令
    Linuxmkdir命令mkdir-p/data01/openresty/lua/logs运维常用命令,例如把lua日志软连接到nas盘,一次到位创建目录Linuxmkdir(英文全拼:makedirectory)命令用于创建目录。语法mkdir[-p]dirName参数说明:-p确保目录名称存在,不存在的就建一个。实例在/目录下,建立一个......
  • Linux dir命令
    Linuxdir命令dir-alLinuxdirs命令用于显示目录记录。显示目录堆叠中的记录。和ls的区别在于,这个玩意只显示目录语法dirs[pathname]参数:-a显示隐藏目录-l列表形式显示实例root@jdit:~#dir-l/usrtotal96drwxr-xr-x2rootroot36864Apr622:07bi......
  • Lampiao靶场-dirtycow漏洞利用
    Lampiao靶场-dirtycow漏洞利用目录Lampiao靶场-dirtycow漏洞利用一、主机发现二、端口扫描三、目录遍历四、拿到webshell五、实现交互式shell六、暴力破解七、把dirtycow脚本传到靶机八、编译运行dirtycow脚本只是简单记录一下所用工具靶机信息:靶机:192.168.142.132攻击机:192.......
  • 微信小程序开发——getLocation:fail the api need to be declared in the requiredPr
    getLocation:failtheapineedtobedeclaredintherequiredPrivateInfosfieldinapp.json/ext.json异常解析:app.json中没配置requiredPrivateInfos参数,按下边示例代码配置即可。示例代码:{..."permission":{"scope.userLocation":{"desc&qu......
  • Active Directory Basic
    ActiveDirectory是Windows域网络的目录服务介绍ActiveDirectory是在域内部连接的机器和服务器的集合,它们是构成ActiveDirectory网络的更大域林的集合部分。ActiveDirectory包含许多功能部件,ActiveDirectory的各个部分域控制器森林、树木、领域用户+组信托政......