Skip to content

Commit

Permalink
ASoC: SOF: topology: fix the ipc_size calculation for process component
Browse files Browse the repository at this point in the history
The topology private struct is used for token parsing and its size
should not be included to the ipc_size, fix it here though it didn't
cause any real issue as the Firmware won't use this wrong-added data.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
  • Loading branch information
keyonjie authored and bardliao committed Aug 13, 2020
1 parent c7a3969 commit 44e5f97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/soc/sof/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -2163,9 +2163,7 @@ static int sof_process_load(struct snd_soc_component *scomp, int index,
goto out;
}

ipc_size = sizeof(struct sof_ipc_comp_process) +
le32_to_cpu(private->size) +
ipc_data_size;
ipc_size = sizeof(struct sof_ipc_comp_process) + ipc_data_size;

/* we are exceeding max ipc size, config needs to be sent separately */
if (ipc_size > SOF_IPC_MSG_MAX_SIZE) {
Expand Down

0 comments on commit 44e5f97

Please sign in to comment.