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)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:13:33 +0000 (11:13 +0100)
commit0494031406a31abda43e0b253e7851cb66c1298d
treee57249632de26bc333f0cfe1316727ee2a9da670
parent47530d64aa927c5c24fc122af8db842c5cffbf7d
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