video_common: edid: XVidC_EdidGetVpiYear->XVidC_EdidGetModManYear.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
bad0f38ab4
commit
0009c983cd
2 changed files with 4 additions and 4 deletions
|
@ -90,15 +90,15 @@ static void Edid_Print_BaseVPId(u8 *EdidRaw)
|
||||||
XVidC_EdidGetIdSn(EdidRaw));
|
XVidC_EdidGetIdSn(EdidRaw));
|
||||||
if (XVidC_EdidIsVpiYearModel(EdidRaw)) {
|
if (XVidC_EdidIsVpiYearModel(EdidRaw)) {
|
||||||
xil_printf("\tModel year:\t\t%d\n",
|
xil_printf("\tModel year:\t\t%d\n",
|
||||||
XVidC_EdidGetVpiYear(EdidRaw));
|
XVidC_EdidGetModManYear(EdidRaw));
|
||||||
}
|
}
|
||||||
else if (XVidC_EdidGetManWeek(EdidRaw) == 0x00) {
|
else if (XVidC_EdidGetManWeek(EdidRaw) == 0x00) {
|
||||||
xil_printf("\tManufactured:\t\tYear = %d ; Week N/A\n",
|
xil_printf("\tManufactured:\t\tYear = %d ; Week N/A\n",
|
||||||
XVidC_EdidGetVpiYear(EdidRaw));
|
XVidC_EdidGetModManYear(EdidRaw));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
xil_printf("\tManufactured:\t\tYear = %d ; Week = %d\n",
|
xil_printf("\tManufactured:\t\tYear = %d ; Week = %d\n",
|
||||||
XVidC_EdidGetVpiYear(EdidRaw),
|
XVidC_EdidGetModManYear(EdidRaw),
|
||||||
XVidC_EdidGetManWeek(EdidRaw));
|
XVidC_EdidGetManWeek(EdidRaw));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -281,7 +281,7 @@
|
||||||
/* Vendor and product identification: Week and year of manufacture or model
|
/* Vendor and product identification: Week and year of manufacture or model
|
||||||
* year. */
|
* year. */
|
||||||
#define XVidC_EdidGetManWeek(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_EdidGetModManYear(E) (E[XVIDC_EDID_VPI_YEAR] + 1990)
|
||||||
#define XVidC_EdidIsVpiYearModel(E) (XVidC_EdidGetManWeek(E) == 0xFF)
|
#define XVidC_EdidIsVpiYearModel(E) (XVidC_EdidGetManWeek(E) == 0xFF)
|
||||||
#define XVidC_EdidIsVpiYearMab(E) (XVidC_EdidGetManWeek(E) != 0xFF)
|
#define XVidC_EdidIsVpiYearMab(E) (XVidC_EdidGetManWeek(E) != 0xFF)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue