video_common: edid: XVidC_EdidGetVpiWeekMan->XVidC_EdidGetManWeek.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-01-21 12:01:28 -08:00 committed by Nava kishore Manne
parent ec845b6dc6
commit bad0f38ab4
2 changed files with 5 additions and 5 deletions

View file

@ -92,14 +92,14 @@ static void Edid_Print_BaseVPId(u8 *EdidRaw)
xil_printf("\tModel year:\t\t%d\n",
XVidC_EdidGetVpiYear(EdidRaw));
}
else if (XVidC_EdidGetVpiWeekMan(EdidRaw) == 0x00) {
else if (XVidC_EdidGetManWeek(EdidRaw) == 0x00) {
xil_printf("\tManufactured:\t\tYear = %d ; Week N/A\n",
XVidC_EdidGetVpiYear(EdidRaw));
}
else {
xil_printf("\tManufactured:\t\tYear = %d ; Week = %d\n",
XVidC_EdidGetVpiYear(EdidRaw),
XVidC_EdidGetVpiWeekMan(EdidRaw));
XVidC_EdidGetManWeek(EdidRaw));
}
}

View file

@ -280,10 +280,10 @@
/* Vendor and product identification: Week and year of manufacture or model
* year. */
#define XVidC_EdidGetVpiWeekMan(E) (E[XVIDC_EDID_VPI_WEEK_MAN])
#define XVidC_EdidGetManWeek(E) (E[XVIDC_EDID_VPI_WEEK_MAN])
#define XVidC_EdidGetVpiYear(E) (E[XVIDC_EDID_VPI_YEAR] + 1990)
#define XVidC_EdidIsVpiYearModel(E) (XVidC_EdidGetVpiWeekMan(E) == 0xFF)
#define XVidC_EdidIsVpiYearMab(E) (XVidC_EdidGetVpiWeekMan(E) != 0xFF)
#define XVidC_EdidIsVpiYearModel(E) (XVidC_EdidGetManWeek(E) == 0xFF)
#define XVidC_EdidIsVpiYearMab(E) (XVidC_EdidGetManWeek(E) != 0xFF)
/* EDID structure version and revision. */
#define XVidC_EdidGetStructVer(E) (E[XVIDC_EDID_STRUCT_VER])