ASoC: Intel: Skylake: Commonize parsing of format tokens
authorShreyas NC <[email protected]>
Wed, 23 Aug 2017 14:03:50 +0000 (19:33 +0530)
committerMark Brown <[email protected]>
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 <[email protected]>
Signed-off-by: Guneshwor Singh <[email protected]>
Acked-By: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/intel/skylake/skl-topology.c