Hello,
I am trying to answer this question for the first time in this mail group.
below is the function body, please take a look at it.
//0:unconnected; 1:connected; 3:short to ground
__s32 TVE_get_dac_status(__u32 index)
{
__u32 reg_000,map,sel,dac;
__s32 status;
reg_000 = TVE_RUINT32(0,TVE_000);
map = (reg_000>>(4*(index+1))) & 0xf;
if(map>=1 && map<=4)
{
sel = 0;
dac = map-1;
}
else if(map>=5 && map<=8)
{
sel = 1;
dac = map-5;
}
else
{
return -1;
}
status = TVE_RUINT32(sel,TVE_038)>>(dac*8);
status &= 0x3;
//OSAL_PRINTF("%x,%x,%x,%x\n", sel, dac, reg_000, status);
return status;
}
the TVE_get_dac_status function shows that this is a hardware detection to see
if the user have connected the cable to analog tv out port.
there are 3 possible results:
0—is no cable connected
1—is connected
3— is shorted to GND. it means that there maybe some hardware problem with your
platform.
so, I suggest that you should check the hardware first to confirm the tv dac
output have short to ground or not.
> 在 2015年3月20日,下午9:07,Gaara <[email protected]> 写道:
>
> Hi all,
>
> I'm not developper but I'm posting here, I hope it's allowed.
>
> I'm running with Android 4.2.2 (LeMaker) with an Orange Pi and I found a bug
> with sun7i disp driver.
>
> The dmesg capture is in attached file:
> [DISP WRN] file:drivers/video/sun7i/disp/de_bsp/de/disp_tv.c,line:331: dac
> 3 short to ground
> Anyway, I have done a benchmark test and all works (2D, 3D) with HDMI output.
> This bug is just a little embarrasing to see the others messages in dmesg.
>
> What is this error?
> Does someone can help me to fix this, or remove this message if it's not
> important?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
> 邮件带有附件预览链接,若您转发或回复此邮件时不希望对方预览附件,建议您手动删除链接。
> 共有 2 个附件
> scrshot.png(203K)
> 极速下载
> <http://preview.mail.163.com/xdownload?filename=scrshot.png&mid=1tbiXRLCq1EAMZ8mVAAAsr&part=3&sign=972f46de6320aa28f7b220b3657e6541&time=1426856910&uid=13537828343%40163.com>
> 在线预览
> <http://preview.mail.163.com/preview?mid=1tbiXRLCq1EAMZ8mVAAAsr&part=3&sign=972f46de6320aa28f7b220b3657e6541&time=1426856910&uid=13537828343%40163.com>
> disp_tv.c(13K)
> 极速下载
> <http://preview.mail.163.com/xdownload?filename=disp_tv.c&mid=1tbiXRLCq1EAMZ8mVAAAsr&part=4&sign=972f46de6320aa28f7b220b3657e6541&time=1426856910&uid=13537828343%40163.com>
> 在线预览
> <http://preview.mail.163.com/preview?mid=1tbiXRLCq1EAMZ8mVAAAsr&part=4&sign=972f46de6320aa28f7b220b3657e6541&time=1426856910&uid=13537828343%40163.com><scrshot.png><disp_tv.c>
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.