Skip to content

Commit

Permalink
audio: Fix problem with send stucture ext_system_time_data
Browse files Browse the repository at this point in the history
There was a problem with test test_102_08_extended_time_check.
The structure ext_system_time_data was sending with wrong size.
Because of this it was not possible to correctly read the value
from the art clock to determine the HH counter.

Signed-off-by: Grzegorz Bernat <grzegorzx.bernat@intel.com>
  • Loading branch information
gbernatxintel committed Jul 2, 2024
1 parent 6c9df30 commit 95b6c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/base_fw_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ static uint32_t basefw_get_ext_system_time(uint32_t *data_offset, char *data)
ext_system_time_data.rtc_l = (uint32_t)rtc;
ext_system_time_data.rtc_u = (uint32_t)(rtc >> 32);

memcpy_s(ext_system_time, sizeof(ext_system_time), &ext_system_time_data,
sizeof(ext_system_time));
memcpy_s(ext_system_time, sizeof(struct ipc4_ext_system_time), &ext_system_time_data,
sizeof(struct ipc4_ext_system_time));
*data_offset = sizeof(struct ipc4_ext_system_time);

return IPC4_SUCCESS;
Expand Down

0 comments on commit 95b6c74

Please sign in to comment.