mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
ODROIDC:hdmi: Try to read proper mode before video stream out
Change-Id: I80d7bb91cc49f2cd4cdb8d961bcdea35f98ef7a1 Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
@@ -205,6 +205,9 @@ return value: 1, vout; 2, vout2;
|
||||
const vinfo_t * hdmi_get_current_vinfo(void)
|
||||
{
|
||||
const vinfo_t *info;
|
||||
int count = 5;
|
||||
|
||||
retry:
|
||||
#ifdef CONFIG_AM_TV_OUTPUT2
|
||||
if(get_cur_vout_index() == 2){
|
||||
info = get_current_vinfo2();
|
||||
@@ -218,6 +221,12 @@ const vinfo_t * hdmi_get_current_vinfo(void)
|
||||
#else
|
||||
info = get_current_vinfo();
|
||||
#endif
|
||||
|
||||
if ((info == NULL) && (--count > 0)) {
|
||||
msleep(500);
|
||||
goto retry;
|
||||
}
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user