Skip to content

Commit b61508f

Browse files
gbernatxintelkv2019i
authored andcommitted
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 <grzegorzx.bernat@intel.com>
1 parent d560643 commit b61508f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/audio/base_fw_intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ static uint32_t basefw_get_ext_system_time(uint32_t *data_offset, char *data)
224224
ext_system_time_data.rtc_l = (uint32_t)rtc;
225225
ext_system_time_data.rtc_u = (uint32_t)(rtc >> 32);
226226

227-
memcpy_s(ext_system_time, sizeof(ext_system_time), &ext_system_time_data,
228-
sizeof(ext_system_time));
227+
memcpy_s(ext_system_time, sizeof(*ext_system_time), &ext_system_time_data,
228+
sizeof(ext_system_time_data));
229229
*data_offset = sizeof(struct ipc4_ext_system_time);
230230

231231
return IPC4_SUCCESS;

0 commit comments

Comments
 (0)