enable eq
This commit is contained in:
@@ -1120,6 +1120,8 @@ unsigned char process_send_params(uint8_t data[], uint16_t len) {
|
|||||||
read_request.is_read_request = true;
|
read_request.is_read_request = true;
|
||||||
|
|
||||||
debug_printf("Read request - Mode: %d, EQ index: %d\n", read_request.mode, read_request.eq_index);
|
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)
|
if (data[1] == 0x8a)
|
||||||
@@ -3145,7 +3147,7 @@ unsigned char process_read_params(uint8_t response[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (read_request.is_read_request == true) {
|
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("Read request information:\n");
|
||||||
debug_printf(" Mode: %d\n", read_request.mode);
|
debug_printf(" Mode: %d\n", read_request.mode);
|
||||||
debug_printf(" EQ index: %d\n", read_request.eq_index);
|
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
|
read_request.is_read_request = false; // Clear read request flag
|
||||||
debug_printf("Parameter read processing completed\n");
|
debug_printf("Parameter read processing completed\n");
|
||||||
|
|
||||||
|
|||||||
@@ -1120,6 +1120,8 @@ unsigned char process_send_params(uint8_t data[], uint16_t len) {
|
|||||||
read_request.is_read_request = true;
|
read_request.is_read_request = true;
|
||||||
|
|
||||||
debug_printf("Read request - Mode: %d, EQ index: %d\n", read_request.mode, read_request.eq_index);
|
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)
|
if (data[1] == 0x8a)
|
||||||
@@ -3145,7 +3147,7 @@ unsigned char process_read_params(uint8_t response[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (read_request.is_read_request == true) {
|
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("Read request information:\n");
|
||||||
debug_printf(" Mode: %d\n", read_request.mode);
|
debug_printf(" Mode: %d\n", read_request.mode);
|
||||||
debug_printf(" EQ index: %d\n", read_request.eq_index);
|
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
|
read_request.is_read_request = false; // Clear read request flag
|
||||||
debug_printf("Parameter read processing completed\n");
|
debug_printf("Parameter read processing completed\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user