Skip to content
Snippets Groups Projects
Commit 856130e3 authored by Rutvik Patel's avatar Rutvik Patel
Browse files

dsp : Align module Payload to 8 bytes


DSP is expecting the payload to be 8 byte alignment but
HLOS is giving 4 byte alignment.
Due to this, command to DSP are failing.
Align module payload struct to 8 byte to fix the issue.

Change-Id: Ib804102634842f8040d0adb8491d16ceae767a6f
Signed-off-by: default avatarRutvik Patel <prutvikr@codeaurora.org>
parent 4047a2fa
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,7 @@ typedef struct apm_cmd_header_t ...@@ -107,7 +107,7 @@ typedef struct apm_cmd_header_t
@values > 0 bytes, in multiples of 4 bytes */ @values > 0 bytes, in multiples of 4 bytes */
}apm_cmd_header_t; }apm_cmd_header_t;
typedef struct apm_module_param_data_t struct apm_module_param_data_t
{ {
uint32_t module_instance_id; uint32_t module_instance_id;
/**< Valid instance ID of module /**< Valid instance ID of module
...@@ -127,7 +127,9 @@ typedef struct apm_module_param_data_t ...@@ -127,7 +127,9 @@ typedef struct apm_module_param_data_t
uint32_t error_code; uint32_t error_code;
/**< Error code populated by the entity hosting the module. /**< Error code populated by the entity hosting the module.
Applicable only for out-of-band command mode */ Applicable only for out-of-band command mode */
}apm_module_param_data_t; }__attribute__((packed, aligned(8)));
typedef struct apm_module_param_data_t apm_module_param_data_t;
typedef struct audio_hw_clk_cfg_req_param_t typedef struct audio_hw_clk_cfg_req_param_t
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment