解决mstar芯片638平台onAtvSignalEvent事件不上报问题

        系统开发过程中,发现对模拟信号源的电缆进行插拔操作,界面显示没有变化,跟踪代码发现原来onAtvSignalEvent事件没有上报上来,继续追溯源码,跟踪致HAL层,发现原来Mstar的源码对这一块有特殊处理,默认当输入信号源是ATV时不上报无信号的状态,把原本的条件去掉就行了,Mark一下!

        / vendor/mstar/supernova/projects/msrv/common/src/MSrv_Player.cpp

BOOL MSrv_Player::noSignalCheck_Handler(EN_SIGNAL_LOCK_CHECK_TYPE &status)
{
    //mapi_scope_lock(lock, &m_mutex);
    BOOL ret = TRUE;
    U32 MAX_NO_SIGNAL_RETRY_COUNT = 0;
    if(IsSrcDTV(m_CurrentSrcType) || IsSrcHDMI(m_CurrentSrcType))
    {
        if(MSrv_Control::GetInstance()->IsSourceChanging())
        {
            return ret;
        }
        MAX_NO_SIGNAL_RETRY_COUNT = DIGITAL_NO_SIGNAL_RETRY_COUNT;
    }
    else
    {
        MAX_NO_SIGNAL_RETRY_COUNT = ANALOG_NO_SIGNAL_RETRY_COUNT;
    }
    if(IsSignalStable() == TRUE)
    {
        status = E_SIGNAL_ALREADY_LOCK;

        m_u16SignalUnLockedCount = 0;
        if(m_u16SignalLockedCount == 0)
        {
            status = E_SIGNAL_LOCK;

            m_u16SignalLockedCount = 1;
            printf("Detect >>>>>>>>>>>>>>>> Signal Locked!!!\n");
#if (MSTAR_TVOS == 0)
            //CTV Patch Begin , removed by Haming , Post signal_lock event when current input source is ATV;
            //if(m_CurrentSrcType != MAPI_INPUT_SOURCE_ATV)
#endif
            //{
                if(m_PipXCWin == MAPI_MAIN_WINDOW)
                {
                    if (m_enSignalStatus != E_SIGNAL_LOCK)
                    {
                        ret = PostEvent(0, EV_SIGNAL_LOCK, m_CurrentSrcType);
                        if (FALSE == ret)
                        {
                            m_u16SignalLockedCount = 0; // force re-send this event
                        }
                        else
                        {
                            m_enSignalStatus = E_SIGNAL_LOCK;
                        }
                    }
                }
            //}
            // CTV Patch End
        }
    }
    else
    {
        BOOL bExceedRetryCount = FALSE;
        status = E_SIGNAL_UNLOCK;

        m_u16SignalLockedCount = 0;

        if(IsSrcDTV(m_CurrentSrcType)|| IsSrcHDMI(m_CurrentSrcType))
        {
            if(m_u16SignalUnLockedCount == DIGITAL_NO_SIGNAL_RETRY_COUNT)
            {
                bExceedRetryCount = TRUE;
            }
        }
        else
        {
            if(m_u16SignalUnLockedCount == ANALOG_NO_SIGNAL_RETRY_COUNT)
            {
                bExceedRetryCount = TRUE;
            }
        }

        if(bExceedRetryCount)
        {
            status = E_NOSIGNAL;

            m_u16SignalUnLockedCount++;
            printf("Detect >>>>>>>>>>>>>>>> Signal unLocked!!!\n");
            // CTV Patch Begin
            char value[8] = {};
            char atvBlueScreenProperty[8] = {};
            property_get("client.config",value,"0");
            property_get("ro.sys.atvbluescreen",atvBlueScreenProperty,"0");
            //CTV Patch Begin , removed by Haming , Post signal_lock event when current input source is ATV
            //if((m_CurrentSrcType != MAPI_INPUT_SOURCE_ATV) || (strcmp("PPTV",value) == 0) || (strncmp("1",atvBlueScreenProperty,1) == 0))
            // CTV Patch End
            //{
                printf(">>>>>>>>>>>>>>>> Set buleScreen!!!\n");
                if(m_PipXCWin == MAPI_MAIN_WINDOW)
                {
                    if (m_enSignalStatus != E_NOSIGNAL)
                    {
                        ret = PostEvent(0, EV_SIGNAL_UNLOCK, m_CurrentSrcType);
                        if (FALSE == ret)
                        {
                            m_u16SignalUnLockedCount--; // force re-send this event
                        }
                        else
                        {
                            m_enSignalStatus = E_NOSIGNAL;
                            // CTV Patch Begin
                            if (!IsSrcStorage(m_CurrentSrcType))
                            {
                                MS_BOOT_SETTING value;
                                MSrv_Control::GetInstance()->GetMSrvSystemDatabase()->GetBootSetting(&value);
                                mapi_video *pVideo;
                                pVideo = mapi_interface::Get_mapi_video(MSrv_Control::GetInstance()->GetCurrentInputSource());
                                if ((pVideo != NULL)
                                    && ((mapi_video_datatype::E_SCREEN_MUTE_BLACK != value.enMuteColor)// Bluescreen Flag
                                    || (mapi_video_datatype::E_SCREEN_MUTE_BLACK != value.enFrameColor)))
                                {
                                    pVideo->setMuteColor((mapi_video_datatype::MAPI_VIDEO_Screen_Mute_Color)value.enMuteColor, MUTE_ENGINE_XC);
                                    pVideo->setFrameColor((mapi_video_datatype::MAPI_VIDEO_Screen_Mute_Color)value.enFrameColor, MUTE_ENGINE_XC);
                                    if (pVideo->IsVideoMute() == MAPI_FALSE)
                                    {
                                        pVideo->SetVideoMute(MAPI_TRUE);
                                    }
                                }
                            }
                            // CTV Patch End
                        }
                    }
                }
            //}
            // CTV Patch End , removed by Haming
        }
        else if(m_u16SignalUnLockedCount < MAX_NO_SIGNAL_RETRY_COUNT)
        {
            ret = FALSE;
            m_u16SignalUnLockedCount++;
        }
    }
    return ret;
}


  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
