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 <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Reviewed-by: Jaska Uimonen <[email protected]>
Signed-off-by: Ranjani Sridharan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
keyonjie authored and broonie committed Aug 26, 2020
1 parent 3dca35e commit 878694d
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 @@ -2114,9 +2114,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 878694d

Please sign in to comment.