OSDN Git Service

ASoC: SOF: topology: use set_get_data in process load
authorJaska Uimonen <jaska.uimonen@intel.com>
Fri, 9 Aug 2019 23:17:14 +0000 (18:17 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 12 Aug 2019 13:01:40 +0000 (14:01 +0100)
commitcac974a51ebb955f3be260a9633836e1413c8672
tree5625efc47340e2b5932d738000384b6cda1f2f9f
parent9ea08f2a6d27b6a26d33dae5c58e4099672d6bb3
ASoC: SOF: topology: use set_get_data in process load

Currently when loading sof process components there's a check if binary
control data is associated with it. If found the data is extracted to be
part of component loading and initialization. If binary data exceeds the
ipc max size, loading fails with error as large message support is only
implemented in set_get_data method. So make the process loading use
set_get_data to enable large parameters in component initialization.

Also refactor the process component loading function as it digs out 3
times almost identical information of related controls. This is
redundant, looks ugly and makes it difficult to understand the
mechanism. So make a function out of fetching the control data and use
it in process loading.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190809231714.20874-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c