]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit503252652c89962bdd41776689485ef38c9d55b0
tree5625efc47340e2b5932d738000384b6cda1f2f9f
parentb53cdc08e68427b693e96a46f33b6c9a5ced3397
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