Skip to content

Commit

Permalink
Missing bits in infinity6c audio input module
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed May 21, 2024
1 parent 52b5f91 commit eb2f4a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ The information is being compiled.
| Hi3516CV200 || ✔️ | ✔️ |||
| Hi3516CV300 || ✔️ | ✔️ |||
| Hi3516CV500 ||||||
| infinity6b0 || ✔️ | ✔️ || |
| infinity6c || ✔️ | ✔️ || |
| infinity6e || ✔️ | ✔️ || |
| infinity6b0 || ✔️ | ✔️ || ✔️ |
| infinity6c || ✔️ | ✔️ || ✔️ |
| infinity6e || ✔️ | ✔️ || ✔️ |

_✔️ - supported, ✗ - not supported, ⁿ/ₐ - not supported by hardware_

Expand Down
9 changes: 8 additions & 1 deletion src/hal/sstar/i6c_aud.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ typedef struct {

int (*fnSetI2SConfig)(i6c_aud_input input, i6c_aud_i2s *config);

int (*fnSetGain)(int device, unsigned char group, char gains[], unsigned char gainSize);
int (*fnSetMute)(int device, unsigned char group, char actives[], unsigned char activeSize);

int (*fnFreeFrame)(int device, unsigned char group, i6c_aud_frm *frame, i6c_aud_frm *echoFrame);
Expand Down Expand Up @@ -183,7 +184,13 @@ static int i6c_aud_load(i6c_aud_impl *aenc_lib) {
return EXIT_FAILURE;
}

if (!(aenc_lib->fnSetMute = (int(*)(int device, unsigned char group, char active[], unsigned char activeSize))
if (!(aenc_lib->fnSetGain = (int(*)(int device, unsigned char group, char gains[], unsigned char gainSize))
dlsym(aenc_lib->handle, "MI_AI_SetGain"))) {
fprintf(stderr, "[i6c_aud] Failed to acquire symbol MI_AI_SetGain!\n");
return EXIT_FAILURE;
}

if (!(aenc_lib->fnSetMute = (int(*)(int device, unsigned char group, char actives[], unsigned char activeSize))
dlsym(aenc_lib->handle, "MI_AI_SetMute"))) {
fprintf(stderr, "[i6c_aud] Failed to acquire symbol MI_AI_SetMute!\n");
return EXIT_FAILURE;
Expand Down

0 comments on commit eb2f4a6

Please sign in to comment.