Ejemplo n.º 1
0
static s32 gm7121_tv_close(void)
{
    if(tv_source_ops.tcon_disable)
        tv_source_ops.tcon_disable(gm7121_device);
    msleep(100);
    tv_pin_config(0);
    gm7121_tv_power_on(0);
    msleep(500);
    return 0;
}
static s32 ep952_close(void)
{
    printk("%s:%d\n", __func__, __LINE__);
	g_ep952_enabled = 0;
    if(hdmi_source_ops.tcon_disable)
        hdmi_source_ops.tcon_disable(ep952_device);
    msleep(100);
    hdmi_pin_config(0);
    ep952_hdmi_power_on(0);
    msleep(100);
    return 0;
}
Ejemplo n.º 3
0
static s32 gm7121_tv_open(void)
{
    gm7121_tv_power_on(1);
    tv_pin_config(1);
    msleep(400);
    if(tv_source_ops.tcon_enable)
        tv_source_ops.tcon_enable(gm7121_device);
    msleep(100);
    gm7121_init(g_tv_mode);

    return 0;
}
static s32 ep952_open(void)
{
    printk("%s:%d\n", __func__, __LINE__);
    ep952_thread_disable();
    ep952_hdmi_power_on(1);
    hdmi_pin_config(1);
    msleep(100);
    if(hdmi_source_ops.tcon_enable)
        hdmi_source_ops.tcon_enable(ep952_device);
    msleep(100);
    //EP_HDMI_Init();
    EP_HDMI_Set_Video_Timing(g_hdmi_vic);               // 720p50hz
    EP_HDMI_Set_Audio_Fmt(AUD_I2S, AUD_SF_48000Hz);     // IIS input , 48KHz
	g_ep952_enabled = 1;

    ep952_thread_enable();

    return 0;
}