Skip to content

Commit

Permalink
(Continued)
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Aug 9, 2024
1 parent 76905ec commit 87679b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ _✔️ - supported, ↻ - in development, ✗ - unsupported, ⁿ/ₐ - not supp
_* At the moment, only text, 24-bit and 32-bit RGB overlays are handled, matricial formats and covers are to follow_

[^1]: Hi3516AV100 and Hi3516DV100
[^2]: Hi3516CV100, Hi3518CV100, Hi3518EV100 and Hi3518AV100
[^2]: Hi3516CV100, Hi3518AV100, Hi3518CV100 and Hi3518EV100
[^3]: Hi3516CV200 and Hi3518EV20\[0/1\]
[^4]: Hi3516CV300 and Hi3516EV100
[^5]: Hi3516AV300, Hi3516CV500 and Hi3516DV300
Expand Down
9 changes: 2 additions & 7 deletions src/hal/support.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void hal_identify(void) {
fclose(file);
}

char v1series = 0, v2series = 0, v3series = 0;
char v2series = 0, v3series = 0;

switch (val) {
case 0x12040000:
Expand All @@ -172,11 +172,6 @@ void hal_identify(void) {
if (!i && (SCSYSID[i] >> 16 & 0xFF)) { out = SCSYSID[i]; break; }
out |= (SCSYSID[i] & 0xFF) << i * 8;
}

if (out == 0x35180100) {
v1series = 1;
v2series = 0;
}

sprintf(chipId, "%s%X",
((out >> 28) == 0x7) ? "GK" : "Hi", out);
Expand All @@ -190,7 +185,7 @@ void hal_identify(void) {
chipId[11] = '\0';
}

if (v1series) {
if (out == 0x35180100) {
plat = HAL_PLATFORM_V1;
chnCount = V1_VENC_CHN_NUM;
chnState = (hal_chnstate*)v1_state;
Expand Down

0 comments on commit 87679b6

Please sign in to comment.