From 222a33c80558df471245e8087123b7384bfb93dc Mon Sep 17 00:00:00 2001 From: Grzegorz Bernat Date: Tue, 2 Jul 2024 17:17:17 +0200 Subject: [PATCH] audio: base_fw_intel: Fix problem with send structure ext_system_time_data 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 --- src/audio/base_fw_intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/base_fw_intel.c b/src/audio/base_fw_intel.c index 83fdeb8689f1..9bdaf2b05b7a 100644 --- a/src/audio/base_fw_intel.c +++ b/src/audio/base_fw_intel.c @@ -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(*ext_system_time), &ext_system_time_data, + sizeof(ext_system_time_data)); *data_offset = sizeof(struct ipc4_ext_system_time); return IPC4_SUCCESS;