n Video Decoder Ÿ Supports NTSC, PAL and SECAM video input formats Ÿ 2D NTSC and PAL comb-filter for Y/C separation of CVBS input Ÿ Single S-video and/or multiple CVBS inputs Ÿ ACC, AGC, and DCGC (Digital Chroma Gain Control) n Color Engine Ÿ Brightness, contrast, saturation, and hue adjustment Ÿ 9-tap programmable multi-purpose FIR (Finite Impulse Response) filter Ÿ Differential 3-band peaking engine Ÿ Luminance Transient Improvement (LTI) Ÿ Chrominance Transient Improvement (CTI) Ÿ Black Level Extension (BLE) Ÿ White Level Extension (WLE) Ÿ Favor Color Compensation (FCC) Ÿ 3-channel gamma curve adjustment n Scaling Engine/TCON Ÿ Supports analog panels with the resolution of 960x234, 1200x234, 1440x234, and more Ÿ Supports various displaying modes Ÿ Supports horizontal panorama scaling n Digital PWM Controller Ÿ Integrated general purpose digital PWM control loop Ÿ Programmable startup operating frequency and period with output voltage regulation Ÿ Programmable output current regulation; 40KHz~70KHz switching frequency, sync. to HSYNC possible Ÿ Burst-mode or continuous-mode for output current regulation; 150Hz~300Hz burst-mode frequency, sync. to VSYNC possible n Miscellaneous Ÿ Built-in MCU Ÿ Built-in internal OSD with 256 programmable fonts, 16-color palettes, and 12-bit color resolution Ÿ 3-channel low-power 8-bit DAC integration for RGB output, dynamic range 0.1-3.2V Ÿ Built-in VCOM AC level adjustment circuit Ÿ Spread spectrum clocks Ÿ 3.3V output pads with programmable driving current Ÿ 48-pin LQFP package

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值