ASoC: simple-card: dynamically allocate the DAI link and properties
authorJean-Francois Moine <moinejf@free.fr>
Thu, 20 Mar 2014 09:52:41 +0000 (10:52 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:45 +0000 (09:21 +0900)
commit22f51c5aece5c5a6e5522b60d3d635d6214eeb5f
tree8d363109023de1d054474c3095a204abea2c4d71
parent514b621decb36bee8f330de4f2dfbca2bacf6326
ASoC: simple-card: dynamically allocate the DAI link and properties

The DAI link array and the properties (fmt, sysclk slots) are
hard-coded for a single CPU / CODEC link.

This patch dynamically allocates the DAI link array and the
properties with the aim of supporting many DAI links.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit cf7dc23cbfd5c4c5ab2136f19522d9b3b41acf99)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/generic/simple-card.c