enable eq

This commit is contained in:
Steven Dan
2026-05-27 18:24:46 +08:00
parent 0ac3081736
commit 28f1746fee
2 changed files with 6 additions and 20 deletions

View File

@@ -1120,6 +1120,8 @@ unsigned char process_send_params(uint8_t data[], uint16_t len) {
read_request.is_read_request = true;
debug_printf("Read request - Mode: %d, EQ index: %d\n", read_request.mode, read_request.eq_index);
// 改动原因与0x8B一致立即return避免后续命令分支误处理UAC1构建下eq_designer仍依赖此读请求
return true;
}
if (data[1] == 0x8a)
@@ -3145,7 +3147,7 @@ unsigned char process_read_params(uint8_t response[]) {
}
if (read_request.is_read_request == true) {
#if !UAC1
#if 1 // 改动原因fosi_c1 使用 -DUAC1=1 编译,原 #if !UAC1 导致 0x8E 读EQ参数在 HID GET_REPORT 时永不组包eq_designer 收到全零响应
debug_printf("Read request information:\n");
debug_printf(" Mode: %d\n", read_request.mode);
debug_printf(" EQ index: %d\n", read_request.eq_index);
@@ -3193,15 +3195,6 @@ unsigned char process_read_params(uint8_t response[]) {
// 简化版本不包含系数,只包含基本参数
#if DEBUG_PRINT_ENABLE == 1
DPRINTF(" Filter parameters:\n");
DPRINTF(" fc : %08x Hz\n", band->fc);
DPRINTF(" Q : %08x\n", band->q);
DPRINTF(" bw : %08x Hz\n", band->bw);
DPRINTF(" gain : %08x dB\n", band->gain);
#endif
// Copy coefficients
read_request.is_read_request = false; // Clear read request flag
debug_printf("Parameter read processing completed\n");

View File

@@ -1120,6 +1120,8 @@ unsigned char process_send_params(uint8_t data[], uint16_t len) {
read_request.is_read_request = true;
debug_printf("Read request - Mode: %d, EQ index: %d\n", read_request.mode, read_request.eq_index);
// 改动原因与0x8B一致立即return避免后续命令分支误处理UAC1构建下eq_designer仍依赖此读请求
return true;
}
if (data[1] == 0x8a)
@@ -3145,7 +3147,7 @@ unsigned char process_read_params(uint8_t response[]) {
}
if (read_request.is_read_request == true) {
#if !UAC1
#if 1 // 改动原因fosi_c1 使用 -DUAC1=1 编译,原 #if !UAC1 导致 0x8E 读EQ参数在 HID GET_REPORT 时永不组包eq_designer 收到全零响应
debug_printf("Read request information:\n");
debug_printf(" Mode: %d\n", read_request.mode);
debug_printf(" EQ index: %d\n", read_request.eq_index);
@@ -3193,15 +3195,6 @@ unsigned char process_read_params(uint8_t response[]) {
// 简化版本不包含系数,只包含基本参数
#if DEBUG_PRINT_ENABLE == 1
DPRINTF(" Filter parameters:\n");
DPRINTF(" fc : %08x Hz\n", band->fc);
DPRINTF(" Q : %08x\n", band->q);
DPRINTF(" bw : %08x Hz\n", band->bw);
DPRINTF(" gain : %08x dB\n", band->gain);
#endif
// Copy coefficients
read_request.is_read_request = false; // Clear read request flag
debug_printf("Parameter read processing completed\n");