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 committed Aug 12, 2020
1 parent 714d26c commit 34a79a6
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 @@ -2215,9 +2215,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 34a79a6

Please sign in to comment.