OSDN Git Service

ASoC: Intel: Skylake: Commonize parsing of format tokens
authorShreyas NC <shreyas.nc@intel.com>
Wed, 23 Aug 2017 14:03:50 +0000 (19:33 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 25 Aug 2017 13:53:55 +0000 (14:53 +0100)
commitca312fda690e94c704bcb0e21b73b5d5bd1cf1ff
tree075f13567903bf553c1d1d4900c909b57a430684
parent3d52a7924172adf651eda8f1c95ff38146059307
ASoC: Intel: Skylake: Commonize parsing of format tokens

Format resource tokens can be a part of either the widget or manifest
private data. In the current model, format resources come as a part of
widget private data and they come as a part of topology manifest in the
newly introduced model.

So add a common function that can fill up either of the structures.

Signed-off-by: Shreyas NC <shreyas.nc@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c