레이블이 mali인 게시물을 표시합니다. 모든 게시물 표시
레이블이 mali인 게시물을 표시합니다. 모든 게시물 표시

2013년 7월 12일 금요일

Portrait HDMI for ODROID(Exynos4412)

for Exynos4412(mali)

edit build.prop and add this.

ro.sf.hwrotation=90


http://codewalkerster.blogspot.kr/2013/06/hdmi-screen-rotation-issue-for-odroid.html

edit device/samsung/exynos4/libhdmi/libhdmiservice/SecTVOutService.cpp


#include <cutils/properties.h>

void SecTVOutService::setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer)
{
    //codewalker
    return;


---------------------------------------------------------------------------------------------------------




    void SecTVOutService::setHdmiStatus(uint32_t status)
    {   

        LOGD("%s HDMI cable status = %d", __func__, status);
        {   
            Mutex::Autolock _l(mLock);

            bool hdmiCableInserted = (bool)status;

            if (mHdmiCableInserted == hdmiCableInserted)
                return;

            if (hdmiCableInserted == true) {
                if (mSecHdmi.connect() == false) {
                    LOGE("%s::mSecHdmi.connect() fail", __func__);
                    hdmiCableInserted = false;
                }   
        #if 1  //yqf, 2012-6-18, keep it, first plug in cable with device landscape mode    
            else{ 
                   //added yqf, STAR00030984 & update roate value to hdmi after connect->disconnect->connect
                //codewalker
                int angle = 0;
                char value[PROPERTY_VALUE_MAX]; 
                property_get("ro.sf.hwrotation", value, NULL); 
                if (value != NULL)
                    angle = atoi(value);

                     mSecHdmi.setUIRotation(globalRotate, angle);
            if(mSecHdmi.mRotateInfoChange)
                mSecHdmi.mRotateInfoChange=false;
                    } 








2013년 6월 20일 목요일

HDMI screen rotation issue for ODROID(Exynos4412)

for Exynos4412(mali)

1080P(Full HD)

Tumblr.


720P -> enable Portrait HDMI Screen



1080P -> not allow Portrait HDMI Screen.





device/samsung/exynos4/libhdmi/libhdmiservice/SecTVOutService.cpp


291     void SecTVOutService::setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer)
292     {
293         //codewalker
294         // 1080p is spec out.
295         if (mLCD_height == 1080)
296             return;