hower to config hdmi


Amlogic Application Notes Amlogic Confidential 1 Application Notes Tablet HDMI 输出配置指南 Revision 0.1 AMLOGIC, Inc. 2518 Mission College Blvd Santa Clara, CA 95054 U.S.A. www.amlogic.com AMLOGIC reserves the right to change any information described herein at any time without notice. AMLOGIC assumes no responsibility or liability from use of such information. Amlogic Confidential! Amlogic Application Notes Amlogic Confidential 2 目录 1. 简介 ........................................................................................................................................................................ 4 2. M8BABY 输出配置 ................................................................................................................................................. 5 2.1. PANEL 输出 ........................................................................................................................................................ 5 2.2. 插上 HDMI 后,切换到 HDMI 输出 ...................................................................................................................... 5 2.2.1. HDMI 端输出 480p ..................................................................................................................................... 5 2.2.2. HDMI 端输出 720p ..................................................................................................................................... 5 2.2.3. Hdmi 端输出 1080p ................................................................................................................................... 5 Amlogic Confidential! Amlogic Application Notes Amlogic Confidential 3 修改记录 版本 日期 作者 修改 0.1 2014/06/16 Wei Wang 初稿 Amlogic Confidential! Amlogic Application Notes Amlogic Confidential 4 1. 简介 Tablet HDMI 输出,大部分切换都是依靠写节点的方式,实现在 hdmiswitch.apk 中。 Amlogic Confidential! Amlogic Application Notes Amlogic Confidential 5 2. M8baby 输出配置 2.1. Panel 输出 amsysfs_set_sysfs_str("/sys/class/graphics/fb0/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale","0x0"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_clone","0"); amsysfs_set_sysfs_str("/sys/class/display/mode","panel") ; amsysfs_set_sysfs_str("/sys/class/graphics/fb0/blank","0") 2.2. 插上 hdmi 后,切换到 hdmi 输出 2.2.1. HDMI 端输出 480p amsysfs_set_sysfs_str("/sys/class/graphics/fb0/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale","0x0"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_clone","0"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_angle","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_clone","1"); amsysfs_set_sysfs_str("/sys/class/display/mode","480p"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale_axis","0 0 1279 719"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/window_axis","20 10 700 470"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale","0x10001"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_update_pan","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/blank","0"); 2.2.2. HDMI 端输出 720p amsysfs_set_sysfs_str("/sys/class/graphics/fb0/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale","0x0"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_clone","0"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_angle","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_clone","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale_axis","0 0 1279 719"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/window_axis","40 15 1239 704"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale","0x10001"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_update_pan","1"); amsysfs_set_sysfs_str("/sys/class/display/mode","720p"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/blank","0"); 2.2.3. Hdmi 端输出 1080p amsysfs_set_sysfs_str("/sys/class/graphics/fb0/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/blank","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale","0x0"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_clone","0"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_angle","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_clone","1"); amsysfs_set_sysfs_str("/sys/class/display/mode","1080p"); Amlogic Confidential! Amlogic Application Notes Amlogic Confidential 6 amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale_axis","0 0 1279 719"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/window_axis","40 15 1879 1064"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/free_scale","0x10001"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/ver_update_pan","1"); amsysfs_set_sysfs_str("/sys/class/graphics/fb1/blank","0"); 备注: 1.int amsysfs_set_sysfs_str(const char *path, const char *val) 说明:这个函数用来写节点,将 path 写入 val 2.以上是依据 m102 为例,说明切换过程 写入 free_scale_aixs 是 fb1 的 size,fb1 的数据是把 fb0 的数据经过翻转拉伸后得到的。为了适应 hdmi 不同的 分辨率,通过 osd scaler 将初始数据 scale 到各个分辨率。 Amlogic Confidential!
还剩5页未读

继续阅读

下载pdf到电脑,查找使用更方便

pdf的实际排版效果,会与网站的显示效果略有不同!!

需要 10 金币 [ 分享pdf获得金币 ] 2 人已下载

下载pdf

pdf贡献者

vstar421

贡献于2016-10-23

下载需要 10 金币 [金币充值 ]
亲,您也可以通过 分享原创pdf 来获得金币奖励!
下载pdf