Skip to content

Commit

Permalink
Fixing the OSD functionality on infinity6c JPEG outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Aug 5, 2024
1 parent 2bff5bc commit e510258
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/hal/star/i6c_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ int i6c_region_create(char handle, hal_rect rect, short opacity)
{
int ret = EXIT_SUCCESS;

i6c_sys_bind channel = { .module = I6C_SYS_MOD_SCL,
.device = _i6c_scl_dev, .channel = _i6c_scl_chn };
i6c_sys_bind channel = { .module = I6C_SYS_MOD_VENC,
.device = _i6c_venc_dev[0], .channel = 0, .port =_i6c_venc_port };
i6c_rgn_cnf region, regionCurr;
i6c_rgn_chn attrib, attribCurr;

Expand All @@ -463,7 +463,8 @@ int i6c_region_create(char handle, hal_rect rect, short opacity)
"region %d...\n", handle);
for (char i = 0; i < I6C_VENC_CHN_NUM; i++) {
if (!i6c_state[i].enable) continue;
channel.port = i;
channel.device = _i6c_venc_dev[i];
channel.channel = i;
i6c_rgn.fnDetachChannel(0, handle, &channel);
}
i6c_rgn.fnDestroyRegion(0, handle);
Expand All @@ -479,7 +480,8 @@ int i6c_region_create(char handle, hal_rect rect, short opacity)
"region %d...\n", handle);
for (char i = 0; i < I6C_VENC_CHN_NUM; i++) {
if (!i6c_state[i].enable) continue;
channel.port = i;
channel.device = _i6c_venc_dev[i];
channel.channel = i;
i6c_rgn.fnDetachChannel(0, handle, &channel);
}
}
Expand All @@ -495,7 +497,8 @@ int i6c_region_create(char handle, hal_rect rect, short opacity)

for (char i = 0; i < I6C_VENC_CHN_NUM; i++) {
if (!i6c_state[i].enable) continue;
channel.port = i;
channel.device = _i6c_venc_dev[i];
channel.channel = i;
i6c_rgn.fnAttachChannel(0, handle, &channel, &attrib);
}

Expand Down
1 change: 1 addition & 0 deletions src/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ int start_mdns() {
void stop_mdns() {
if (mdns)
mdnsd_stop(mdns);
mdns = NULL;
}

0 comments on commit e510258

Please sign in to comment.